DATASOURCE::EDAS::Clusters is used to query clusters in Enterprise Distributed Application Service (EDAS).
Syntax
{
"Type": "DATASOURCE::EDAS::Clusters",
"Properties": {
"LogicalRegionId": String,
"ResourceGroupId": String,
"RefreshOptions": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
LogicalRegionId | String | No | Yes | The namespace ID. | The following rules apply:
|
ResourceGroupId | String | No | Yes | The ID of the resource group. | The following rules apply:
|
RefreshOptions | String | No | Yes | The refresh policy for data source resources when the stack is updated. | Valid values:
|
Return values (Fn::GetAtt)
ClusterIds: the IDs of the clusters.
Clusters: details of the clusters.
Property | Type | Description | Constraint |
ClusterIds | List | The IDs of the clusters. | None. |
Clusters | List | Details of the clusters. | None. |
ClusterId | String | The cluster ID. | None. |
ClusterName | String | The cluster name. | None. |
OversoldFactor | Number | The CPU overcommit ratio that is supported by the Docker cluster. | None. |
NodeNum | Number | The number of instances. | None. |
ResourceGroupId | String | The ID of the resource group. | None. |
ClusterType | Number | The cluster type. | Valid values:
|
CsClusterId | String | The ID of the ACK cluster. | None. |
VpcId | String | The ID of the virtual private cloud (VPC). | None. |
RegionId | String | The region ID. | None. |
IaasProvider | String | The provider of the cluster. | None. |
Cpu | String | The total number of vCPUs. | None. |
CpuUsed | Number | The number of used vCPUs. | None. |
Mem | Number | The total memory size. | Unit: MB. |
MemUsed | Number | The used memory size. | Unit: MB. |
CreateTime | Number | The time when the cluster was created. | Unit: milliseconds. |
UpdateTime | Number | The most recent time when the cluster was updated. | Unit: milliseconds. |
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
LogicalRegionId:
Type: String
Description: The ID of the namespace.
Resources:
Clusters:
Type: DATASOURCE::EDAS::Clusters
Properties:
LogicalRegionId:
Ref: LogicalRegionId
Outputs:
Clusters:
Description: The list of clusters.
Value:
Fn::GetAtt:
- Clusters
- Clusters
ClusterIds:
Description: The list of cluster IDs.
Value:
Fn::GetAtt:
- Clusters
- ClusterIds
JSON format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"LogicalRegionId": {
"Type": "String",
"Description": "The ID of the namespace."
}
},
"Resources": {
"Clusters": {
"Type": "DATASOURCE::EDAS::Clusters",
"Properties": {
"LogicalRegionId": {
"Ref": "LogicalRegionId"
}
}
}
},
"Outputs": {
"Clusters": {
"Description": "The list of clusters.",
"Value": {
"Fn::GetAtt": [
"Clusters",
"Clusters"
]
}
},
"ClusterIds": {
"Description": "The list of cluster IDs.",
"Value": {
"Fn::GetAtt": [
"Clusters",
"ClusterIds"
]
}
}
}
}