Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::CloudPhone::Image

Última atualização: Jun 27, 2026

Cria uma imagem personalizada para um cloud phone.

Sintaxe

{
  "Type": "ALIYUN::CloudPhone::Image",
  "Properties": {
    "ImageName": String,
    "Description": String,
    "InstanceId": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

InstanceId

String

Sim

Não

ID do cloud phone.

Nenhuma.

Description

String

Não

Sim

Descrição da imagem.

Deve ter de 2 a 256 caracteres e pode conter letras. Não deve começar com http:// ou https://.

ImageName

String

Não

Sim

Nome da imagem.

Deve ter de 2 a 128 caracteres e começar com uma letra. Não deve começar com http:// ou https://. Pode conter letras, dígitos, dois pontos (:), sublinhados (_) e hifens (-).

Valores de retorno

Fn::GetAtt

  • ImageName: nome da imagem.

  • Usage: indica se um cloud phone está usando a imagem.

  • Progress: progresso da criação da imagem.

  • Description: descrição da imagem.

  • IsSelfShared: indica se a imagem é compartilhada com outros usuários.

  • Platform: distribuição do sistema operacional.

  • OsNameEn: nome de exibição do sistema operacional em inglês.

  • OsType: tipo do sistema operacional.

  • OsName: nome de exibição do sistema operacional em chinês.

  • CreateTime: horário de criação da imagem.

  • ImageId: ID da imagem.

  • ImageCategory: origem da imagem.

Exemplos

Formato YAML

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Description:
    AssociationProperty: TextArea
    Description:
      en: The image description. The description must be 2 to 256 characters in length.
        It cannot start with http:// or https://.
    Required: false
    Type: String
  ImageName:
    Description:
      en: The image name. The name must be 2 to 128 characters in length. It can contain
        letters, digits, colons (:), underscores (_), and hyphens (-). The name must
        start with a letter but cannot start with http:// or https://.
    Required: false
    Type: String
  InstanceId:
    Description:
      en: The ID of the mobile phone instance.
    Required: true
    Type: String
Resources:
  ExtensionResource:
    Properties:
      Description:
        Ref: Description
      ImageName:
        Ref: ImageName
      InstanceId:
        Ref: InstanceId
    Type: ALIYUN::CloudPhone::Image
Outputs:
  CreateTime:
    Description: The time when the image was created. The time follows the ISO 8601
      standard.
    Value:
      Fn::GetAtt:
      - ExtensionResource
      - CreateTime
  Description:
    Description: 'The image description. '
    Value:
      Fn::GetAtt:
      - ExtensionResource
      - Description
  ImageCategory:
    Description: The image type.
    Value:
      Fn::GetAtt:
      - ExtensionResource
      - ImageCategory
  ImageId:
    Description: The image ID.
    Value:
      Fn::GetAtt:
      - ExtensionResource
      - ImageId
  ImageName:
    Description: The image name.
    Value:
      Fn::GetAtt:
      - ExtensionResource
      - ImageName
  IsSelfShared:
    Description: Indicates whether the image is shared with other Alibaba Cloud accounts.
    Value:
      Fn::GetAtt:
      - ExtensionResource
      - IsSelfShared
  OsName:
    Description: The display name of the OS in Chinese.
    Value:
      Fn::GetAtt:
      - ExtensionResource
      - OsName
  OsNameEn:
    Description: The display name of the OS in English.
    Value:
      Fn::GetAtt:
      - ExtensionResource
      - OsNameEn
  OsType:
    Description: The image OS.
    Value:
      Fn::GetAtt:
      - ExtensionResource
      - OsType
  Platform:
    Description: The OS distribution.
    Value:
      Fn::GetAtt:
      - ExtensionResource
      - Platform
  Progress:
    Description: The progress of image creation.
    Value:
      Fn::GetAtt:
      - ExtensionResource
      - Progress
  Usage:
    Description: Whether the image is already running in the cloud phone instance.
    Value:
      Fn::GetAtt:
      - ExtensionResource
      - Usage
                        

Formato JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ImageName": {
      "Type": "String",
      "Description": {
        "en": "The image name. The name must be 2 to 128 characters in length. It can contain letters, digits, colons (:), underscores (_), and hyphens (-). The name must start with a letter but cannot start with http:// or https://."
      },
      "Required": false
    },
    "Description": {
      "AssociationProperty": "TextArea",
      "Type": "String",
      "Description": {
        "en": "The image description. The description must be 2 to 256 characters in length. It cannot start with http:// or https://."
      },
      "Required": false
    },
    "InstanceId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the mobile phone instance."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::CloudPhone::Image",
      "Properties": {
        "ImageName": {
          "Ref": "ImageName"
        },
        "Description": {
          "Ref": "Description"
        },
        "InstanceId": {
          "Ref": "InstanceId"
        }
      }
    }
  },
  "Outputs": {
    "ImageName": {
      "Description": "The image name.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ImageName"
        ]
      }
    },
    "Usage": {
      "Description": "Whether the image is already running in the cloud phone instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Usage"
        ]
      }
    },
    "Progress": {
      "Description": "The progress of image creation.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Progress"
        ]
      }
    },
    "Description": {
      "Description": "The image description. ",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Description"
        ]
      }
    },
    "IsSelfShared": {
      "Description": "Indicates whether the image is shared with other Alibaba Cloud accounts.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "IsSelfShared"
        ]
      }
    },
    "Platform": {
      "Description": "The OS distribution.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Platform"
        ]
      }
    },
    "OsNameEn": {
      "Description": "The display name of the OS in English.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "OsNameEn"
        ]
      }
    },
    "OsType": {
      "Description": "The image OS.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "OsType"
        ]
      }
    },
    "OsName": {
      "Description": "The display name of the OS in Chinese.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "OsName"
        ]
      }
    },
    "CreateTime": {
      "Description": "The time when the image was created. The time follows the ISO 8601 standard.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "CreateTime"
        ]
      }
    },
    "ImageId": {
      "Description": "The image ID.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ImageId"
        ]
      }
    },
    "ImageCategory": {
      "Description": "The image type.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ImageCategory"
        ]
      }
    }
  }
}