DATASOURCE::EHPC::Nodes is used to query nodes in an Elastic High Performance Computing (E-HPC) cluster.
Syntax
{
"Type": "DATASOURCE::EHPC::Nodes",
"Properties": {
"Role": String,
"HostNameSuffix": String,
"PrivateIpAddress": String,
"ClusterId": String,
"HostNamePrefix": String,
"HostName": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
Role | String | No | Yes | The type of nodes that you want to query. | Valid values:
|
HostNameSuffix | String | No | Yes | The suffix of the hostname. | You can query nodes that have the specified suffix. |
PrivateIpAddress | String | No | Yes | The private IP address. | None. |
ClusterId | String | Yes | Yes | The ID of the cluster. | You can call the ListClusters operation to query the cluster ID. |
HostNamePrefix | String | No | Yes | The prefix of the hostname. | None. |
HostName | String | No | Yes | The hostname of the node. | Limits:
|
Return values (Fn::GetAtt)
- NodeIds: the IDs of nodes.
- NodeIds: the list of nodes.
Property | Type | Description | Constraint |
NodeIds | List | The IDs of nodes. | None. |
Nodes | List | The list of nodes. | None. |
NodeId | String | The ID of the node. | None. |
ImageOwnerAlias | String | The type of the image. | None. |
StateInSched | String | The status of the node. | The status of the node varies based on the scheduler type. |
ZoneId | String | The ID of the zone. | None. |
VSwitchId | String | The ID of the vSwitch. | None. |
Expired | Boolean | Indicates whether the subscription node has expired. | Valid values:
|
AddTime | String | The time when the node was added to the cluster. | The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
PublicIpAddress | String | The public IP address. | None. |
IpAddress | String | The IP address of the node. | None. |
VpcId | String | The ID of the virtual private cloud (VPC). | None. |
CreateMode | String | The mode in which the node was created. | None. |
Version | String | The version of the client. | None. |
UsedResources | Map | The total amount of resources that are used by the compute node. | Sample code:
|
TotalResources | Map | The total amount of resources that are used by the node. | Sample code:
|
ImageId | String | The ID of the image. | None. |
HtEnabled | Boolean | Indicates whether hyper-threading is enabled. | Valid values:
|
RegionId | String | The ID of the region. | None. |
LockReason | String | The reason why the node is locked. | Valid values:
|
InstanceType | String | The instance type of the node. | None. |
HostName | String | The name of the node. | None. |
SpotStrategy | String | The bidding policy for the compute node. | None. |
Location | String | The location of the node. | Valid values:
|
Roles | List | The type of the node. | Valid values:
Note Schedulers and domain servers are management nodes. |
Examples
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "ClusterId": { "Type": "String", "Description": "The ID of the cluster." } }, "Resources": { "Nodes": { "Type": "DATASOURCE::EHPC::Nodes", "Properties": { "ClusterId": { "Ref": "ClusterId" } } } }, "Outputs": { "NodeIds": { "Description": "The list of node IDs.", "Value": { "Fn::GetAtt": [ "Nodes", "NodeIds" ] } }, "Nodes": { "Description": "The list of nodes.", "Value": { "Fn::GetAtt": [ "Nodes", "Nodes" ] } } } }