DATASOURCE::CloudPhone::Images

更新时间:
复制 MD 格式

DATASOURCE::CloudPhone::Images类型用于查询可以使用的镜像资源的信息。

语法

{
  "Type": "DATASOURCE::CloudPhone::Images",
  "Properties": {
    "ImageName": String,
    "ImageCategory": String,
    "ImageId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

ImageName

String

否

是

镜像名称。

长度为2~128个英文或中文字符。必须以大小写字母或中文开头,不能以http://和https://开头。可以包含数字、半角冒号(:)、下划线(_)或者短划线(-)。

ImageCategory

String

否

是

镜像来源。

取值:

  • system:阿里云提供的公共镜像。

  • self:您创建的自定义镜像。

  • others:其他阿里云用户共享给您的镜像。

ImageId

String

否

是

镜像ID。

无

RefreshOptions

String

否

是

当资源栈更新时,数据源资源的刷新策略。

有效值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回值

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
      - Images

JSON格式

{
  "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"
        ]
      }
    }
  }
}