文档

DATASOURCE::CloudPhone::Images

更新时间:

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

语法

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

属性

属性名称

类型

必须

允许更新

描述

约束

ImageName

String

镜像名称。

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

ImageCategory

String

镜像来源。

取值:

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

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

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

ImageId

String

镜像ID。

返回值

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"
        ]
      }
    }
  }
}
  • 本页导读 (1)
文档反馈