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,
"RefreshOptions": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
Role | String | No | Yes | The node type. | Valid values:
|
HostNameSuffix | String | No | Yes | The suffix of the hostname. | You can query nodes whose hostnames contain the specified suffix. |
PrivateIpAddress | String | No | Yes | The private IP address. | None. |
ClusterId | String | Yes | Yes | The ID of the cluster that you want to query. | 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 node name. | The following limits apply:
|
RefreshOptions | String | No | Yes | The refresh policy for data source resources when the stack is updated. | Valid values:
|
Return values (Fn::GetAtt)
NodeIds: the IDs of the nodes.
Nodes: details of the nodes.
Property | Type | Description | Constraint |
NodeIds | List | The IDs of the nodes. | None. |
Nodes | List | Details of the nodes. | None. |
NodeId | String | The node ID. | None. |
ImageOwnerAlias | String | The image type. | None. |
StateInSched | String | The status of the node. | The status of the node varies based on the scheduler type. |
ZoneId | String | The zone ID. | None. |
VSwitchId | String | The vSwitch ID. | 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 is created. | None. |
Version | String | The client version of the cluster. | None. |
UsedResources | Map | The number of resources that are used by the compute node. | Example:
|
TotalResources | Map | The total number of resources that are used by the node. | Example:
|
ImageId | String | The image ID. | None. |
HtEnabled | Boolean | Indicates whether hyper-threading is enabled. | Valid values:
|
RegionId | String | The region ID. | None. |
LockReason | String | The reason why the node is locked. | Valid values:
|
InstanceType | String | The instance type of the node. | None. |
HostName | String | The node name. | None. |
SpotStrategy | String | The bidding policy for the compute node. | None. |
Location | String | The location of the node. | Valid values:
|
Roles | List | The node type. | Valid values:
Note Schedulers and domain servers are management nodes. |
Examples
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
{
"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"
]
}
}
}
}