Show / Hide Table of Contents

Class CreateVolumeDetails

The details of the volume to create. For CreateVolume operation, this field is required in the request, see {@link #createVolume(CreateVolumeRequest) createVolume}.

Inheritance
object
CreateVolumeDetails
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.CoreService.Models
Assembly: OCI.DotNetSDK.Core.dll
Syntax
public class CreateVolumeDetails

Properties

AutotunePolicies

Declaration
[JsonProperty(PropertyName = "autotunePolicies")]
public List<AutotunePolicy> AutotunePolicies { get; set; }
Property Value
Type Description
List<AutotunePolicy>

The list of autotune policies to be enabled for this volume.

AvailabilityDomain

Declaration
[JsonProperty(PropertyName = "availabilityDomain")]
public string AvailabilityDomain { get; set; }
Property Value
Type Description
string

The availability domain of the volume. Omissible for cloning a volume. The new volume will be created in the availability domain of the source volume.
Example: Uocm:PHX-AD-1

BackupPolicyId

Declaration
[JsonProperty(PropertyName = "backupPolicyId")]
public string BackupPolicyId { get; set; }
Property Value
Type Description
string

If provided, specifies the ID of the volume backup policy to assign to the newly created volume. If omitted, no policy will be assigned.

BlockVolumeReplicas

Declaration
[JsonProperty(PropertyName = "blockVolumeReplicas")]
public List<BlockVolumeReplicaDetails> BlockVolumeReplicas { get; set; }
Property Value
Type Description
List<BlockVolumeReplicaDetails>

The list of block volume replicas to be enabled for this volume in the specified destination availability domains.

ClusterPlacementGroupId

Declaration
[JsonProperty(PropertyName = "clusterPlacementGroupId")]
public string ClusterPlacementGroupId { get; set; }
Property Value
Type Description
string

The clusterPlacementGroup Id of the volume for volume placement.

CompartmentId

Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type Description
string

The OCID of the compartment that contains the volume.

Remarks

Required

DefinedTags

Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
Type Description
Dictionary<string, Dictionary<string, object>>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}

DisplayName

Declaration
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type Description
string

A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

FreeformTags

Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type Description
Dictionary<string, string>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}

IsAutoTuneEnabled

Declaration
[JsonProperty(PropertyName = "isAutoTuneEnabled")]
public bool? IsAutoTuneEnabled { get; set; }
Property Value
Type Description
bool?

Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the DetachedVolumeAutotunePolicy instead to enable the volume for detached autotune.

IsReservationsEnabled

Declaration
[JsonProperty(PropertyName = "isReservationsEnabled")]
public bool? IsReservationsEnabled { get; set; }
Property Value
Type Description
bool?

When set to true, enables SCSI Persistent Reservation (SCSI PR) for the volume. For more information, see Persistent Reservations.

KmsKeyId

Declaration
[JsonProperty(PropertyName = "kmsKeyId")]
public string KmsKeyId { get; set; }
Property Value
Type Description
string

The OCID of the Vault service key to assign as the master encryption key for the volume.

SizeInGBs

Declaration
[JsonProperty(PropertyName = "sizeInGBs")]
public long? SizeInGBs { get; set; }
Property Value
Type Description
long?

The size of the volume in GBs.

SizeInMBs

Declaration
[JsonProperty(PropertyName = "sizeInMBs")]
public long? SizeInMBs { get; set; }
Property Value
Type Description
long?

The size of the volume in MBs. The value must be a multiple of 1024. This field is deprecated. Use sizeInGBs instead.

SourceDetails

Declaration
[JsonProperty(PropertyName = "sourceDetails")]
public VolumeSourceDetails SourceDetails { get; set; }
Property Value
Type Description
VolumeSourceDetails

VolumeBackupId

Declaration
[JsonProperty(PropertyName = "volumeBackupId")]
public string VolumeBackupId { get; set; }
Property Value
Type Description
string

The OCID of the volume backup from which the data should be restored on the newly created volume. This field is deprecated. Use the sourceDetails field instead to specify the backup for the volume.

VpusPerGB

Declaration
[JsonProperty(PropertyName = "vpusPerGB")]
public long? VpusPerGB { get; set; }
Property Value
Type Description
long?

The number of volume performance units (VPUs) that will be applied to this volume per GB, representing the Block Volume service's elastic performance options. See Block Volume Performance Levels for more information.
Allowed values:

  • 0: Represents Lower Cost option.
  • 10: Represents Balanced option.
  • 20: Represents Higher Performance option.
  • 30-120: Represents the Ultra High Performance option.
    For performance autotune enabled volumes, it would be the Default(Minimum) VPUs/GB.

XrcKmsKeyId

Declaration
[JsonProperty(PropertyName = "xrcKmsKeyId")]
public string XrcKmsKeyId { get; set; }
Property Value
Type Description
string

The OCID of the Vault service key which is the master encryption key for the block volume cross region backups, which will be used in the destination region to encrypt the backup's encryption keys. For more information about the Vault service and encryption keys, see Overview of Vault service and Using Keys.

In this article
Back to top