Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::PVTZ::SyncEcsHost

Última atualização: Jun 27, 2026

Cria uma tarefa de sincronização de nomes de host.

Sintaxe

{
  "Type": "ALIYUN::PVTZ::SyncEcsHost",
  "Properties": {
    "Regions": List,
    "Status": String,
    "ZoneId": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

Regions

List

Sim

Sim

Regiões a sincronizar.

{'Length': {'Min': 1, 'Max': 500}}

Status

String

Sim

Sim

Status da tarefa de sincronização.

Valores válidos:

  • ON

  • OFF

ZoneId

String

Sim

Não

ID da zona.

Nenhuma.

Sintaxe de Regions

"Regions": [
  {
    "UserId": String,
    "RegionId": String
  }
]

Propriedades de Regions

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

RegionId

String

Sim

Sim

ID da região.

Nenhuma.

UserId

String

Não

Sim

ID do usuário associado à região.

Usado para sincronização entre contas.

Valores de retorno

Fn::GetAtt

Nenhum.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Status:
    Type: String
    Description:
      en: 'The host synchronizes the task state. Valid values: ON, OFF.'
    AllowedValues:
      - 'ON'
      - 'OFF'
    Required: true
  ZoneId:
    AssociationProperty: ZoneId
    Type: String
    Description:
      en: Zone ID, a unique identifier for the Zone.
    Required: true
  Regions:
    AssociationPropertyMetadata:
      Parameters:
        UserId:
          Type: String
          Description:
            en: Region-owned user ID for cross-account sync scenarios.
          Required: false
        RegionId:
          Type: String
          Description:
            en: Region id.
          Required: true
    AssociationProperty: List[Parameters]
    Type: Json
    Description:
      en: A list of region information to be synchronized.
    Required: true
    MinLength: 1
    MaxLength: 500
Resources:
  SyncEcsHost:
    Type: ALIYUN::PVTZ::SyncEcsHost
    Properties:
      Status:
        Ref: Status
      ZoneId:
        Ref: ZoneId
      Regions:
        Ref: Regions
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Status": {
      "Type": "String",
      "Description": {
        "en": "The host synchronizes the task state. Valid values: ON, OFF."
      },
      "AllowedValues": [
        "ON",
        "OFF"
      ],
      "Required": true
    },
    "ZoneId": {
      "AssociationProperty": "ZoneId",
      "Type": "String",
      "Description": {
        "en": "Zone ID, a unique identifier for the Zone."
      },
      "Required": true
    },
    "Regions": {
      "AssociationPropertyMetadata": {
        "Parameters": {
          "UserId": {
            "Type": "String",
            "Description": {
              "en": "Region-owned user ID for cross-account sync scenarios."
            },
            "Required": false
          },
          "RegionId": {
            "Type": "String",
            "Description": {
              "en": "Region id."
            },
            "Required": true
          }
        }
      },
      "AssociationProperty": "List[Parameters]",
      "Type": "Json",
      "Description": {
        "en": "A list of region information to be synchronized."
      },
      "Required": true,
      "MinLength": 1,
      "MaxLength": 500
    }
  },
  "Resources": {
    "SyncEcsHost": {
      "Type": "ALIYUN::PVTZ::SyncEcsHost",
      "Properties": {
        "Status": {
          "Ref": "Status"
        },
        "ZoneId": {
          "Ref": "ZoneId"
        },
        "Regions": {
          "Ref": "Regions"
        }
      }
    }
  }
}