DATASOURCE::EDAS::Clusters は、Enterprise Distributed Application Service (EDAS) でクラスターをクエリするために使用されます。
構文
{
"Type": "DATASOURCE::EDAS::Clusters",
"Properties": {
"LogicalRegionId": String,
"ResourceGroupId": String,
"RefreshOptions": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
LogicalRegionId | String | いいえ | はい | 名前空間ID。 | 次のルールが適用されます。
|
ResourceGroupId | String | いいえ | はい | リソースグループの ID。 | 次のルールが適用されます。
|
RefreshOptions | String | いいえ | はい | スタックの更新時のデータソースリソースの更新ポリシー。 | 有効な値:
|
戻り値 (Fn::GetAtt)
ClusterIds: クラスターの ID。
Clusters: クラスターの詳細。
プロパティ | タイプ | 説明 | 制約 |
ClusterIds | List | クラスターの ID。 | なし。 |
Clusters | List | クラスターの詳細。 | なし。 |
ClusterId | String | クラスター ID。 | なし。 |
ClusterName | String | クラスター名。 | なし。 |
OversoldFactor | Number | Docker クラスターでサポートされている CPU オーバーコミット率。 | なし。 |
NodeNum | Number | インスタンスの数。 | なし。 |
ResourceGroupId | String | リソースグループの ID。 | なし。 |
ClusterType | Number | クラスタータイプ。 | 有効な値:
|
CsClusterId | String | ACK クラスターの ID。 | なし。 |
VpcId | String | 仮想プライベートクラウド (VPC) の ID。 | なし。 |
RegionId | String | リージョン ID。 | なし。 |
IaasProvider | String | クラスターのプロバイダー。 | なし。 |
Cpu | String | vCPU の総数。 | なし。 |
CpuUsed | Number | 使用済み vCPU の数。 | なし。 |
Mem | Number | 合計メモリサイズ。 | 単位:MB。 |
MemUsed | Number | 使用済みメモリサイズ。 | 単位:MB。 |
CreateTime | Number | クラスターが作成された時刻。 | 単位:ミリ秒。 |
UpdateTime | Number | クラスターが最後に更新された時刻。 | 単位:ミリ秒。 |
例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
LogicalRegionId:
Type: String
Description: 名前空間の ID。 # Japanese comment
Resources:
Clusters:
Type: DATASOURCE::EDAS::Clusters
Properties:
LogicalRegionId:
Ref: LogicalRegionId
Outputs:
Clusters:
Description: クラスターのリスト。 # Japanese comment
Value:
Fn::GetAtt:
- Clusters
- Clusters
ClusterIds:
Description: クラスター ID のリスト。 # Japanese comment
Value:
Fn::GetAtt:
- Clusters
- ClusterIds
JSON format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"LogicalRegionId": {
"Type": "String",
"Description": "名前空間の ID。" // Japanese comment
}
},
"Resources": {
"Clusters": {
"Type": "DATASOURCE::EDAS::Clusters",
"Properties": {
"LogicalRegionId": {
"Ref": "LogicalRegionId"
}
}
}
},
"Outputs": {
"Clusters": {
"Description": "クラスターのリスト。", // Japanese comment
"Value": {
"Fn::GetAtt": [
"Clusters",
"Clusters"
]
}
},
"ClusterIds": {
"Description": "クラスター ID のリスト。", // Japanese comment
"Value": {
"Fn::GetAtt": [
"Clusters",
"ClusterIds"
]
}
}
}
}