Queries detailed information about dedicated hosts.
Syntax
{
"Type": "DATASOURCE::ECS::DedicatedHosts",
"Properties": {
"Status": String,
"ZoneId": String,
"ResourceGroupId": String,
"DedicatedHostName": String,
"DedicatedHostType": String,
"DedicatedHostIds": List,
"Tags": List,
"DedicatedHostClusterId": String,
"RefreshOptions": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
Status |
String |
No |
Yes |
The status of the dedicated host. |
Valid values:
|
|
ZoneId |
String |
No |
Yes |
The ID of the zone. |
None. |
|
ResourceGroupId |
String |
No |
Yes |
The ID of the resource group. |
None. |
|
DedicatedHostName |
String |
No |
Yes |
The name of the dedicated host. |
None. |
|
DedicatedHostType |
String |
No |
Yes |
The type of the dedicated host. |
None. |
|
DedicatedHostIds |
List |
No |
Yes |
The IDs of the dedicated hosts. |
You can specify up to 100 dedicated host IDs. |
|
Tags |
List |
No |
Yes |
The tags of the dedicated host. |
You can add up to 20 tags. For more information, see Tags properties. |
|
DedicatedHostClusterId |
String |
No |
Yes |
The ID of the dedicated host cluster. |
None. |
|
RefreshOptions |
String |
No |
Yes |
The refresh policy for data source resources when the stack is updated. |
Valid values:
|
Tags syntax
"Tags": [
{
"Value": String,
"Key": String
}
]
Tags properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
Value |
String |
No |
No |
The value of the tag. |
The value can be up to 128 characters in length, and cannot contain |
|
Key |
String |
Yes |
No |
The key of the tag. |
The key must be 1 to 128 characters in length, and cannot contain |
Return values (Fn::GetAtt)
-
DedicatedHostIds: the lDs of the dedicated hosts.
-
DedicatedHosts: details of the dedicated hosts.
|
Property |
Type |
Description |
Constraint |
|
DedicatedHostIds |
List |
The IDs of the dedicated hosts. |
None. |
|
DedicatedHosts |
List |
Details of the dedicated hosts. |
None. |
|
Status |
String |
The status of the dedicated host. |
Valid values:
|
|
Cores |
Number |
The number of cores per CPU. |
None. |
|
AutoPlacement |
String |
Whether the dedicated host is added to the resource pool for automatic deployment. |
Valid values:
For more information about automatic deployment, see Automatic deployment. |
|
GPUSpec |
String |
The GPU model. |
None. |
|
AutoReleaseTime |
String |
The automatic release time. |
The time is displayed in UTC+0. The time follows the ISO 8601 standard in the |
|
ChargeType |
String |
The billing method. |
Valid values:
|
|
CpuOverCommitRatio |
Number |
The CPU overcommit ratio. |
None. |
|
ActionOnMaintenance |
String |
The policy for migrating instances on the dedicated host when it fails or requires online repair. |
Valid values:
|
|
SaleCycle |
String |
The unit of the subscription duration. |
Valid values:
Note
This property is returned if ChargeType is set to PrePaid. |
|
PhysicalGpus |
Number |
The number of physical GPUs. |
None. |
|
DedicatedHostName |
String |
The name of the dedicated host. |
None. |
|
Description |
String |
The description of the dedicated host. |
None. |
|
DedicatedHostClusterId |
String |
The ID of the dedicated host cluster to which the dedicated host belongs. |
None. |
|
ExpiredTime |
String |
The expiration time of the subscription dedicated host. |
The time is displayed in UTC+0. The time follows the ISO 8601 standard in the Example: Note
This property is returned if ChargeType is set to PrePaid. |
|
DedicatedHostType |
String |
The type of the dedicated host. |
None. |
|
ResourceGroupId |
String |
The ID of the resource group to which the dedicated host belongs. |
None. |
|
ZoneId |
String |
The ID of the zone. |
None. |
|
DedicatedHostId |
String |
The ID of the dedicated host. |
None. |
|
Sockets |
Number |
The number of physical CPUs. |
None. |
|
MachineId |
String |
The machine code of the dedicated host. |
None. |
|
Instances |
List |
The ECS instances that are created on the dedicated host. |
None. |
|
OperationLocks |
List |
The reasons why the dedicated host resources are locked. |
None. |
|
Tags |
List |
The tags of the dedicated host. |
None. |
|
SupportedInstanceTypeFamilies |
List |
The ECS instance families supported by the dedicated host. |
None. |
|
SupportedCustomInstanceTypeFamilies |
List |
The custom ECS instance families supported by the dedicated host. |
None. |
|
SupportedInstanceTypesList |
List |
The ECS instance types supported by the dedicated host. |
None. |
|
Capacity |
List |
The performance metrics of the dedicated host. |
None. |
|
NetworkAttributes |
List |
The network attributes of the dedicated host. |
None. |
Examples
JSON format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"DedicatedHostIds": {
"Type": "Json",
"Description": "The IDs of the dedicated hosts. You can specify up to 100 dedicated host IDs.",
"MaxLength": 100,
"Default": [
"dh-bp165p6xk2tlw61e****"
]
}
},
"Resources": {
"DedicatedHosts": {
"Type": "DATASOURCE::ECS::DedicatedHosts",
"Properties": {
"DedicatedHostIds": {
"Ref": "DedicatedHostIds"
}
}
}
},
"Outputs": {
"DedicatedHosts": {
"Value": {
"Fn::GetAtt": [
"DedicatedHosts",
"DedicatedHosts"
]
}
},
"DedicatedHostIds": {
"Value": {
"Fn::GetAtt": [
"DedicatedHosts",
"DedicatedHostIds"
]
}
}
}
}