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: Specifies whether to enable performance 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\/cloud_essd_entry\/cloud_regional_disk_auto\/elastic_ephemeral_disk_standard\/elastic_ephemeral_disk_premium, depends the region. |
DiskName | interface{} | Property diskName: The name of the disk. |
Encrypted | interface{} | Property encrypted: Whether disk is encrypted, default to false. |
InstanceId | interface{} | Property instanceId: Creates a subscription disk and automatically attaches it to the specified subscription instance. |
KmsKeyId | interface{} | Property kmsKeyId: The ID of the KMS key to use for the 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: The provisioned read\/write IOPS of a single ESSD AutoPL disk. |
ResourceGroupId | interface{} | Property resourceGroupId: Resource group id. |
Size | interface{} | Property size: The capacity of the disk, in GiB. |
SnapshotId | interface{} | Property snapshotId: The ID of the snapshot used to create the disk. |
StorageSetId | interface{} | Property storageSetId: The ID of the storage set. |
StorageSetPartitionNumber | interface{} | Property storageSetPartitionNumber: The number of partitions in the storage set. |
Tags | *[]TagsProperty | Property tags: Tags to attach to disk. |
ZoneId | interface{} | Property zoneId: The ID of the zone in which to create the pay-as-you-go disk. |
AutoSnapshotPolicyIdOptional
AutoSnapshotPolicyId interface{}
- Type: interface{}
Property autoSnapshotPolicyId: Auto snapshot policy ID.
BurstingEnabledOptional
BurstingEnabled interface{}
- Type: interface{}
Property burstingEnabled: Specifies whether to enable performance bursting.
Valid values:
- true
- false
This parameter is available only for ESSD AutoPL disks (
cloud_auto). For more information, see ESSD AutoPL disks.
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\/cloud_essd_entry\/cloud_regional_disk_auto\/elastic_ephemeral_disk_standard\/elastic_ephemeral_disk_premium, depends the region.
DiskNameOptional
DiskName interface{}
- Type: interface{}
Property diskName: The name of the disk.
The name must be 2 to 128 characters in length. It must start with a letter as defined by Unicode and can contain letters (including English and Chinese characters), digits (0-9), colons (:), underscores (_), periods (.), and hyphens (-). Default value: empty.
EncryptedOptional
Encrypted interface{}
- Type: interface{}
Property encrypted: Whether disk is encrypted, default to false.
InstanceIdOptional
InstanceId interface{}
- Type: interface{}
Property instanceId: Creates a subscription disk and automatically attaches it to the specified subscription instance.
- If you set this parameter, the
ResourceGroupId,Tag.N.Key,Tag.N.Value,ClientToken, andKMSKeyIdparameters are ignored. - You cannot specify both
ZoneIdandInstanceId. Default value: empty. An empty value indicates that you are creating a pay-as-you-go disk. The disk's location is determined byRegionIdandZoneId.
KmsKeyIdOptional
KmsKeyId interface{}
- Type: interface{}
Property kmsKeyId: The ID of the KMS key to use for the disk.
If
Encryptedis set to true and you do not specifyKMSKeyId, a default key is used for encryption. TheKMSKeyIdis returned in the response after the instance is created.
- If the disk is created from an unshared encrypted snapshot, the encryption key used by that snapshot is used by default.
- If the disk is created from a shared encrypted snapshot, the service key is used by default.
- If the disk is created in a region with account-level default encryption enabled, the specified account-level key is used by default.
- In other cases, the service key is used by default.
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: The provisioned read\/write IOPS of a single ESSD AutoPL disk.
Valid values:
- Capacity <= 3 GiB: You cannot set provisioned performance.
- Capacity >= 4 GiB: 0 to min(1,000 IOPS/GiB × Capacity - Baseline IOPS, 50,000). Baseline IOPS = max(min(1,800 + 50 × Capacity, 50,000), 3,000).
This parameter is available only for ESSD AutoPL disks (
cloud_auto). For more information, see ESSD AutoPL disks.
ResourceGroupIdOptional
ResourceGroupId interface{}
- Type: interface{}
Property resourceGroupId: Resource group id.
SizeOptional
Size interface{}
- Type: interface{}
Property size: The capacity of the disk, in GiB.
You must specify a value for this parameter. Value range:
cloud: 5 to 2,000cloud_efficiency: 20 to 32,768cloud_ssd: 20 to 32,768PerformanceLevel- PL0: 1 to 65,536
- PL1: 20 to 65,536
- PL2: 461 to 65,536
- PL3: 1,261 to 65,536
cloud_auto: 1 to 65,536cloud_essd_entry: 10 to 32,768cloud_regional_disk_auto: 10 to 65,536elastic_ephemeral_disk_standard: 64 to 8,192elastic_ephemeral_disk_premium: 64 to 8,192 If you specifySnapshotId, the following limits apply toSnapshotIdandSize:- If the snapshot capacity is greater than the specified
Size, the actual disk size is the snapshot capacity. - If the snapshot capacity is smaller than the specified
Size, the actual disk size is the specifiedSize.
SnapshotIdOptional
SnapshotId interface{}
- Type: interface{}
Property snapshotId: The ID of the snapshot used to create the disk.
Snapshots created on or before July 15, 2013 cannot be used to create disks. The SnapshotId and Size parameters have the following limits:
- If the snapshot capacity is greater than the specified
Size, the actual disk size is the snapshot capacity. - If the snapshot capacity is smaller than the specified
Size, the actual disk size is the specifiedSize.
StorageSetIdOptional
StorageSetId interface{}
- Type: interface{}
Property storageSetId: The ID of the storage set.
You can specify either storage set parameters (
StorageSetIdandStorageSetPartitionNumber) or the dedicated block storage cluster parameter (StorageClusterId), but not both. The request fails if you specify parameters for both.
StorageSetPartitionNumberOptional
StorageSetPartitionNumber interface{}
- Type: interface{}
Property storageSetPartitionNumber: The number of partitions in the storage set.
The value must be greater than or equal to 2 and cannot exceed the quota returned by the DescribeAccountAttributes operation. Default value: 2.
TagsOptional
Tags *[]TagsProperty
- Type: *[]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: The ID of the zone in which to create the pay-as-you-go disk.
- If you do not set
InstanceId, this parameter is required. - You cannot specify both
ZoneIdandInstanceId.
ESSD zone-redundant disks (
cloud_regional_disk_auto) do not require a zone ID.