Create a Volume Group
post
/20160918/volumeGroups
Create a new volume group in the specified compartment. A volume group is a collection of volumes and may be created from a list of volumes, cloning an existing volume group, or by restoring a volume group backup.
You may optionally specify a display name for the volume group. The display name does not need to be unique, and you can change it. Avoid entering confidential information.
Request
Supported Media Types
- application/json
Header Parameters
-
opc-retry-token: string
Minimum Length:
1
Maximum Length:64
A 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).
Request to create a new volume group.
Root Schema : CreateVolumeGroupDetails
Type:
Show Source
object
-
availabilityDomain(required):
string
Minimum Length:
1
Maximum Length:255
The availability domain of the volume group. -
backupPolicyId:
string
Minimum Length:
1
Maximum Length:255
Specifies the OCID of the volume backup policy to assign to the newly created volume group. If omitted, no policy will be assigned. -
clusterPlacementGroupId:
string
Minimum Length:
1
Maximum Length:255
The clusterPlacementGroup ID of the volume group for volume group placement. -
compartmentId(required):
string
Minimum Length:
1
Maximum Length:255
The OCID of the compartment that contains the volume group. -
definedTags:
object definedTags
Additional Properties Allowed: additionalPropertiesDefined tags for this resource. Each key is predefined and scoped to a namespace.
-
displayName:
string
Minimum Length:
1
Maximum Length:255
A user-friendly name. Does not need to be unique, and it is changeable. Avoid entering confidential information. -
freeformTags:
object freeformTags
Additional Properties Allowed: additionalPropertiesFree-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Example: {"Department": "Finance"}
-
sourceDetails(required):
object VolumeGroupSourceDetails
Discriminator:
type
Specifies the source for a volume group. -
volumeGroupReplicas:
array volumeGroupReplicas
Maximum Number of Items:
1
Unique Items Required:true
The list of volume group replicas that this volume group will be enabled to have in the specified destination availability domains. -
volumeGroupScope:
string
Indicates whether the volume group is AD-local or Regional. Regional volume groups aren't restricted to any availability domain unlike AD-local volume groups. This is an optional field. The default behavior is to create AD_LOCAL volume groups.
-
xrcKmsKeyId:
string
Minimum Length:
1
Maximum Length:255
The OCID of the Vault service key which is the master encryption key for the volume's cross region backups, which will be used in the destination region to encrypt the backup's encryption keys.
Nested Schema : definedTags
Type:
object
Additional Properties Allowed
Show Source
-
object additionalProperties
Additional Properties Allowed: additionalPropertiesKey-value pair representing a defined tag key and value, scoped to a namespace. Example: `{"CostCenter": "42"}`
Defined tags for this resource. Each key is predefined and scoped to a namespace.
Nested Schema : freeformTags
Type:
object
Additional Properties Allowed
Show Source
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Example: {"Department": "Finance"}
Nested Schema : VolumeGroupSourceDetails
Type:
object
Discriminator:
type
Specifies the source for a volume group.
Show Source
Nested Schema : volumeGroupReplicas
Type:
array
Maximum Number of Items:
1
Unique Items Required:
true
The list of volume group replicas that this volume group will be enabled to have in the specified destination availability domains.
Show Source
-
Array of:
object VolumeGroupReplicaDetails
Contains the details for the volume group replica.
Nested Schema : additionalProperties
Type:
object
Additional Properties Allowed
Show Source
-
object additionalProperties
The value of the tag. Only the String type is supported.
Key-value pair representing a defined tag key and value, scoped to a namespace. Example: `{"CostCenter": "42"}`
Nested Schema : additionalProperties
Type:
object
The value of the tag. Only the String type is supported.
Nested Schema : VolumeGroupReplicaDetails
Type:
object
Contains the details for the volume group replica.
Show Source
-
availabilityDomain(required):
string
Minimum Length:
1
Maximum Length:255
The availability domain of the volume group replica. Example: AD-1 -
displayName:
string
Minimum Length:
1
Maximum Length:255
A user-friendly name. Does not need to be unique, and it is changeable. Avoid entering confidential information. -
xrrKmsKeyId:
string
Minimum Length:
1
Maximum Length:255
The OCID of the Vault service key which is the master encryption key for the cross region volume group's replicas, which will be used in the destination region to encrypt the volume group's replicas encryption keys.
Response
Supported Media Types
- application/json
200 Response
The volume group is being created.
Headers
-
etag: string
For optimistic concurrency control. See `if-match`.
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : VolumeGroup
Type:
object
Specifies a volume group, which is a collection of volumes. Avoid entering confidential information when you supply string values using the API.
Show Source
-
availabilityDomain(required):
string
Minimum Length:
1
Maximum Length:255
The availability domain of the volume group. -
compartmentId(required):
string
Minimum Length:
1
Maximum Length:255
The OCID of the compartment that contains the volume group. -
definedTags:
object definedTags
Additional Properties Allowed: additionalPropertiesDefined tags for this resource. Each key is predefined and scoped to a namespace.
-
displayName(required):
string
Minimum Length:
1
Maximum Length:255
A user-friendly name. Does not need to be unique, and it is changeable. Avoid entering confidential information. -
freeformTags:
object freeformTags
Additional Properties Allowed: additionalPropertiesFree-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Example: {"Department": "Finance"}
-
id(required):
string
Minimum Length:
1
Maximum Length:255
The OCID for the volume group. -
isHydrated:
boolean
Specifies whether the newly created cloned volume group's data has finished copying from the source volume group or backup.
-
lifecycleState(required):
string
Allowed Values:
[ "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", "FAULTY", "UPDATE_PENDING" ]
The current state of a volume group. -
sizeInGBs:
integer(int64)
The aggregate size of the volume group in GBs.
-
sizeInMBs(required):
integer(int64)
The aggregate size of the volume group in MBs.
-
sourceDetails:
object VolumeGroupSourceDetails
Discriminator:
type
Specifies the source for a volume group. -
timeCreated(required):
string(date-time)
The date and time the volume group was created. Format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).
-
volumeGroupReplicas:
array volumeGroupReplicas
The list of volume group replicas of this volume group.
-
volumeGroupScope:
string
Default Value:
AD_LOCAL
Allowed Values:[ "REGIONAL", "AD_LOCAL" ]
The scope of the volume group -
volumeIds(required):
array volumeIds
Maximum Number of Items:
64
OCIDs for the volumes in this volume group.
Nested Schema : definedTags
Type:
object
Additional Properties Allowed
Show Source
-
object additionalProperties
Additional Properties Allowed: additionalPropertiesKey-value pair representing a defined tag key and value, scoped to a namespace. Example: `{"CostCenter": "42"}`
Defined tags for this resource. Each key is predefined and scoped to a namespace.
Nested Schema : freeformTags
Type:
object
Additional Properties Allowed
Show Source
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Example: {"Department": "Finance"}
Nested Schema : VolumeGroupSourceDetails
Type:
object
Discriminator:
type
Specifies the source for a volume group.
Show Source
Nested Schema : volumeGroupReplicas
Type:
array
The list of volume group replicas of this volume group.
Show Source
-
Array of:
object VolumeGroupReplicaInfo
Information about the volume group replica in the destination availability domain.
Nested Schema : volumeIds
Type:
array
Maximum Number of Items:
64
OCIDs for the volumes in this volume group.
Show Source
-
Array of:
string
Minimum Length:
1
Maximum Length:255
Nested Schema : additionalProperties
Type:
object
Additional Properties Allowed
Show Source
-
object additionalProperties
The value of the tag. Only the String type is supported.
Key-value pair representing a defined tag key and value, scoped to a namespace. Example: `{"CostCenter": "42"}`
Nested Schema : additionalProperties
Type:
object
The value of the tag. Only the String type is supported.
Nested Schema : VolumeGroupReplicaInfo
Type:
object
Information about the volume group replica in the destination availability domain.
Show Source
-
availabilityDomain(required):
string
Minimum Length:
1
Maximum Length:255
The availability domain of the boot volume replica replica. Example: AD-1 -
displayName(required):
string
Minimum Length:
1
Maximum Length:255
A user-friendly name. Does not need to be unique, and it is changeable. Avoid entering confidential information. -
kmsKeyId:
string
Minimum Length:
1
Maximum Length:255
The OCID of the Vault service key to assign as the master encryption key for the block volume replica. -
volumeGroupReplicaId(required):
string
Minimum Length:
1
Maximum Length:255
The volume group replica's OCID.
400 Response
Bad Request
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
The properties that define an error.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing. See [API Errors](https://docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm).
-
message(required):
string
A human-readable error string.
401 Response
Unauthorized
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
The properties that define an error.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing. See [API Errors](https://docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm).
-
message(required):
string
A human-readable error string.
404 Response
Not Found
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
The properties that define an error.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing. See [API Errors](https://docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm).
-
message(required):
string
A human-readable error string.
409 Response
Conflict
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
The properties that define an error.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing. See [API Errors](https://docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm).
-
message(required):
string
A human-readable error string.
500 Response
Internal Server Error
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
The properties that define an error.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing. See [API Errors](https://docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm).
-
message(required):
string
A human-readable error string.
Default Response
An error has occurred.
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
The properties that define an error.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing. See [API Errors](https://docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm).
-
message(required):
string
A human-readable error string.