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.
|
String |
instanceId
The ID of the instance to which 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 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() |
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 |
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.
> If the `Bootable` parameter is set to true, the instance must be in the No System Disk state.
@NameInMap(value="DeleteWithInstance") public Boolean deleteWithInstance
Specifies whether to release the disk when the instance is released. Valid values:
* true: releases the disk when the instance is released.
* false: does not release the data disk when the instance is released. The disk is retained as a pay-as-you-go data disk.
Default value: false.
When you specify this parameter, take note of the following items:
* If `OperationLocks` in the DescribeInstances response contains `"LockReason" : "security"` for the instance to which the disk is attached, the instance is locked for security reasons. Even if `DeleteWithInstance` is set to `false`, the DeleteWithInstance parameter is ignored, and the disk is released when the instance is released.
* This parameter cannot be specified for disks for which the multi-attach feature is enabled.
@NameInMap(value="Device") public String device
The device name of the disk.
> This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility.
@NameInMap(value="DiskId") public String diskId
The ID of the disk. The disk specified by the `DiskId` parameter and the instance specified by the `InstanceId` parameter must reside in the same zone.
> For more information about the limits on attaching a data disk and system disk, see the "Description" section of this topic.
@NameInMap(value="InstanceId") public String instanceId
The ID of the instance to which to attach the disk.
@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.
* Windows instances do not support logons based on SSH key pairs. The `Password` parameter takes effect even if the KeyPairName parameter is specified.
* For Linux instances, the username and password-based logon method is disabled by default.
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Password") public String password
The password 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 contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include:
( ) ` ~ ! @ # $ % ^ & * - _ + = | { } [ ] : ; \" < > , . ? /
The password of a Windows instance cannot start with a forward slash (/).
> If the `Password` parameter is specified, we recommend that you send requests over HTTPS to prevent password leaks.
@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 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 © 2023. All rights reserved.