すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:Alibaba Cloud DNS PrivateZone、SyncEcsHost、ホスト名同期タスク

最終更新日:Mar 17, 2025

ALIYUN::PVTZ::SyncEcsHost は、ホスト名同期タスクを作成するために使用されます。

構文

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

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

Regions

リスト

はい

はい

同期するリージョンの情報。

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

Status

文字列

はい

はい

ホスト名同期タスクのステータス。

有効な値:

  • ON

  • OFF

ZoneId

文字列

はい

いいえ

ゾーン ID。

なし。

Regions 構文

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

Regions プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

RegionId

文字列

はい

はい

リージョン ID。

なし。

UserId

文字列

いいえ

はい

リージョンに対応するユーザーの ID。

このプロパティは、クロスアカウント同期シナリオで使用されます。

戻り値

Fn::GetAtt

なし。

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"
        }
      }
    }
  }
}