ALIYUN::ENS::Image は、インスタンスからイメージを作成するために使用されます。
構文
{
"Type": "ALIYUN::ENS::Image",
"Properties": {
"ImageName": String,
"DeleteAfterImageUpload": Boolean,
"InstanceId": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
ImageName | String | はい | はい | イメージ名。 | 名前は 2 ~ 128 文字の長さでなければなりません。文字で始まり、 |
DeleteAfterImageUpload | Boolean | いいえ | いいえ | インスタンスのリリース時に、パッケージ化およびアップロードされたイメージを自動的にリリースするかどうかを指定します。 | 有効な値:
|
InstanceId | String | いいえ | いいえ | インスタンス ID。 | なし。 |
戻り値
Fn::GetAtt
ImageOwnerAlias: イメージのソース。
ImageName: イメージ名。
SnapshotId: スナップショット ID。
Platform: イメージの OS タイプ。
Architecture: イメージのアーキテクチャ。
ImageSize: イメージサイズ。単位:GiB。
InstanceId: インスタンス ID。
OsVersion: OS バージョン。
CreateTime: イメージが作成された時刻。
ImageId: イメージ ID。
ComputeType: コンピューティングタイプ。
例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ImageName:
Type: String
Description:
en: |-
The name of the image. The name must be 2 to 128 characters in length.
The name can contain letters, digits, colons (:), underscores (_), and hyphens (-).
It must start with a letter but cannot start with http:// or https://.
The name can contain letters, digits, colons (:), underscores (_), and hyphens (-).
Required: true
InstanceId:
Type: String
Description:
en: The ID of the instance corresponding to the image.
Required: false
Resources:
ExtensionResource:
Type: ALIYUN::ENS::Image
Properties:
ImageName:
Ref: ImageName
InstanceId:
Ref: InstanceId
Outputs:
ImageOwnerAlias:
Description: |-
The source of the image. Valid values:
system: public images
self: your custom images
Value:
Fn::GetAtt:
- ExtensionResource
- ImageOwnerAlias
ImageName:
Description: The name of the image.
Value:
Fn::GetAtt:
- ExtensionResource
- ImageName
SnapshotId:
Description: The ID of the snapshot corresponding to the image.
Value:
Fn::GetAtt:
- ExtensionResource
- SnapshotId
Platform:
Description: |-
The type of operating system used by the image.
centos
ubuntu
alios
debian
rhel
windows
Value:
Fn::GetAtt:
- ExtensionResource
- Platform
Architecture:
Description: |-
The image architecture. Valid values:
i386
x86_64
Value:
Fn::GetAtt:
- ExtensionResource
- Architecture
ImageSize:
Description: 'The size of the image. Unit: GiB.'
Value:
Fn::GetAtt:
- ExtensionResource
- ImageSize
InstanceId:
Description: The ID of the instance corresponding to the image.
Value:
Fn::GetAtt:
- ExtensionResource
- InstanceId
OsVersion:
Description: The operating system version.
Value:
Fn::GetAtt:
- ExtensionResource
- 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:
- ExtensionResource
- CreateTime
ImageId:
Description: The ID of the image.
Value:
Fn::GetAtt:
- ExtensionResource
- 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:
- ExtensionResource
- ComputeType
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ImageName": {
"Type": "String",
"Description": {
"en": "The name of the image. The name must be 2 to 128 characters in length. \nThe name can contain letters, digits, colons (:), underscores (_), and hyphens (-). \nIt must start with a letter but cannot start with http:// or https://. \nThe name can contain letters, digits, colons (:), underscores (_), and hyphens (-)."
},
"Required": true
},
"InstanceId": {
"Type": "String",
"Description": {
"en": "The ID of the instance corresponding to the image."
},
"Required": false
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::ENS::Image",
"Properties": {
"ImageName": {
"Ref": "ImageName"
},
"InstanceId": {
"Ref": "InstanceId"
}
}
}
},
"Outputs": {
"ImageOwnerAlias": {
"Description": "イメージのソース。有効な値:\nsystem: パブリックイメージ\nself: カスタムイメージ",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ImageOwnerAlias"
]
}
},
"ImageName": {
"Description": "イメージの名前。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ImageName"
]
}
},
"SnapshotId": {
"Description": "イメージに対応するスナップショットの ID。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"SnapshotId"
]
}
},
"Platform": {
"Description": "イメージで使用されるオペレーティングシステムのタイプ。\ncentos\nubuntu\nalios\ndebian\nrhel\nwindows",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Platform"
]
}
},
"Architecture": {
"Description": "イメージアーキテクチャ。有効な値:\ni386\nx86_64",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Architecture"
]
}
},
"ImageSize": {
"Description": "イメージのサイズ。単位:GiB。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ImageSize"
]
}
},
"InstanceId": {
"Description": "イメージに対応するインスタンスの ID。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"InstanceId"
]
}
},
"OsVersion": {
"Description": "オペレーティングシステムのバージョン。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"OsVersion"
]
}
},
"CreateTime": {
"Description": "イメージの作成時刻。時刻は ISO 8601 標準の yyyy-MM-ddTHH:mm:ssZ 形式に従います。時刻は UTC で表示されます。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CreateTime"
]
}
},
"ImageId": {
"Description": "イメージの ID。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ImageId"
]
}
},
"ComputeType": {
"Description": "コンピューティングタイプ。ens_vm/ens: x86 コンピューティング。\n bare_metal: x86 ベアメタルまたは x86 ベアメタル。 \narm_vm: ARM コンピューティング。 \narm_bare_metal: ARM ベアメタルまたは ARM ベアメタル。\npcfarm: ヘテロジニアスコンピューティング。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ComputeType"
]
}
}
}
}