云备份 CBR-创建包周期存储库:请求示例

时间:2025-02-13 11:13:33

请求示例

  • 创建一个包周期云服务器备份存储库,存储库容量为80G,周期为一个月且绑定一个资源。

    POST https://{endpoint}/v3/f841e01fd2b14e7fa41b6ae7aa6b0594/vaults/order
    
    {
      "vault" : {
        "name" : "vault_name",
        "billing" : {
          "consistent_level" : "app_consistent",
          "object_type" : "server",
          "protect_type" : "backup",
          "size" : 80,
          "charging_mode" : "pre_paid",
          "period_type" : "month",
          "period_num" : 1
        },
        "resources" : [ {
          "id" : "23a320a5-3efd-4568-b1aa-8dd9183cc64c",
          "type" : "OS::Nova::Server"
        } ]
      }
    }
  • 创建一个包周期云服务器备份存储库,存储库容量阈值为80G,云服务器数量为5,周期为一个月同时绑定一个资源并添加标签。

    POST https://{endpoint}/v3/f841e01fd2b14e7fa41b6ae7aa6b0594/vaults/order
    
    {
      "vault" : {
        "name" : "123",
        "description" : "description",
        "backup_policy_id" : "70e9c916-7109-472d-94e7-120900e4ba61",
        "tags" : [ {
          "key" : "key",
          "value" : "value"
        } ],
        "auto_bind" : false,
        "threshold" : 80,
        "smn_notify" : true,
        "parameters" : {
          "combined_order" : {
            "combined_order_id" : " CS 2303030959MR1IT",
            "combined_order_ecs_num" : 5,
            "combined_order_num" : 5
          }
        },
        "bind_rules" : {
          "tags" : [ {
            "key" : "bind_rules_key",
            "value" : "bind_rules_value"
          } ]
        },
        "billing" : {
          "cloud_type" : "public",
          "is_auto_renew" : false,
          "is_auto_pay" : false,
          "console_url" : "https://www.com",
          "consistent_level" : "app_consistent",
          "object_type" : "server",
          "protect_type" : "backup",
          "size" : 80,
          "charging_mode" : "pre_paid",
          "period_type" : "month",
          "period_num" : 1
        },
        "resources" : [ {
          "id" : "8ef08ba1-81f7-4e41-ae49-d3e2fb0ba388",
          "type" : "OS::Nova::Server",
          "name" : "server_name",
          "extra_info" : {
            "exclude_volumes" : [ "1855eb9a-2b5e-4938-a9f0-aea08b6f9243" ]
          }
        } ]
      }
    }
support.huaweicloud.com/api-cbr/CreatePostPaidVault.html