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 automatic release time of the dedicated host.
|
Boolean |
autoRenew
Specifies whether to automatically renew the subscription dedicated host.
|
Integer |
autoRenewPeriod
The auto-renewal period 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 to which to assign the dedicated host.
|
String |
dedicatedHostName
The name of the dedicated host.
|
String |
dedicatedHostType
The type of the dedicated host.
|
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 period of the dedicated host.
|
String |
periodUnit
The unit of the subscription period 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 list of the tags that you want to add.
|
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: Instances are migrated to another physical server and restarted.
If the dedicated host is attached with cloud disks, the default value is Migrate.
* Stop: The instances are stopped. If the dedicated host cannot be repaired, the instances are migrated to another physical server and restarted.
If the dedicated host is attached with local disks, the default value is Stop.
@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](~~118938~~). Valid values:
* on: The dedicated host is added to the resource pool for automatic deployment.
* off: The dedicated host is not added to the resource pool for automatic deployment.
Default value: on.
> If you do not want to add the dedicated host to the resource pool for automatic deployment, set the value to off.
@NameInMap(value="AutoReleaseTime") public String autoReleaseTime
The automatic release time of 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.
@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.
@NameInMap(value="AutoRenewPeriod") public Integer autoRenewPeriod
The auto-renewal period of the dedicated host. Unit: months. Valid values: 1, 2, 3, 6, and 12.
> The **AutoRenewPeriod** parameter takes effect and is required only when the **AutoRenew** parameter is set to true.
@NameInMap(value="ChargeType") public String chargeType
The billing method of the dedicated host. Default value: PostPaid. Valid values:
* PrePaid: subscription. If you set this parameter to PrePaid, make sure that you have sufficient account balance or credit. Otherwise, InvalidPayMethod is returned.
* PostPaid: pay-as-you-go.
@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 value, but you must make sure that it is unique among different requests. The **ClientToken** value can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](~~25693~~).
@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.
@NameInMap(value="DedicatedHostClusterId") public String dedicatedHostClusterId
The ID of the dedicated host cluster to which to assign the dedicated host.
@NameInMap(value="DedicatedHostName") public String dedicatedHostName
The name of the dedicated host. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-).
@NameInMap(value="DedicatedHostType") public String dedicatedHostType
The type of the dedicated host. You can call the [DescribeDedicatedHostTypes](~~134240~~) operation to obtain the most recent list of dedicated host types.
@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://`.
@NameInMap(value="MinQuantity") public Integer minQuantity
The minimum number of dedicated hosts to create. Valid values: 1 to 100.
> 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.
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Period") public Integer period
The subscription period of the dedicated host. The `Period` parameter is required and takes effect only when the `ChargeType` parameter is set to `PrePaid`. Valid values:
* Valid values when the PeriodUnit parameter is set to Month: 1, 2, 3, 4, 5, 6, 7, 8, and 9.
* Valid values when the PeriodUnit parameter is set to Year: 1, 2, 3, 4, and 5.
@NameInMap(value="PeriodUnit") public String periodUnit
The unit of the subscription period of the dedicated host. Valid values:
* Month
* Year
Default value: Month.
@NameInMap(value="Quantity") public Integer quantity
The number of dedicated hosts that you want to create. Valid values: 1 to 100.
Default: 1.
@NameInMap(value="RegionId") public String regionId
The ID of the region in which to create the dedicated host. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which to assign the dedicated host.
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="Tag") public List<AllocateDedicatedHostsRequest.AllocateDedicatedHostsRequestTag> tag
The list of the tags that you want to add. It can be up to 20.
@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.
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 © 2023. All rights reserved.