ALIYUN::HBR::DbVault
更新時間:
ALIYUN::HBR::DbVault類型用于創(chuàng)建鏡像備份倉庫。
語法
{
"Type": "ALIYUN::HBR::DbVault",
"Properties": {
"Description": String,
"VaultName": String,
"RetentionDays": Integer,
"VaultRegionId": String,
"Tags": List
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
Description | String | 否 | 否 | 倉庫描述。 | 無 |
VaultName | String | 是 | 否 | 倉庫名稱。 | 無 |
RetentionDays | Integer | 是 | 是 | 備份保留天數(shù)。 | 無 |
VaultRegionId | String | 是 | 否 | 倉庫所屬地域ID。 | 倉庫所屬地域必須與支持云備份(Cloud Backup)的地域一致。 更多信息,請參見開服地域。 |
Tags | List | 否 | 是 | 標(biāo)簽。 | 更多信息,請參見Tags屬性。 |
Tags語法
"Tags": [
{
"Key": String,
"Value": String
}
]
Tags屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
Key | String | 是 | 否 | 標(biāo)簽鍵。 | 長度為1~128個字符,不能以 |
Value | String | 否 | 否 | 標(biāo)簽值。 | 長度為1~128個字符,不能以 |
返回值
Fn::GetAtt
Description:倉庫描述。
VaultName:倉庫名稱。
RetentionDays:備份保留天數(shù)。
VaultId:倉庫ID。
VaultRegionId:倉庫所屬地域ID。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
VaultName:
Type: String
Description: Display name of the vault.
Default: test
RetentionDays:
Type: Number
Description: Data retention days of the vault. Data will be deleted when it's older than this time.
Default: 1
VaultRegionId:
Type: String
Description: The region ID to create the vault.
Default: cn-hangzhou
Resources:
HBRDbVault:
Type: ALIYUN::HBR::DbVault
Properties:
VaultName:
Ref: VaultName
RetentionDays:
Ref: RetentionDays
VaultRegionId:
Ref: VaultRegionId
Outputs:
Description:
Description: Description of the vault.
Value:
Fn::GetAtt:
- HBRDbVault
- Description
VaultName:
Description: Display name of the vault.
Value:
Fn::GetAtt:
- HBRDbVault
- VaultName
RetentionDays:
Description: Data retention days of the vault. Data will be deleted when it's older than this time.
Value:
Fn::GetAtt:
- HBRDbVault
- RetentionDays
VaultId:
Description: Vault ID.
Value:
Fn::GetAtt:
- HBRDbVault
- VaultId
VaultRegionId:
Description: The region ID to create the vault.
Value:
Fn::GetAtt:
- HBRDbVault
- VaultRegionId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"VaultName": {
"Type": "String",
"Description": "Display name of the vault.",
"Default": "test"
},
"RetentionDays": {
"Type": "Number",
"Description": "Data retention days of the vault. Data will be deleted when it's older than this time.",
"Default": 1
},
"VaultRegionId": {
"Type": "String",
"Description": "The region ID to create the vault.",
"Default": "cn-hangzhou"
}
},
"Resources": {
"HBRDbVault": {
"Type": "ALIYUN::HBR::DbVault",
"Properties": {
"VaultName": {
"Ref": "VaultName"
},
"RetentionDays": {
"Ref": "RetentionDays"
},
"VaultRegionId": {
"Ref": "VaultRegionId"
}
}
}
},
"Outputs": {
"Description": {
"Description": "Description of the vault.",
"Value": {
"Fn::GetAtt": [
"HBRDbVault",
"Description"
]
}
},
"VaultName": {
"Description": "Display name of the vault.",
"Value": {
"Fn::GetAtt": [
"HBRDbVault",
"VaultName"
]
}
},
"RetentionDays": {
"Description": "Data retention days of the vault. Data will be deleted when it's older than this time.",
"Value": {
"Fn::GetAtt": [
"HBRDbVault",
"RetentionDays"
]
}
},
"VaultId": {
"Description": "Vault ID.",
"Value": {
"Fn::GetAtt": [
"HBRDbVault",
"VaultId"
]
}
},
"VaultRegionId": {
"Description": "The region ID to create the vault.",
"Value": {
"Fn::GetAtt": [
"HBRDbVault",
"VaultRegionId"
]
}
}
}
}
文檔內(nèi)容是否對您有幫助?