DATASOURCE::CloudPhone::Image类型用于查询指定镜像的资源信息。
语法
{
"Type": "DATASOURCE::CloudPhone::Image",
"Properties": {
"ImageId": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
ImageId | String | 是 | 是 | 镜像ID。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值:
|
返回值
Fn::GetAtt
Status:镜像的状态。
Usage:镜像是否已经运行在云手机实例中。
Progress:镜像的制作进度。
Description:镜像描述。
IsSelfShared:该镜像是否已共享给其他用户。
Platform:操作系统发行版。
OsName:操作系统的中文显示名称。
CreateTime:镜像创建时间。
ImageCategory:镜像来源。
ImageName:镜像的名称。
OsNameEn:操作系统的英文显示名称。
OsType:操作系统类型。
ImageId:镜像ID。
示例
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ImageId:
Description:
en: Image ID.
Required: true
Type: String
Resources:
ExtensionDataSource:
Properties:
ImageId:
Ref: ImageId
Type: DATASOURCE::CloudPhone::Image
Outputs:
CreateTime:
Description: Image creation time, in ISO 8601 format.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
Description:
Description: Image description.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Description
ImageCategory:
Description: Image type.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ImageCategory
ImageId:
Description: Image ID.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ImageId
ImageName:
Description: The name of the mirror image.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ImageName
IsSelfShared:
Description: Whether the image has been shared with other users.
Value:
Fn::GetAtt:
- ExtensionDataSource
- IsSelfShared
OsName:
Description: The Chinese display name of the operating system.
Value:
Fn::GetAtt:
- ExtensionDataSource
- OsName
OsNameEn:
Description: The English display name of the operating system.
Value:
Fn::GetAtt:
- ExtensionDataSource
- OsNameEn
OsType:
Description: Operating system type.
Value:
Fn::GetAtt:
- ExtensionDataSource
- OsType
Platform:
Description: Operating system distribution.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Platform
Progress:
Description: The progress of mirror image production.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Progress
Status:
Description: Image state.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Status
Usage:
Description: Whether the image is already running in the cloud phone instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Usage
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ImageId": {
"Type": "String",
"Description": {
"en": "Image ID."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::CloudPhone::Image",
"Properties": {
"ImageId": {
"Ref": "ImageId"
}
}
}
},
"Outputs": {
"Status": {
"Description": "Image state.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Status"
]
}
},
"Usage": {
"Description": "Whether the image is already running in the cloud phone instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Usage"
]
}
},
"Progress": {
"Description": "The progress of mirror image production.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Progress"
]
}
},
"Description": {
"Description": "Image description.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Description"
]
}
},
"IsSelfShared": {
"Description": "Whether the image has been shared with other users.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"IsSelfShared"
]
}
},
"Platform": {
"Description": "Operating system distribution.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Platform"
]
}
},
"OsName": {
"Description": "The Chinese display name of the operating system.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"OsName"
]
}
},
"CreateTime": {
"Description": "Image creation time, in ISO 8601 format.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"ImageCategory": {
"Description": "Image type.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ImageCategory"
]
}
},
"ImageName": {
"Description": "The name of the mirror image.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ImageName"
]
}
},
"OsNameEn": {
"Description": "The English display name of the operating system.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"OsNameEn"
]
}
},
"OsType": {
"Description": "Operating system type.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"OsType"
]
}
},
"ImageId": {
"Description": "Image ID.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ImageId"
]
}
}
}
}
文档内容是否对您有帮助?