huawei-cloud-api-definitions-CBR 0.1.20251031

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"ChangeToPeriod":{"properties":{"charging_mode":{"description":"付费模式,当前仅可选择:pre_paid","maxLength":16,"minLength":8,"pattern":"^[a-zA-Z0-9_\\-]*$","type":"string","x-huawei-extraAnnotation":""},"console_url":{"description":"跳转URL","maxLength":255,"minLength":1,"type":"string","x-huawei-extraAnnotation":""},"is_auto_pay":{"default":false,"description":"是否自动付费,默认为不自动付费","type":"boolean"},"is_auto_renew":{"default":false,"description":"到期后是否自动续期,默认不续期","type":"boolean","x-huawei-extraAnnotation":""},"period_num":{"description":"创建类型的数量,按年或按月的个数","format":"int32","maximum":9,"minimum":1,"type":"integer","x-huawei-extraAnnotation":""},"period_type":{"description":"创建类型,按年(year)或者按月(month)","maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9_\\-]*$","type":"string","x-huawei-extraAnnotation":""},"vault_ids":{"description":"资源列表","items":{"type":"string"},"maxItems":60,"minItems":1,"type":"array","x-huawei-extraAnnotation":""}},"required":["period_num","period_type","vault_ids"]},"OrderResponseBody":{"description":"This is a auto create Response Object","properties":{"orderId":{"description":"订单ID","type":"string"},"retCode":{"description":"变更状态码","type":"number"},"retMsg":{"description":"变更信息","type":"string"}}}},"description":null,"group_id":"11b1e4b30d524dacb6891902e04115dd","host":"cbr.cn-north-4.myhuaweicloud.com","id":"9a0e8f08f87d417bb7c401a033eb1510","info_version":"v1","method":"post","name":"ChangeVaultChargeMode","parameters":{},"paths":{"/v3/{project_id}/vaults/change-charge-mode":{"post":{"description":"修改资源的付费模式,暂时只支持按需资源转包周期资源。\n> 该接口目前输入公测阶段,部分region暂时无法使用。","operationId":"ChangeVaultChargeMode","parameters":[{"description":"项目ID","in":"path","maxLength":64,"minLength":30,"name":"project_id","required":true,"type":"string","x-order":3},{"description":"变更请求body","in":"body","name":"ChangeVaultChargeModeRequestBody","required":true,"schema":{"$ref":"#/definitions/ChangeToPeriod"},"x-order":1}],"responses":{"200":{"description":"OK","examples":{"application/json":{"orderId":"CS2305291628MSG5A","retCode":0,"retMsg":"success"}},"schema":{"$ref":"#/definitions/OrderResponseBody"}}},"summary":"修改付费模式","tags":["运营"],"x-api-type":"open-api","x-apiexplorer-hide":"false","x-first-open-time":"","x-hybridcloud":"","x-is-registered":"Y","x-name":"变更","x-open-region-cloud":"hc,hk","x-order":1,"x-publishpath":"","x-request-examples-1":{"charging_mode":"pre_paid","console_url":"https://www.{endpoint}/v3/","is_auto_pay":true,"is_auto_renew":true,"period_num":2,"period_type":"year","vault_ids":["9dd8f8db-a926-440b-9af5-81b643618898"]},"x-request-examples-description-1":"按需存储库转包周期","x-request-examples-text-1":{"charging_mode":"pre_paid","console_url":"https://www.{endpoint}/v3/","is_auto_pay":true,"is_auto_renew":true,"period_num":2,"period_type":"year","vault_ids":["9dd8f8db-a926-440b-9af5-81b643618898"]},"x-request-examples-url-1":"https://{endpoint}/v3/{project_id}/vaults/change-charge-mode","x-scope":"Commercial","x-source":"","x-support-sdk":"Y"}}},"product_short":"CBR","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"修改付费模式","tags":"运营","uri":null,"version":"2.0"}