Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::CloudPhone::RunCommand

Última atualização: Jun 27, 2026

Executa um comando em cloud phones.

Sintaxe

{
  "Type": "ALIYUN::CloudPhone::RunCommand",
  "Properties": {
    "Command": String,
    "InstanceIds": List,
    "RunAgainOn": List
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

Command

String

Sim

Não

Comando a executar.

Comprimento máximo: 1024 bytes. Caracteres permitidos: letras, dígitos, sublinhados (_), pontos (.), barras (/), dois-pontos (:) e hifens (-).

InstanceIds

List

Sim

Não

IDs dos cloud phones para execução do comando.

Máximo: 10.

RunAgainOn

List

Não

Sim

Estágios para reexecução do comando.

Nenhuma.

Valores de retorno

Fn::GetAtt

Nenhum.

Exemplos

Formato YAML

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Command:
    Description:
      en: 'The command to be executed.

        The maximum length of a command is 1024 bytes, and only supports lowercase
        letters, numbers, downline (_), points (.), Slanting (/), colon (:), medium
        line (-).'
    Required: true
    Type: String
  InstanceIds:
    AssociationProperty: List[Parameter]
    AssociationPropertyMetadata:
      Parameter:
        Required: false
        Type: String
    Description:
      en: 'ID of the instance executing the command.

        Range of n: 1 ~ 10'
    MaxLength: 10
    MinLength: 1
    Required: true
    Type: Json
Resources:
  RunCommand:
    Properties:
      Command:
        Ref: Command
      InstanceIds:
        Ref: InstanceIds
    Type: ALIYUN::CloudPhone::RunCommand
                        

Formato JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Command": {
      "Type": "String",
      "Description": {
        "en": "The command to be executed.\nThe maximum length of a command is 1024 bytes, and only supports lowercase letters, numbers, downline (_), points (.), Slanting (/), colon (:), medium line (-)."
      },
      "Required": true
    },
    "InstanceIds": {
      "AssociationPropertyMetadata": {
        "Parameter": {
          "Type": "String",
          "Required": false
        }
      },
      "AssociationProperty": "List[Parameter]",
      "Type": "Json",
      "Description": {
        "en": "ID of the instance executing the command.\nRange of n: 1 ~ 10"
      },
      "Required": true,
      "MinLength": 1,
      "MaxLength": 10
    }
  },
  "Resources": {
    "RunCommand": {
      "Type": "ALIYUN::CloudPhone::RunCommand",
      "Properties": {
        "Command": {
          "Ref": "Command"
        },
        "InstanceIds": {
          "Ref": "InstanceIds"
        }
      }
    }
  }
}