Tous les produits
Search
Centre de documentation

CloudOps Orchestration Service:ACS-ECD-BulkyRunCommand

Dernière mise à jour :Aug 11, 2026

Nom du modèle

ACS-ECD-BulkyRunCommand

Exécuter maintenant

Description du modèle

Exécute une commande sur plusieurs bureaux cloud simultanément.

Type de modèle

Automatisé

Propriétaire

Alibaba Cloud

Paramètres d'entrée

|
**Paramètre**
|
**Description**
|
**Type de données**
|
**Obligatoire**
|
**Valeur par défaut**
|
**Limite**
| | --- | --- | --- | --- | --- | --- | |
commandType
|
Type de commande Cloud Assistant.
|
String
|
Oui
| | | |
commandContent
|
Contenu de la commande Cloud Assistant.
|
String
|
Oui
| | | |
regionId
|
ID de la région.
|
String
|
Non
|
{{ ACS::RegionId }}
| | |
desktopIds
|
ID des bureaux cloud.
|
List
|
Non
|
[]
| | |
contentEncoding
|
Méthode d'encodage de la commande.
|
String
|
Non
|
PlainText
| | |
timeout
|
Délai d'expiration de la commande.
|
Number
|
Non
|
600
| | |
rateControl
|
Paramètres de contrôle du débit.
|
Json
|
Non
|
{'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10}
| | |
OOSAssumeRole
|
Rôle RAM assumé par le service CloudOps Orchestration Service (OOS).
|
String
|
Non
|
""
| |

Paramètres de sortie

|
**Paramètre**
|
**Description**
|
**Type de données**
| | --- | --- | --- | |
commandOutputs
| |
List
|

Stratégie d'autorisation requise pour exécuter le modèle

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "ecd:DescribeInvocations",
                "ecd:RunCommand"
            ],
            "Resource": "*",
            "Effect": "Allow"
        }
    ]
}

Références

ACS-ECD-BulkyRunCommand

Contenu du modèle

FormatVersion: OOS-2019-06-01
Description:
  en: Bulky run command on ECD desktops
  name-en: ACS-ECD-BulkyRunCommand
Parameters:
  regionId:
    Label:
      en: RegionId
    Type: String
    AssociationProperty: RegionId
    Default: '{{ ACS::RegionId }}'
  desktopIds:
    Label:
      en: DesktopIds
    Type: List
    Default: []
  commandType:
    Label:
      en: CommandType
    Type: String
    AllowedValues:
      - RunBatScript
      - RunPowerShellScript
  contentEncoding:
    Label:
      en: ContentEncoding
    Type: String
    AllowedValues:
      - PlainText
      - Base64
    Default: PlainText
  commandContent:
    Label:
      en: CommandContent
    Type: String
    AssociationProperty: Code
  timeout:
    Label:
      en: Timeout
    Type: Number
    Default: 600
  rateControl:
    Label:
      en: RateControl
    Type: Json
    AssociationProperty: RateControl
    Default:
      Mode: Concurrency
      MaxErrors: 0
      Concurrency: 10
  OOSAssumeRole:
    Label:
      en: OOSAssumeRole
    Type: String
    Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
  - Name: runCommand
    Action: ACS::ECD::RunCommand
    Description:
      en: Run command on desktops
    Properties:
      regionId: '{{ regionId }}'
      desktopId: '{{ ACS::TaskLoopItem }}'
      commandType: '{{ commandType }}'
      contentEncoding: '{{ contentEncoding }}'
      commandContent: '{{ commandContent }}'
      timeout: '{{ timeout }}'
    Loop:
      RateControl: '{{ rateControl }}'
      Items: '{{ desktopIds }}'
      Outputs:
        commandOutputs:
          AggregateType: Fn::ListJoin
          AggregateField: commandOutput
    Outputs:
      commandOutput:
        Type: String
        ValueSelector: invocationOutput
Outputs:
  commandOutputs:
    Type: List
    Value: '{{ runCommand.commandOutputs }}'
Metadata:
  ALIYUN::OOS::Interface:
    ParameterGroups:
      - Parameters:
          - commandType
          - contentEncoding
          - commandContent
          - timeout
        Label:
          default:
            en: Configure Parameters
      - Parameters:
          - regionId
          - desktopIds
        Label:
          default:
            en: Select ECD Desktops
      - Parameters:
          - rateControl
          - OOSAssumeRole
        Label:
          default:
            en: Control Options