ALIYUN::HBR::BackupClients

更新时间:
复制 MD 格式

ALIYUN::HBR::BackupClients installs backup clients on ECS instances.

Syntax

{
  "Type": "ALIYUN::HBR::BackupClients",
  "Properties": {
    "InstanceIds": List,
    "Tags": List
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

InstanceIds

List

Yes

No

IDs of the ECS instances on which to install backup clients.

Maximum: 20 ECS instances.

Tags

List

No

Yes

Custom tags.

For more information, see Tags properties.

Tags syntax

"Tags": [
  {
    "Value": String,
    "Key": String
  }
]

Tags properties

Property

Type

Required

Editable

Description

Constraint

Key

String

Yes

No

Tag key.

1 to 128 characters. Cannot start with aliyun or acs:. Cannot contain http:// or https://.

Value

String

No

No

Tag value.

Up to 128 characters. Cannot start with aliyun or acs:. Cannot contain http:// or https://.

Return values

Fn::GetAtt

  • InstanceIds: IDs of the ECS instances.

  • ClientIds: IDs of the backup clients.

  • Arn: Alibaba Cloud Resource Name (ARN).

Examples

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