public class AttachDiskRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
Boolean |
bootable
Specifies whether to attach the disk as a system disk.
|
Boolean |
deleteWithInstance
Specifies whether to release the disk when the instance is released.
|
String |
device
The device name of the disk.
|
String |
diskId
The ID of the disk.
|
Boolean |
force
Specifies whether to forcefully attach the disk to the instance.
|
String |
instanceId
The ID of the instance to which you want to attach the disk.
|
String |
keyPairName
The name of the SSH key pair that you bind to the Linux instance when you attach the system disk.
|
String |
ownerAccount |
Long |
ownerId |
String |
password
The password that is set when you attach the system disk.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
构造器和说明 |
---|
AttachDiskRequest() |
限定符和类型 | 方法和说明 |
---|---|
static AttachDiskRequest |
build(Map<String,?> map) |
Boolean |
getBootable() |
Boolean |
getDeleteWithInstance() |
String |
getDevice() |
String |
getDiskId() |
Boolean |
getForce() |
String |
getInstanceId() |
String |
getKeyPairName() |
String |
getOwnerAccount() |
Long |
getOwnerId() |
String |
getPassword() |
String |
getResourceOwnerAccount() |
Long |
getResourceOwnerId() |
AttachDiskRequest |
setBootable(Boolean bootable) |
AttachDiskRequest |
setDeleteWithInstance(Boolean deleteWithInstance) |
AttachDiskRequest |
setDevice(String device) |
AttachDiskRequest |
setDiskId(String diskId) |
AttachDiskRequest |
setForce(Boolean force) |
AttachDiskRequest |
setInstanceId(String instanceId) |
AttachDiskRequest |
setKeyPairName(String keyPairName) |
AttachDiskRequest |
setOwnerAccount(String ownerAccount) |
AttachDiskRequest |
setOwnerId(Long ownerId) |
AttachDiskRequest |
setPassword(String password) |
AttachDiskRequest |
setResourceOwnerAccount(String resourceOwnerAccount) |
AttachDiskRequest |
setResourceOwnerId(Long resourceOwnerId) |
@NameInMap(value="Bootable") public Boolean bootable
Specifies whether to attach the disk as a system disk.
Default value: false.
example:You can set
Bootable
to true only if the instance does not have a system disk.
false
@NameInMap(value="DeleteWithInstance") public Boolean deleteWithInstance
Specifies whether to release the disk when the instance is released.
Default value: false.
When you specify this parameter, take note of the following items:
OperationLocks
in the DescribeInstances response contains "LockReason" : "security"
for the instance to which the disk is attached, the instance is locked for security reasons. Regardless of whether you set DeleteWithInstance
to false
, the DeleteWithInstance setting is ignored, and the disk is released when the instance is released.elastic ephemeral disk
, you must set DeleteWithInstance
to true
.false
@NameInMap(value="Device") public String device
The device name of the disk.
example:This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility.
testDeviceName
@NameInMap(value="DiskId") public String diskId
The ID of the disk. The disk specified by DiskId
and the instance specified by InstanceId
must reside in the same zone.
For more information about the limits on attaching a data disk and a system disk, see the "Usage notes" section of this topic.
This parameter is required.
example:d-bp1j4l5axzdy6ftk****
@NameInMap(value="Force") public Boolean force
Specifies whether to forcefully attach the disk to the instance.
Default value: false.
example:false
@NameInMap(value="InstanceId") public String instanceId
The ID of the instance to which you want to attach the disk.
This parameter is required.
example:i-bp1dq5lozx5f4pmd****
@NameInMap(value="KeyPairName") public String keyPairName
The name of the SSH key pair that you bind to the Linux instance when you attach the system disk.
Password
parameter takes effect even if the KeyPairName parameter is specified.KeyPairTestName
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Password") public String password
The password that is set when you attach the system disk. The password is applicable only to the administrator and root users. The password must be 8 to 30 characters in length and must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. The following special characters are supported:
()`~!@#$%^&*-_+=|{}[]:;\\"<>,.?/
For Windows instances, passwords cannot start with a forward slash (/).
example:If
Password
is configured, we recommend that you send requests over HTTPS to prevent password leaks.
EcsV587!
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
public static AttachDiskRequest build(Map<String,?> map) throws Exception
Exception
public AttachDiskRequest setBootable(Boolean bootable)
public Boolean getBootable()
public AttachDiskRequest setDeleteWithInstance(Boolean deleteWithInstance)
public Boolean getDeleteWithInstance()
public AttachDiskRequest setDevice(String device)
public String getDevice()
public AttachDiskRequest setDiskId(String diskId)
public String getDiskId()
public AttachDiskRequest setForce(Boolean force)
public Boolean getForce()
public AttachDiskRequest setInstanceId(String instanceId)
public String getInstanceId()
public AttachDiskRequest setKeyPairName(String keyPairName)
public String getKeyPairName()
public AttachDiskRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public AttachDiskRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public AttachDiskRequest setPassword(String password)
public String getPassword()
public AttachDiskRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public AttachDiskRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
Copyright © 2024. All rights reserved.