ALIYUN::HBR::BackupClients类型用于为ECS实例安装备份客户端。
语法
{
  "Type": "ALIYUN::HBR::BackupClients",
  "Properties": {
    "InstanceIds": List,
    "Tags": List
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| InstanceIds | List | 是 | 否 | 安装ECS备份客户端的实例ID。 | 最多支持为20个ECS实例安装备份客户端。 | 
| Tags | List | 否 | 是 | 用户自定义标签。 | 更多信息,请参见Tags属性。 | 
Tags语法
"Tags": [
  {
    "Value": String,
    "Key": String
  }
]Tags属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| Key | String | 是 | 否 | 标签键。 | 长度为1~128个字符,不能以 | 
| Value | String | 否 | 否 | 标签值。 | 长度为0~128个字符,不能以 | 
返回值
Fn::GetAtt
- InstanceIds:ECS实例ID。 
- ClientIds:备份客户端ID。 
- Arn:阿里云资源名称。 
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
 InstanceIds:
  Type: Json
  Description: ID list of instances to install backup client
  MinLength: 1
  MaxLength: 20
Resources:
 BackupClients:
  Type: 'ALIYUN::HBR::BackupClients'
  Properties:
   InstanceIds:
    Ref: InstanceIds
Outputs:
 InstanceIds:
  Description: ID list of instances to install backup client
  Value:
   'Fn::GetAtt':
    - BackupClients
    - InstanceIds
 ClientIds:
  Description: ID list of clients installed in instances
  Value:
   'Fn::GetAtt':
    - BackupClients
    - ClientIds{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "InstanceIds": {
      "Type": "Json",
      "Description": "ID list of instances to install backup client",
      "MinLength": 1,
      "MaxLength": 20
    }
  },
  "Resources": {
    "BackupClients": {
      "Type": "ALIYUN::HBR::BackupClients",
      "Properties": {
        "InstanceIds": {
          "Ref": "InstanceIds"
        }
      }
    }
  },
  "Outputs": {
    "InstanceIds": {
      "Description": "ID list of instances to install backup client",
      "Value": {
        "Fn::GetAtt": [
          "BackupClients",
          "InstanceIds"
        ]
      }
    },
    "ClientIds": {
      "Description": "ID list of clients installed in instances",
      "Value": {
        "Fn::GetAtt": [
          "BackupClients",
          "ClientIds"
        ]
      }
    }
  }
}该文章对您有帮助吗?