DiskAttachmentProps
Properties for defining a DiskAttachment.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-diskattachment
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs"
&alicloudroscdkecs.DiskAttachmentProps {
DiskId: interface{},
InstanceId: interface{},
Bootable: interface{},
DeleteAutoSnapshot: interface{},
DeleteWithInstance: interface{},
Device: interface{},
Force: interface{},
InstanceType: interface{},
KeyPairName: interface{},
Password: interface{},
}
Properties
| Name | Type | Description |
|---|---|---|
DiskId | interface{} | Property diskId: The disk id to attached. |
InstanceId | interface{} | Property instanceId: The instanceId to attach the disk. |
Bootable | interface{} | Property bootable: Whether the disk is bootable. |
DeleteAutoSnapshot | interface{} | Property deleteAutoSnapshot: Whether the auto snapshot is released with the disk. |
DeleteWithInstance | interface{} | Property deleteWithInstance: If property is true, the disk will be deleted while instance is deleted, if property is false, the disk will be retain after instance is deleted. |
Device | interface{} | Property device: The device where the volume is exposed on the instance. |
Force | interface{} | Property force: Whether to force the operation. |
InstanceType | interface{} | Property instanceType: The instance type. |
KeyPairName | interface{} | Property keyPairName: The name of the key pair. |
Password | interface{} | Property password: The password for the disk. |
DiskIdRequired
DiskId interface{}
- Type: interface{}
Property diskId: The disk id to attached.
InstanceIdRequired
InstanceId interface{}
- Type: interface{}
Property instanceId: The instanceId to attach the disk.
BootableOptional
Bootable interface{}
- Type: interface{}
Property bootable: Whether the disk is bootable.
DeleteAutoSnapshotOptional
DeleteAutoSnapshot interface{}
- Type: interface{}
Property deleteAutoSnapshot: Whether the auto snapshot is released with the disk.
Default to true.
DeleteWithInstanceOptional
DeleteWithInstance interface{}
- Type: interface{}
Property deleteWithInstance: If property is true, the disk will be deleted while instance is deleted, if property is false, the disk will be retain after instance is deleted.
DeviceOptional
Device interface{}
- Type: interface{}
Property device: The device where the volume is exposed on the instance.
could be /dev/xvd[b-z]. If not specification, will use default value.
ForceOptional
Force interface{}
- Type: interface{}
Property force: Whether to force the operation.
InstanceTypeOptional
InstanceType interface{}
- Type: interface{}
Property instanceType: The instance type.
Allowed values are LingJun and ECS, Default is ECS.
KeyPairNameOptional
KeyPairName interface{}
- Type: interface{}
Property keyPairName: The name of the key pair.
PasswordOptional
Password interface{}
- Type: interface{}
Property password: The password for the disk.