DiskProps
Properties for defining a Disk
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ens-disk
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkens"
&alicloudroscdkens.DiskProps {
Category: interface{},
EnsRegionId: interface{},
InstanceChargeType: interface{},
Size: interface{},
DiskName: interface{},
Encrypted: interface{},
KmsKeyId: interface{},
SnapshotId: interface{},
}
Properties
Name | Type | Description |
---|---|---|
Category |
interface{} |
Property category: The category of the disk. |
EnsRegionId |
interface{} |
Property ensRegionId: The ID of the edge node. |
InstanceChargeType |
interface{} |
Property instanceChargeType: The billing method of the instance. |
Size |
interface{} |
Property size: The size of the disk. |
DiskName |
interface{} |
Property diskName: The name of the disk. |
Encrypted |
interface{} |
Property encrypted: Specifies whether to encrypt the new system disk. |
KmsKeyId |
interface{} |
Property kmsKeyId: The ID of the Key Management Service (KMS) key that is used by the cloud disk. |
SnapshotId |
interface{} |
Property snapshotId: The ID of the snapshot that you want to use to create the disk. |
Category
Required
Category interface{}
- Type: interface{}
Property category: The category of the disk.
Valid values: cloud_efficiency: ultra disk. cloud_ssd: all-flash disk.
EnsRegionId
Required
EnsRegionId interface{}
- Type: interface{}
Property ensRegionId: The ID of the edge node.
InstanceChargeType
Required
InstanceChargeType interface{}
- Type: interface{}
Property instanceChargeType: The billing method of the instance.
Set the value to PostPaid.
Size
Required
Size interface{}
- Type: interface{}
Property size: The size of the disk.
Unit: GiB.
DiskName
Optional
DiskName interface{}
- Type: interface{}
Property diskName: The name of the disk.
Encrypted
Optional
Encrypted interface{}
- Type: interface{}
Property encrypted: Specifies whether to encrypt the new system disk.
Valid values: true false (default): no
KmsKeyId
Optional
KmsKeyId interface{}
- Type: interface{}
Property kmsKeyId: The ID of the Key Management Service (KMS) key that is used by the cloud disk.
Note If you set the Encrypted parameter to true, the default service key is used when the KMSKeyId parameter is empty.
SnapshotId
Optional
SnapshotId interface{}
- Type: interface{}
Property snapshotId: The ID of the snapshot that you want to use to create the disk.
The following limits apply to the SnapshotId and Size parameters: If the size of the snapshot specified by SnapshotId is greater than the specified Size value, the size of the created disk is equal to the specified snapshot size. If the size of the snapshot specified by SnapshotId is smaller than the specified Size value, the size of the created disk is equal to the specified Size value.