CreateVolume

Description

Creates a volume that can be attached to an instance in the same Availability Zone.

Request Parameters

  • AvailabilityZone - The Availability Zone in which to create the volume
    • Type: String
    • Required: Yes
    • Valid values: ru-msk-vol51 | ru-msk-comp1p
  • Size - The size of the volume, in GiB
    • Type: Int
    • Required: Yes
  • SnapshotId - The snapshot from which to create the volume
    • Type: String
  • Description - The description of the volume
    • Type: String
    • Required: No
  • VolumeType - The type of the volume
    • Type: String
    • Required: No
    • Valid values: st2 | io1
    • Default: st2
  • Iops - The number of I/O operations per second (IOPS)
    • Constraint: Only valid for io1 volumes.
    • Type: Int
    • Required: No
    • Valid values: depending on the tariff

Response Elements

  • requestId - The ID of the request
  • status - The state of the volume
  • availabilityZone - The Availability Zone of the volume
  • volumeId - The ID of the volume
  • createTime - The time stamp when volume creation was initiated
  • volumeType - The volume type
  • iops - The number of I/O operations per second (IOPS)

Examples

c2-ec2 CreateVolume AvailabilityZone ru-msk-vol51 Size 5

c2-ec2 CreateVolume AvailabilityZone ru-msk-vol51 Size 5 VolumeType io1 Iops 400