public class AllocateDedicatedHostsRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
AllocateDedicatedHostsRequest.AllocateDedicatedHostsRequestNetworkAttributes |
static class |
AllocateDedicatedHostsRequest.AllocateDedicatedHostsRequestTag |
限定符和类型 | 字段和说明 |
---|---|
String |
actionOnMaintenance
The policy used to migrate the instances deployed on the dedicated host when the dedicated host fails or needs to be repaired online.
|
String |
autoPlacement
Specifies whether to add the dedicated host to the resource pool for automatic deployment.
|
String |
autoReleaseTime
The time when to automatically release the dedicated host.
|
Boolean |
autoRenew
Specifies whether to automatically renew the subscription dedicated host.
|
Integer |
autoRenewPeriod
The auto-renewal duration of the dedicated host.
|
String |
chargeType
The billing method of the dedicated host.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
Float |
cpuOverCommitRatio
The CPU overcommit ratio.
|
String |
dedicatedHostClusterId
The ID of the dedicated host cluster in which to create the dedicated host.
|
String |
dedicatedHostName
The name of the dedicated host.
|
String |
dedicatedHostType
The dedicated host type.
|
String |
description
The description of the dedicated host.
|
Integer |
minQuantity
The minimum number of dedicated hosts to create.
|
AllocateDedicatedHostsRequest.AllocateDedicatedHostsRequestNetworkAttributes |
networkAttributes |
String |
ownerAccount |
Long |
ownerId |
Integer |
period
The subscription duration of the dedicated host.
|
String |
periodUnit
The unit of the subscription duration of the dedicated host.
|
Integer |
quantity
The number of dedicated hosts that you want to create.
|
String |
regionId
The ID of the region in which to create the dedicated host.
|
String |
resourceGroupId
The ID of the resource group to which to assign the dedicated host.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
List<AllocateDedicatedHostsRequest.AllocateDedicatedHostsRequestTag> |
tag
The tags to add to the dedicated host.
|
String |
zoneId
The ID of the zone in which to create the dedicated host.
|
构造器和说明 |
---|
AllocateDedicatedHostsRequest() |
@NameInMap(value="NetworkAttributes") public AllocateDedicatedHostsRequest.AllocateDedicatedHostsRequestNetworkAttributes networkAttributes
@NameInMap(value="ActionOnMaintenance") public String actionOnMaintenance
The policy used to migrate the instances deployed on the dedicated host when the dedicated host fails or needs to be repaired online. Valid values:
Migrate: The instances are migrated to another physical server and restarted.
If cloud disks are attached to the dedicated host, the default value is Migrate.
Stop: The instances are stopped. If the dedicated host cannot be repaired, the instances are migrated to another physical machine and then restarted.
If local disks are attached to the dedicated host, the default value is Stop.
Migrate
@NameInMap(value="AutoPlacement") public String autoPlacement
Specifies whether to add the dedicated host to the resource pool for automatic deployment. If you create an ECS instance on a dedicated host without specifying the DedicatedHostId parameter, Alibaba Cloud selects a dedicated host from the resource pool to host the instance. For more information, see Automatic deployment. Valid values:
Default value: on.
example:If you do not want to add the dedicated host to the resource pool for automatic deployment, set this parameter to off.
off
@NameInMap(value="AutoReleaseTime") public String autoReleaseTime
The time when to automatically release the dedicated host. Specify the time in the ISO 8601
standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
It must be at least half an hour later than the current time.
It must be at most three years later than the current time.
If the value of seconds (ss) is not 00, it is automatically set to 00.
2019-08-21T12:30:24Z
@NameInMap(value="AutoRenew") public Boolean autoRenew
Specifies whether to automatically renew the subscription dedicated host.
The AutoRenew parameter takes effect only when the ChargeType parameter is set to PrePaid.
Default value: false
example:false
@NameInMap(value="AutoRenewPeriod") public Integer autoRenewPeriod
The auto-renewal duration of the dedicated host. The AutoRenewPeriod parameter takes effect and is required only when the AutoRenew parameter is set to true. Valid values:
Valid values when PeriodUnit is set to Month: 1, 2, 3, 6, and 12.
example:1
@NameInMap(value="ChargeType") public String chargeType
The billing method of the dedicated host. Valid values:
InvalidPayMethod
is returned.Default value: PostPaid.
example:PrePaid
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.
example:123e4567-e89b-12d3-a456-426655440000
@NameInMap(value="CpuOverCommitRatio") public Float cpuOverCommitRatio
The CPU overcommit ratio. You can configure CPU overcommit ratios only for the following dedicated host types: g6s, c6s, and r6s. Valid values: 1 to 5.
The CPU overcommit ratio affects the number of available vCPUs on a dedicated host. You can use the following formula to calculate the number of available vCPUs on a dedicated host: Number of available vCPUs = Number of physical CPU cores × 2 × CPU overcommit ratio. For example, the number of physical CPU cores on each g6s dedicated host is 52. If you set the CPU overcommit ratio of a g6s dedicated host to 4, the number of available vCPUs on the dedicated host is 416. For scenarios that have minimal requirements on CPU stability or where CPU load is not heavy, such as development and test environments, you can increase the number of available vCPUs on a dedicated host by increasing the CPU overcommit ratio. This way, you can deploy more ECS instances of the same specifications on the dedicated host and reduce the unit deployment cost.
example:1
@NameInMap(value="DedicatedHostClusterId") public String dedicatedHostClusterId
The ID of the dedicated host cluster in which to create the dedicated host.
example:dc-bp12wlf6am0vz9v2****
@NameInMap(value="DedicatedHostName") public String dedicatedHostName
The name of the dedicated host. The name must be 2 to 128 characters in length and can contain letters and digits. The name can contain colons (:), underscores (_), periods (.), and hyphens (-).
example:myDDH
@NameInMap(value="DedicatedHostType") public String dedicatedHostType
The dedicated host type. You can call the DescribeDedicatedHostTypes operation to query the most recent list of dedicated host types.
This parameter is required.
example:ddh.c5
@NameInMap(value="Description") public String description
The description of the dedicated host. The description must be 2 to 256 characters in length and cannot start with http://
or https://
.
This-is-my-DDH
@NameInMap(value="MinQuantity") public Integer minQuantity
The minimum number of dedicated hosts to create. Valid values: 1 to 100.
example:If the number of available dedicated hosts is less than the minimum number of dedicated hosts to create, the dedicated hosts fail to be created.
2
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Period") public Integer period
The subscription duration of the dedicated host. The Period
parameter is required and takes effect only when the ChargeType
parameter is set to PrePaid
. Valid values:
6
@NameInMap(value="PeriodUnit") public String periodUnit
The unit of the subscription duration of the dedicated host. Valid values:
Default value: Month.
example:Month
@NameInMap(value="Quantity") public Integer quantity
The number of dedicated hosts that you want to create. Valid values: 1 to 100.
Default value: 1.
example:2
@NameInMap(value="RegionId") public String regionId
The ID of the region in which to create the dedicated host. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which to assign the dedicated host.
example:rg-bp67acfmxazb4ph***
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="Tag") public List<AllocateDedicatedHostsRequest.AllocateDedicatedHostsRequestTag> tag
The tags to add to the dedicated host.
@NameInMap(value="ZoneId") public String zoneId
The ID of the zone in which to create the dedicated host.
This parameter is empty by default. If you do not specify a zone, the system selects a zone.
example:cn-hangzhou-f
public static AllocateDedicatedHostsRequest build(Map<String,?> map) throws Exception
Exception
public AllocateDedicatedHostsRequest setNetworkAttributes(AllocateDedicatedHostsRequest.AllocateDedicatedHostsRequestNetworkAttributes networkAttributes)
public AllocateDedicatedHostsRequest.AllocateDedicatedHostsRequestNetworkAttributes getNetworkAttributes()
public AllocateDedicatedHostsRequest setActionOnMaintenance(String actionOnMaintenance)
public String getActionOnMaintenance()
public AllocateDedicatedHostsRequest setAutoPlacement(String autoPlacement)
public String getAutoPlacement()
public AllocateDedicatedHostsRequest setAutoReleaseTime(String autoReleaseTime)
public String getAutoReleaseTime()
public AllocateDedicatedHostsRequest setAutoRenew(Boolean autoRenew)
public Boolean getAutoRenew()
public AllocateDedicatedHostsRequest setAutoRenewPeriod(Integer autoRenewPeriod)
public Integer getAutoRenewPeriod()
public AllocateDedicatedHostsRequest setChargeType(String chargeType)
public String getChargeType()
public AllocateDedicatedHostsRequest setClientToken(String clientToken)
public String getClientToken()
public AllocateDedicatedHostsRequest setCpuOverCommitRatio(Float cpuOverCommitRatio)
public Float getCpuOverCommitRatio()
public AllocateDedicatedHostsRequest setDedicatedHostClusterId(String dedicatedHostClusterId)
public String getDedicatedHostClusterId()
public AllocateDedicatedHostsRequest setDedicatedHostName(String dedicatedHostName)
public String getDedicatedHostName()
public AllocateDedicatedHostsRequest setDedicatedHostType(String dedicatedHostType)
public String getDedicatedHostType()
public AllocateDedicatedHostsRequest setDescription(String description)
public String getDescription()
public AllocateDedicatedHostsRequest setMinQuantity(Integer minQuantity)
public Integer getMinQuantity()
public AllocateDedicatedHostsRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public AllocateDedicatedHostsRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public AllocateDedicatedHostsRequest setPeriod(Integer period)
public Integer getPeriod()
public AllocateDedicatedHostsRequest setPeriodUnit(String periodUnit)
public String getPeriodUnit()
public AllocateDedicatedHostsRequest setQuantity(Integer quantity)
public Integer getQuantity()
public AllocateDedicatedHostsRequest setRegionId(String regionId)
public String getRegionId()
public AllocateDedicatedHostsRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public AllocateDedicatedHostsRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public AllocateDedicatedHostsRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public AllocateDedicatedHostsRequest setTag(List<AllocateDedicatedHostsRequest.AllocateDedicatedHostsRequestTag> tag)
public List<AllocateDedicatedHostsRequest.AllocateDedicatedHostsRequestTag> getTag()
public AllocateDedicatedHostsRequest setZoneId(String zoneId)
public String getZoneId()
Copyright © 2024. All rights reserved.