DATASOURCE::Hologram::Instances は、Hologres インスタンスをクエリするために使用されます。
構文
{
"Type": "DATASOURCE::Hologram::Instances",
"Properties": {
"ResourceGroupId": String,
"RefreshOptions": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
ResourceGroupId | String | いいえ | はい | リソースグループの ID。 | なし。 |
RefreshOptions | String | いいえ | はい | スタックの更新時のデータソースリソースのリフレッシュポリシー。 | 有効な値:
|
戻り値
Fn::GetAtt
Instances: インスタンスの詳細。
InstanceIds: インスタンスの ID。
プロパティ | タイプ | 説明 | 制約 |
InstanceIds | List | インスタンスの ID。 | なし。 |
Instances | List | インスタンスの詳細。 | なし。 |
InstanceId | String | インスタンス ID。 | なし。 |
ZoneId | String | ゾーン ID。 | なし。 |
Version | String | インスタンスのバージョン。 | なし。 |
CommodityCode | String | 商品コード。 | なし。 |
PaymentType | String | インスタンスの課金方法。 | なし。 |
SuspendReason | String | 停止の理由。 | なし。 |
ExpirationTime | String | 有効期限。このプロパティは、従量課金インスタンスでは無効です。 | なし。 |
Tags | String | インスタンスのタグ。 | なし。 |
Endpoints | String | エンドポイント。 | なし。 |
InstanceType | String | インスタンスタイプ。 | なし。 |
Status | String | インスタンスのステータス。 | なし。 |
CreateTime | String | インスタンスが作成された日時。 | なし。 |
LeaderInstanceId | String | プライマリインスタンスの ID。 | なし。 |
EnableHiveAccess | String | データレイクアクセラレーションが有効になっているかどうかを示します。 | なし。 |
InstanceName | String | インスタンス名。 | なし。 |
RegionId | String | リージョン ID。 | なし。 |
ResourceGroupId | String | リソースグループの ID。 | なし。 |
例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ResourceGroupId:
Description: The ID of the resource group.
Type: String
AssociationProperty: ALIYUN::ECS::ResourceGroup::ResourceGroupId
Resources:
ExtensionDataSource:
Properties:
ResourceGroupId:
Ref: ResourceGroupId
Type: DATASOURCE::Hologram::Instances
Outputs:
InstanceIds:
Description: The list of instance IDs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- InstanceIds
Instances:
Description: The list of instances.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Instances
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ResourceGroupId": {
"Type": "String",
"Description": "The ID of the resource group.",
"AssociationProperty": "ALIYUN::ECS::ResourceGroup::ResourceGroupId"
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::Hologram::Instances",
"Properties": {
"ResourceGroupId": {
"Ref": "ResourceGroupId"
}
}
}
},
"Outputs": {
"Instances": {
"Description": "The list of instances.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Instances"
]
}
},
"InstanceIds": {
"Description": "The list of instance IDs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"InstanceIds"
]
}
}
}
}