{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"BackupEncryptRequest":{"description":"taurus支持备份加密的请求体。","properties":{"encryption_status":{"description":"开启或关闭加密。不区分大小写。","enum":["on","off"],"type":"string"},"kms_key_id":{"description":"kms加密ID。加密时必传,关闭加密时候不传。","type":"string"},"type":{"description":"加密类型。当前只支持kms。\n开启加密时必传,关闭加密时不传。\n不区分大小写。","enum":["kms"],"type":"string"}},"required":["encryption_status"],"type":"object"},"BackupEncryptResponse":{"description":"返回加密状态。","properties":{"encryption_status":{"description":"备份加密状态。","enum":["on","off"],"type":"string"}},"required":["encryption_status"],"type":"object"},"MysqlErrorResponse":{"properties":{"error_code":{"description":"错误码。","example":"DBS.200022","type":"string"},"error_msg":{"description":"错误消息。","example":"实例不存在","type":"string"}},"required":["error_code","error_msg"]}},"description":null,"group_id":"1bf15763f8164608918d180a9b1aa137","host":"gaussdb.cn-north-4.myhuaweicloud.com","id":"fd361b75c759437dbb61a1747ea4ca69","info_version":"v3","method":"post","name":"ModifyBackupEncryptStatus","parameters":{},"paths":{"/v3/{project_id}/instances/{instance_id}/backups/encryption":{"post":{"description":"打开或关闭备份加密。","operationId":"ModifyBackupEncryptStatus","parameters":[{"description":"用户Token。","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-example":"******"},{"description":"语言。","in":"header","name":"X-Language","required":false,"type":"string","x-example":"zh-cn"},{"description":"租户在某一region下的project ID。\n\n获取方法请参见[获取项目ID](https://support.huaweicloud.com/api-taurusdb/taurusdb_10_0004.html)。","in":"path","name":"project_id","required":true,"type":"string"},{"description":"租户在某一project下的实例ID。","in":"path","name":"instance_id","required":true,"type":"string"},{"description":"打开或关闭备份加密的请求体。","in":"body","name":"ModifyBackupEncryptStatusRequestBody","required":true,"schema":{"$ref":"#/definitions/BackupEncryptRequest"}}],"responses":{"200":{"description":"Success.","examples":{"application/json":{"encryption_status":"on"}},"schema":{"$ref":"#/definitions/BackupEncryptResponse"}},"400":{"description":"Client error.","schema":{"$ref":"#/definitions/MysqlErrorResponse"}},"500":{"description":"Server error.","schema":{"$ref":"#/definitions/MysqlErrorResponse"}}},"summary":"打开或关闭备份加密","tags":["备份管理"],"x-file":"ck","x-is-registered":"N","x-request-examples-1":{"encryption_status":"on","kms_key_id":"b82fa43f-f6e8-4ec4-9c31-231bc547c526","type":"kms"},"x-request-examples-2":{"encryption_status":"off"},"x-request-examples-description-1":"开启备份加密","x-request-examples-description-2":"关闭备份加密","x-request-examples-text-1":{"encryption_status":"on","kms_key_id":"b82fa43f-f6e8-4ec4-9c31-231bc547c526","type":"kms"},"x-request-examples-text-2":{"encryption_status":"off"},"x-request-examples-url-1":"POST https://{endpoint}/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/7033e7c3cf93438797d44ad7ae0a7d95in07/backups/encryption","x-request-examples-url-2":"POST https://{endpoint}/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/7033e7c3cf93438797d44ad7ae0a7d95in07/backups/encryption","x-support-sdk":"Y"}}},"product_short":"GaussDB","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"打开或关闭备份加密","tags":"备份管理","uri":null,"version":"2.0"}