CreateVolume

POST {{baseUrl}}/volumes

Creates a new volume in the specified compartment. Volumes can be created in sizes ranging from 50 GB (51200 MB) to 32 TB (33554432 MB), in 1 GB (1024 MB) increments. By default, volumes are 1 TB (1048576 MB). For general information about block volumes, see Overview of Block Volume Service.

A volume and instance can be in separate compartments but must be in the same availability domain. For information about access control and compartments, see Overview of the IAM Service. For information about availability domains, see Regions and Availability Domains. To get a list of availability domains, use the ListAvailabilityDomains operation in the Identity and Access Management Service API.

You may optionally specify a display name for the volume, which is simply a friendly name or description. It does not have to be unique, and you can change it. Avoid entering confidential information.

Request Body

{"compartmentId"=>"{{compartment_ocid}}", "availabilityDomain"=>"elit nostrud", "backupPolicyId"=>"nisi exercitation officia nostrud", "blockVolumeReplicas"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "displayName"=>"nostrud et proident", "isAutoTuneEnabled"=>false, "kmsKeyId"=>"Lorem veniam", "sizeInGBs"=>-59167994, "sizeInMBs"=>60955484, "sourceDetails"=>{"type"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "volumeBackupId"=>"aliqua Excepteur", "vpusPerGB"=>22252685}

HEADERS

KeyDatatypeRequiredDescription
opc-retry-tokenstringA token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations (for example, if a resource
has been deleted and purged from the system, then a retry of the original creation request
may be rejected).
Content-Typestring
Datestring(Required) Current Date
Authorizationstring(Required) Signature Authentication on Authorization header
x-content-sha256string(Required) Content sha256 for POST, PUT and PATCH operations

RESPONSES

status: OK

{&quot;id&quot;:&quot;occaecat do dolor laboris dolore&quot;,&quot;availabilityDomain&quot;:&quot;laboris amet&quot;,&quot;displayName&quot;:&quot;mollit aute non Duis&quot;,&quot;sizeInMBs&quot;:27385000,&quot;compartmentId&quot;:&quot;eiusmod aute&quot;,&quot;timeCreated&quot;:&quot;1972-09-20T00:44:14.721Z&quot;,&quot;lifecycleState&quot;:&quot;PROVISIONING&quot;,&quot;autoTunedVpusPerGB&quot;:-75858048,&quot;blockVolumeReplicas&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;definedTags&quot;:{},&quot;freeformTags&quot;:{},&quot;isAutoTuneEnabled&quot;:true,&quot;isHydrated&quot;:true,&quot;kmsKeyId&quot;:&quot;eu occaecat dolore magna&quot;,&quot;sizeInGBs&quot;:-67655031,&quot;sourceDetails&quot;:{&quot;type&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;volumeGroupId&quot;:&quot;culpa commodo &quot;,&quot;vpusPerGB&quot;:-61347448}