DATASOURCE::CloudPhone::Images类型用于查询可以使用的镜像资源的信息。
语法
{
  "Type": "DATASOURCE::CloudPhone::Images",
  "Properties": {
    "ImageName": String,
    "ImageCategory": String,
    "ImageId": String,
    "RefreshOptions": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| ImageName | String | 否 | 是 | 镜像名称。 | 长度为2~128个英文或中文字符。必须以大小写字母或中文开头,不能以 | 
| ImageCategory | String | 否 | 是 | 镜像来源。 | 取值: 
 | 
| ImageId | String | 否 | 是 | 镜像ID。 | 无 | 
| RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值: 
 | 
返回值
Fn::GetAtt
- ImageIds:镜像ID列表。 
- Images:镜像详情列表。 
| 属性名称 | 类型 | 描述 | 约束 | 
| ImageIds | List | 镜像ID列表。 | 无 | 
| Images | List | 镜像详情列表。 | 无 | 
| Status | String | 镜像状态。 | 无 | 
| Description | String | 镜像描述。 | 无 | 
| Usage | String | 镜像是否已经运行在云手机实例中。 | 无 | 
| Platform | String | 操作系统发行版。 | 无 | 
| OsNameEn | String | 操作系统的英文显示名称。 | 无 | 
| RegionId | String | 地域ID。 | 无 | 
| OsName | String | 操作系统的中文显示名称。 | 无 | 
| ImageId | String | 镜像ID。 | 无 | 
| IsSelfShared | String | 该镜像是否已共享给其他用户。 | 无 | 
| ImageName | String | 镜像的名称。 | 无 | 
| OsType | String | 操作系统类型。 | 无 | 
| Progress | String | 镜像的制作进度。 | 无 | 
| CreateTime | String | 镜像创建时间。 | 无 | 
| ImageCategory | String | 镜像类型。 | 无 | 
示例
YAML格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ImageName:
    Description: The name of the mirror image.
    Type: String
Resources:
  ExtensionDataSource:
    Properties:
      ImageName:
        Ref: ImageName
    Type: DATASOURCE::CloudPhone::Images
Outputs:
  ImageIds:
    Description: The list of image IDs.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ImageIds
  Images:
    Description: The list of images.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ImagesJSON格式
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ImageName": {
      "Type": "String",
      "Description": "The name of the mirror image."
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::CloudPhone::Images",
      "Properties": {
        "ImageName": {
          "Ref": "ImageName"
        }
      }
    }
  },
  "Outputs": {
    "ImageIds": {
      "Description": "The list of image IDs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ImageIds"
        ]
      }
    },
    "Images": {
      "Description": "The list of images.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Images"
        ]
      }
    }
  }
}