Skip to content

DiskProps

Properties for defining a Disk.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-disk

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs"
&alicloudroscdkecs.DiskProps {
    AutoSnapshotPolicyId: interface{},
    BurstingEnabled: interface{},
    DeleteAutoSnapshot: interface{},
    Description: interface{},
    DiskCategory: interface{},
    DiskName: interface{},
    Encrypted: interface{},
    InstanceId: interface{},
    KmsKeyId: interface{},
    MultiAttach: interface{},
    PerformanceLevel: interface{},
    ProvisionedIops: interface{},
    ResourceGroupId: interface{},
    Size: interface{},
    SnapshotId: interface{},
    StorageSetId: interface{},
    StorageSetPartitionNumber: interface{},
    Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.RosDisk.TagsProperty,
    ZoneId: interface{},
}

Properties

Name Type Description
AutoSnapshotPolicyId interface{} Property autoSnapshotPolicyId: Auto snapshot policy ID.
BurstingEnabled interface{} Property burstingEnabled: Whether enable bursting.
DeleteAutoSnapshot interface{} Property deleteAutoSnapshot: Whether the auto snapshot is released with the disk.
Description interface{} Property description: Description of the disk, [2, 256] characters.
DiskCategory interface{} Property diskCategory: The disk category, now support cloud\/cloud_ssd\/cloud_essd\/cloud_efficiency\/san_ssd\/san_efficiency\/cloud_auto, depends the region.
DiskName interface{} Property diskName: Display name of the disk, [2, 128] English or Chinese characters, must start with a letter or Chinese in size, can contain numbers, '_' or '.', '-'.
Encrypted interface{} Property encrypted: Whether disk is encrypted, default to false.
InstanceId interface{} Property instanceId: Create a cloud disk and automatically mount it to the specified InstanceId.
KmsKeyId interface{} Property kmsKeyId: KMS key ID used by the cloud disk.
MultiAttach interface{} Property multiAttach: Specifies whether to enable the multi-attach feature for the disk.
PerformanceLevel interface{} Property performanceLevel: The performance level you select for an ESSD.Default value: PL1. Valid values:PL0: A single enhanced SSD delivers up to 10,000 random read\/write IOPS.PL1: A single enhanced SSD delivers up to 50,000 random read\/write IOPS.PL2: A single enhanced SSD delivers up to 100,000 random read\/write IOPS.PL3: A single enhanced SSD delivers up to 1,000,000 random read\/write IOPS.
ProvisionedIops interface{} Property provisionedIops: Provisioning IOPS.
ResourceGroupId interface{} Property resourceGroupId: Resource group id.
Size interface{} Property size: The size of the disk unit in GB.
SnapshotId interface{} Property snapshotId: If specified, the backup used as the source to create disk.
StorageSetId interface{} Property storageSetId: Storage set ID.
StorageSetPartitionNumber interface{} Property storageSetPartitionNumber: The number of storage set partitions.
Tags *[]TagsProperty Property tags: Tags to attach to disk.
ZoneId interface{} Property zoneId: Create a pay-as-you-go cloud drive within the specified availability area.

AutoSnapshotPolicyIdOptional

AutoSnapshotPolicyId interface{}
  • Type: interface{}

Property autoSnapshotPolicyId: Auto snapshot policy ID.


BurstingEnabledOptional

BurstingEnabled interface{}
  • Type: interface{}

Property burstingEnabled: Whether enable bursting.


DeleteAutoSnapshotOptional

DeleteAutoSnapshot interface{}
  • Type: interface{}

Property deleteAutoSnapshot: Whether the auto snapshot is released with the disk.

Default to false.


DescriptionOptional

Description interface{}
  • Type: interface{}

Property description: Description of the disk, [2, 256] characters.

Do not fill or empty, the default is empty.


DiskCategoryOptional

DiskCategory interface{}
  • Type: interface{}

Property diskCategory: The disk category, now support cloud\/cloud_ssd\/cloud_essd\/cloud_efficiency\/san_ssd\/san_efficiency\/cloud_auto, depends the region.


DiskNameOptional

DiskName interface{}
  • Type: interface{}

Property diskName: Display name of the disk, [2, 128] English or Chinese characters, must start with a letter or Chinese in size, can contain numbers, '_' or '.', '-'.


EncryptedOptional

Encrypted interface{}
  • Type: interface{}

Property encrypted: Whether disk is encrypted, default to false.


InstanceIdOptional

InstanceId interface{}
  • Type: interface{}

Property instanceId: Create a cloud disk and automatically mount it to the specified InstanceId.

  • Once the instance ID is set, the ResourceGroupId, Tags, and KMSKeyId parameters you set are ignored.
  • You cannot specify both ZoneId and InstanceId. Default value: null, meaning that a pay-as-you-go cloud drive is created, and the region of the drive is defined by the RegionId and ZoneId.

KmsKeyIdOptional

KmsKeyId interface{}
  • Type: interface{}

Property kmsKeyId: KMS key ID used by the cloud disk.


MultiAttachOptional

MultiAttach interface{}
  • Type: interface{}

Property multiAttach: Specifies whether to enable the multi-attach feature for the disk.

Valid values: Disabled: disables the multi-attach feature. Enabled: enables the multi-attach feature. Set the value to Enabled only for ESSDs. Default value: Disabled.


PerformanceLevelOptional

PerformanceLevel interface{}
  • Type: interface{}

Property performanceLevel: The performance level you select for an ESSD.Default value: PL1. Valid values:PL0: A single enhanced SSD delivers up to 10,000 random read\/write IOPS.PL1: A single enhanced SSD delivers up to 50,000 random read\/write IOPS.PL2: A single enhanced SSD delivers up to 100,000 random read\/write IOPS.PL3: A single enhanced SSD delivers up to 1,000,000 random read\/write IOPS.


ProvisionedIopsOptional

ProvisionedIops interface{}
  • Type: interface{}

Property provisionedIops: Provisioning IOPS.


ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: Resource group id.


SizeOptional

Size interface{}
  • Type: interface{}

Property size: The size of the disk unit in GB.


SnapshotIdOptional

SnapshotId interface{}
  • Type: interface{}

Property snapshotId: If specified, the backup used as the source to create disk.


StorageSetIdOptional

StorageSetId interface{}
  • Type: interface{}

Property storageSetId: Storage set ID.


StorageSetPartitionNumberOptional

StorageSetPartitionNumber interface{}
  • Type: interface{}

Property storageSetPartitionNumber: The number of storage set partitions.


TagsOptional

Tags *[]TagsProperty

Property tags: Tags to attach to disk.

Max support 20 tags to add during create disk. Each tag with two properties Key and Value, and Key is required.


ZoneIdOptional

ZoneId interface{}
  • Type: interface{}

Property zoneId: Create a pay-as-you-go cloud drive within the specified availability area.

  • If you do not set InstanceId, ZoneId is required.
  • You cannot specify both ZoneId and InstanceId.