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