Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::HBR::DbVault

Última atualização: Jun 27, 2026

ALIYUN::HBR::DbVault é um tipo de recurso usado para criar um cofre de backup de imagens.

Sintaxe

{
  "Type": "ALIYUN::HBR::DbVault",
  "Properties": {
    "Description": String,
    "VaultName": String,
    "RetentionDays": Integer,
    "VaultRegionId": String,
    "Tags": List
  }
}

Propriedades

Nome da propriedade

Tipo

Obrigatória

Permite atualizações

Descrição

Restrições

Description

String

Não

Não

Descrição do cofre.

Nenhuma

VaultName

String

Sim

Não

Nome do cofre.

Nenhuma

RetentionDays

Integer

Sim

Sim

Período de retenção do backup, em dias.

Nenhuma

VaultRegionId

String

Sim

Não

ID da região do cofre.

O cofre deve estar em uma região compatível com o Cloud Backup.

Para mais informações, consulte Regiões disponíveis.

Tags

List

Não

Sim

Tags do recurso.

Para mais informações, consulte a seção Propriedade Tags.

Sintaxe de Tags

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

Propriedade Tags

Nome da propriedade

Tipo

Obrigatória

Atualizável

Descrição

Restrições

Key

String

Sim

Não

Chave da tag.

A chave da tag pode ter de 1 a 128 caracteres. Não pode começar com aliyun ou acs:, nem conter http:// ou https://.

Value

String

Não

Não

Valor da tag.

O valor da tag pode ter de 1 a 128 caracteres. Não pode começar com aliyun ou acs:, nem conter http:// ou https://.

Valores de retorno

Fn::GetAtt

  • Description: descrição do cofre.

  • VaultName: nome do cofre.

  • RetentionDays: período de retenção do backup, em dias.

  • VaultId: ID do cofre.

  • VaultRegionId: ID da região do cofre.

Exemplos

Formato YAML

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

Formato JSON

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