DATASOURCE::ENS::Image は、カスタムイメージに関する情報をクエリするために使用されます。
構文
{
"Type": "DATASOURCE::ENS::Image",
"Properties": {
"ImageId": String,
"RefreshOptions": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
ImageId | String | はい | はい | イメージの ID。 | なし。 |
RefreshOptions | String | いいえ | はい | スタックの更新時にデータソースリソースをリフレッシュするポリシー。 | 有効な値:
|
戻り値
Fn::GetAtt
ImageOwnerAlias: イメージ所有者のエイリアス。
ImageName: イメージの名前。
SnapshotId: スナップショットの ID。
Platform: プラットフォーム。
Architecture: イメージのアーキテクチャ。
ImageSize: イメージのサイズ。単位: GiB。
InstanceId: インスタンスの ID。
OsVersion: オペレーティングシステムのバージョン。
CreateTime: イメージが作成された時刻。
ImageId: イメージの ID。
ComputeType: コンピューティング プロパティ。
例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ImageId:
Type: String
Description:
en: The ID of the image. Fuzzy search is supported.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::ENS::Image
Properties:
ImageId:
Ref: ImageId
Outputs:
ImageOwnerAlias:
Description: |-
The source of the image. Valid values:
- **others**: a custom image that is shared by other Alibaba Cloud accounts.
- **self**: your own custom image.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ImageOwnerAlias
ImageName:
Description: The name of the image.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ImageName
SnapshotId:
Description: The ID of the snapshot corresponding to the image.
Value:
Fn::GetAtt:
- ExtensionDataSource
- SnapshotId
Platform:
Description: |-
The type of operating system used by the image. Valid values:
- **centos**
- **ubuntu**
- **alios**
- **debian**
- **rhel**
- **windows**
Value:
Fn::GetAtt:
- ExtensionDataSource
- Platform
Architecture:
Description: |-
The image architecture. Valid values:
- **i386**
- **x86_64**
Value:
Fn::GetAtt:
- ExtensionDataSource
- Architecture
ImageSize:
Description: 'The size of the image. Unit: GiB.'
Value:
Fn::GetAtt:
- ExtensionDataSource
- ImageSize
InstanceId:
Description: The ID of the instance corresponding to the image.
Value:
Fn::GetAtt:
- ExtensionDataSource
- InstanceId
OsVersion:
Description: The operating system version.
Value:
Fn::GetAtt:
- ExtensionDataSource
- OsVersion
CreateTime:
Description: The image creation time. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
ImageId:
Description: The ID of the image.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ImageId
ComputeType:
Description: 'Computing type. ens_vm/ens: x86 computing. bare_metal: x86 bare machine or x86 bare metal. arm_vm: ARM computing. arm_bare_metal: ARM bare machine or ARM bare metal. pcfarm: heterogeneous computing.'
Value:
Fn::GetAtt:
- ExtensionDataSource
- ComputeType
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ImageId": {
"Type": "String",
"Description": {
"en": "The ID of the image. Fuzzy search is supported."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::ENS::Image",
"Properties": {
"ImageId": {
"Ref": "ImageId"
}
}
}
},
"Outputs": {
"ImageOwnerAlias": {
"Description": "イメージのソース。有効な値:\n- **others**: 他の Alibaba Cloud アカウントによって共有されているカスタムイメージ。\n- **self**: 自分自身のカスタムイメージ。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ImageOwnerAlias"
]
}
},
"ImageName": {
"Description": "イメージの名前。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ImageName"
]
}
},
"SnapshotId": {
"Description": "イメージに対応するスナップショットの ID。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"SnapshotId"
]
}
},
"Platform": {
"Description": "イメージで使用されているオペレーティングシステムのタイプ。有効な値:\n- **centos**\n- **ubuntu**\n- **alios**\n- **debian**\n- **rhel**\n- **windows**",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Platform"
]
}
},
"Architecture": {
"Description": "イメージアーキテクチャ。有効な値:\n- **i386**\n- **x86_64**",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Architecture"
]
}
},
"ImageSize": {
"Description": "イメージのサイズ。単位: GiB。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ImageSize"
]
}
},
"InstanceId": {
"Description": "イメージに対応するインスタンスの ID。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"InstanceId"
]
}
},
"OsVersion": {
"Description": "オペレーティングシステムのバージョン。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"OsVersion"
]
}
},
"CreateTime": {
"Description": "イメージの作成時刻。時刻は ISO 8601 標準 (yyyy-MM-ddTHH:mm:ssZ 形式) に従います。時刻は UTC で表示されます。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"ImageId": {
"Description": "イメージの ID。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ImageId"
]
}
},
"ComputeType": {
"Description": "コンピューティングタイプ。ens_vm/ens: x86 コンピューティング。bare_metal: x86 ベアメタルマシンまたは x86 ベアメタル。arm_vm: ARM コンピューティング。arm_bare_metal: ARM ベアメタルマシンまたは ARM ベアメタル。pcfarm: ヘテロジニアスコンピューティング。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ComputeType"
]
}
}
}
}