public class ModifyInstanceDeploymentRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
affinity
Specifies whether to associate the instance with a dedicated host.
|
String |
dedicatedHostClusterId
The ID of the dedicated host cluster.
|
String |
dedicatedHostId
The ID of the destination dedicated host.
|
Integer |
deploymentSetGroupNo
The number of the deployment set group in which to deploy the instance in the destination deployment set.
|
String |
deploymentSetId
The ID of the destination deployment set.
|
Boolean |
force
Specifies whether to forcefully change the host of the instance when the deployment set of the instance is changed.
|
String |
instanceId
The ID of the instance.
|
String |
instanceType
The instance type to which the instance is changed.
|
String |
migrationType
Specifies whether to stop the instance before it is migrated to the destination dedicated host.
|
String |
ownerAccount |
Long |
ownerId |
String |
regionId
The region ID of the instance.
|
Boolean |
removeFromDeploymentSet
Specifies whether to remove the specified instance from the specified deployment set.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
tenancy
Specifies whether to deploy the instance on a dedicated host.
|
构造器和说明 |
---|
ModifyInstanceDeploymentRequest() |
@NameInMap(value="Affinity") public String affinity
Specifies whether to associate the instance with a dedicated host. Valid values:
If you want to migrate the instance from a shared host to a dedicated host, use the default value. Default value: default.
example:host
@NameInMap(value="DedicatedHostClusterId") public String dedicatedHostClusterId
The ID of the dedicated host cluster.
example:dc-bp67acfmxazb4ph****
@NameInMap(value="DedicatedHostId") public String dedicatedHostId
The ID of the destination dedicated host. You can call the DescribeDedicatedHosts operation to query the most recent list of dedicated hosts.
When you migrate an instance from a shared host to a dedicated host or between dedicated hosts, take note of the following items:
Tenancy
to host.For information about the automatic deployment feature, see Functions and features.
example:dh-bp67acfmxazb4ph****
@NameInMap(value="DeploymentSetGroupNo") public Integer deploymentSetGroupNo
The number of the deployment set group in which to deploy the instance in the destination deployment set. This parameter is valid only when the destination deployment set uses the high availability group strategy (AvailabilityGroup). Valid values: 1 to 7.
example:If you call this operation to deploy an instance to a deployment set that uses the high availability group strategy (
AvailablilityGroup
) and leave this parameter empty, the system evenly distributes instances among the deployment set groups in the deployment set. If you call this operation to change the deployment set of an instance and specify the current deployment set of the instance as the destination deployment set, the system evenly distributes instances again among the deployment set groups in the deployment set.
3
@NameInMap(value="DeploymentSetId") public String deploymentSetId
The ID of the destination deployment set.
This parameter is required when you add an instance to a deployment set or change the deployment set of an instance.
example:You cannot change the deployment set when you modify dedicated host configurations, including the
Tenancy
,Affinity
, andDedicatedHostId
parameters.
ds-bp67acfmxazb4ph****
@NameInMap(value="Force") public Boolean force
Specifies whether to forcefully change the host of the instance when the deployment set of the instance is changed. Valid values:
true: forcefully changes the host of the instance when the deployment set of the instance is changed. Hosts can be forcefully changed only for instances in the Running (Running) or Stopped (Stopped) state. The instances that are in the Stopped (Stopped) state do not include pay-as-you-go instances that are stopped in economical mode.
**
Note If the specified instance has local disks attached, the local disks are forcefully changed when the host of the instance is forcefully changed. This may cause data loss in the local disks. Proceed with caution.
false: does not forcefully change the host of the instance when the deployment set of the instance is changed. You can add the instance to a deployment set only when the instance remains on the current host. When the Force parameter is set to false, the deployment set may fail to be changed.
Default value: false.
example:false
@NameInMap(value="InstanceId") public String instanceId
The ID of the instance.
This parameter is required.
example:i-bp67acfmxazb4ph***
@NameInMap(value="InstanceType") public String instanceType
The instance type to which the instance is changed. You can call the DescribeInstanceTypes operation to query the most recent list of instance types.
You can change the instance type of an instance when you migrate the instance to a dedicated host. The new instance type must match the type of the specified dedicated host. For more information, see Dedicated host types.
DedicatedHostId
.ecs.c6.large
@NameInMap(value="MigrationType") public String migrationType
Specifies whether to stop the instance before it is migrated to the destination dedicated host. Valid values:
Default value: reboot.
example:live
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="RemoveFromDeploymentSet") public Boolean removeFromDeploymentSet
Specifies whether to remove the specified instance from the specified deployment set. Valid values:
Default value: false.
example:If you set this parameter to true, you must specify InstanceId and DeploymentSetId and make sure that the specified instance belongs to the specified deployment set.
false
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="Tenancy") public String tenancy
Specifies whether to deploy the instance on a dedicated host. Set the value to host, which indicates that the instance is deployed on a dedicated host.
example:host
public static ModifyInstanceDeploymentRequest build(Map<String,?> map) throws Exception
Exception
public ModifyInstanceDeploymentRequest setAffinity(String affinity)
public String getAffinity()
public ModifyInstanceDeploymentRequest setDedicatedHostClusterId(String dedicatedHostClusterId)
public String getDedicatedHostClusterId()
public ModifyInstanceDeploymentRequest setDedicatedHostId(String dedicatedHostId)
public String getDedicatedHostId()
public ModifyInstanceDeploymentRequest setDeploymentSetGroupNo(Integer deploymentSetGroupNo)
public Integer getDeploymentSetGroupNo()
public ModifyInstanceDeploymentRequest setDeploymentSetId(String deploymentSetId)
public String getDeploymentSetId()
public ModifyInstanceDeploymentRequest setForce(Boolean force)
public Boolean getForce()
public ModifyInstanceDeploymentRequest setInstanceId(String instanceId)
public String getInstanceId()
public ModifyInstanceDeploymentRequest setInstanceType(String instanceType)
public String getInstanceType()
public ModifyInstanceDeploymentRequest setMigrationType(String migrationType)
public String getMigrationType()
public ModifyInstanceDeploymentRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public ModifyInstanceDeploymentRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public ModifyInstanceDeploymentRequest setRegionId(String regionId)
public String getRegionId()
public ModifyInstanceDeploymentRequest setRemoveFromDeploymentSet(Boolean removeFromDeploymentSet)
public Boolean getRemoveFromDeploymentSet()
public ModifyInstanceDeploymentRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public ModifyInstanceDeploymentRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public ModifyInstanceDeploymentRequest setTenancy(String tenancy)
public String getTenancy()
Copyright © 2024. All rights reserved.