Skip to main content

Create a new volume

POST 

/v1/projects/:projectId/zones/:zoneName/volumes

Create a volume. In case of success, the response body contains the created volume with its identifier.

Request

Path Parameters

    projectId stringrequired

    Project Identifier

    zoneName stringrequired

    Zone name

Header Parameters

    X-API-KEY string

    Your SIU token if you use this API through Orange Developer.

    Authorization string

    Bearer access token authentication if you use this API through Orange Developer or Orange Developer Inside.

    X-Requester-Id string

    Your SIU Id if you use this API through Orange Developer Inside.

Bodyrequired

Volume attributes in Create request.

    namestringrequired

    Unique resource name. This attribute can not be updated.

    Possible values: <= 40 characters, Value must match regular expression [A-Za-z0-9-]

    descriptionstring

    Resource description

    tags object

    Tags associated with the resource

    property name*string
    sizeint32required

    Size of the volume in GB (max: 5000). NB: when updating a volume, the size can not be decreased. For a boot volume, the size can be increased only if it is not attached to a VM.

    Possible values: >= 1 and <= 5000

    imagestring

    Name of the image to create the volume from. To be selected from the result of GET images.

Responses

Created

Response Headers
    X-Job-Href

    Href of the asynchronous job that will process the request, in order to track its status.

    X-Retry-After

    The number of seconds to wait before checking the status of the job.

Schema
    iduuidrequired

    Resource identifier.

    hRefurirequired

    Hypertext reference of the resource.

curl -L '/v1/projects/:projectId/zones/:zoneName/volumes' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"name": "string",
"description": "string",
"tags": {},
"size": 0,
"image": "string"
}'
Request Collapse all
Base URL
/v1
Parameters
— pathrequired
— pathrequired
— header
— header
— header
Body required
{
  "name": "string",
  "description": "string",
  "tags": {},
  "size": 0,
  "image": "string"
}