Create volume 2

Method URI Description
POST /v1.1/{tenant_id}/os-volumes Creates a volume.

Normal response codes: 200

CAUTION:
Refer to "Limiting Values Related to Storage" in "Limiting Values" in the "FUJITSU Cloud Service for OSS IaaS Features Handbook" for details on the sizes of volumes.

Request

This table shows the URI parameters for the volume creation request.

Name Type Description
{tenant_id} String The unique identifier of the project or account.

This table shows the body parameters for the create volume request:

Name Type Description
display_name String

(Optional)

Volume name.
display_description String

(Optional)

Volume description.
size integer Volume size, in GB.
volume_type String

(Optional)

Volume type identifier.
metadata hash

(Optional)

A set of key/value pairs. These pair replace any existing key/value pairs in the resources metadata with matching keys. Any key/value pairs in the parameter with keys that do not occur in the existing resource metadata are added to the resources metadata.
availability_zone String

(Optional)

Volume availability zone.

Example. Create volume: JSON request


{
	"volume": {
		"display_name": "vol-001",
		"display_description": "Another volume.",
		"size": 30,
		"volume_type": "289da7f8-6440-407c-9fb4-7db01ec49164",
		"metadata": {
			"contents": "junk"
		},
		"availability_zone": "us-east1"
	}
}       
     

Response

Example. Create volume: JSON response


{
	"volume": {
		"id": "521752a6-acf6-4b2d-bc7a-119f9148cd8c",
		"displayName": "vol-001",
		"displayDescription": "Another volume.",
		"size": 30,
		"volumeType": "289da7f8-6440-407c-9fb4-7db01ec49164",
		"metadata": {
			"contents": "junk"
		},
		"availabilityZone": "us-east1",
		"snapshotId": null,
		"attachments": [],
		"createdAt": "2012-02-14T20:53:07Z"
	}
}