You can use Resource Orchestration Service (ROS) to call Cloud Backup resources. Create an Resource Orchestration Service template to automatically create a backup vault for Cloud Backup.
Supported resources
ROS is an Alibaba Cloud service that simplifies cloud resource management. You create templates that describe the required resources, such as Elastic Compute Service (ECS) instances, Object Storage Service (OSS) buckets, and File Storage NAS (NAS) file systems, and the dependencies between them. ROS then automatically creates and configures all resources based on the template. For more information, see What is Resource Orchestration Service
ROS can orchestrate Cloud Backup API operations. Supported resources include regular resources and data resources.
-
Regular resources:
-
ALIYUN::HBR::BackupClients: installs backup clients on ECS instances.
-
ALIYUN::HBR::RestoreJob: creates a restore job.
-
ALIYUN::HBR::DbAgent: installs a backup client for a database.
-
ALIYUN::HBR::DbPlan: creates a backup plan.
-
ALIYUN::HBR::DbVault: creates a mirror vault.
-
ALIYUN::HBR::Vault: creates a backup vault.
-
-
Data resources:
-
DATASOURCE::HBR::Vaults: queries the information about backup vaults.
-
Permissions
To create a backup vault in this example, Resource Orchestration Service uses the credentials of the current console user by default. The user must have the following permission:
-
AliyunHBRFullAccess: grants full permissions on Cloud Backup.
An Alibaba Cloud account has permissions on all API operations, which may pose security risks. We recommend that you use a Resource Access Management (RAM) user for API calls and routine O&M. Grant the RAM user the required permissions to manage Cloud Backup resources based on your business requirements. For more information, see Create a RAM user to perform Cloud Backup operations.
Procedure
-
Log on to the ROS console. In the top navigation bar, select a region from the Region drop-down list.
-
In the left-side navigation pane, click Stacks. Choose .
-
Specify Template: Select Select an Existing Template.
-
Template Import Method: Select Enter Template Content.
-
-
For Template Content, select ROS and enter the code.
For more information about the syntax, description, and examples of how to create a backup vault, see ALIYUN::HBR::Vault. In this example, create a backup vault named
test-vault. -
Click Create and execute the created stack.
-
View the result.

-
After the backup vault named
test-vaultis created, you can view the backup vault by calling API operations, running SDKs, or performing operations in the Cloud Backup console.