调用 ModifyDBInstanceDeletionProtectionPolicy 接口开启或关闭实例删除保护功能。
同步请求。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
InstanceId | String | 是 | vedbm-jr5dhtlg**** | 实例 ID。 |
DeletionProtection | String | 是 | enabled | 开启或关闭实例删除保护功能。取值范围:
|
null
POST /?Action=ModifyDBInstanceDeletionProtectionPolicy&Version=2022-01-01 HTTP/1.1 Content-Type: application/json Host:vedbm.volcengineapi.com X-Date: 20220316T101010Z Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20220316/cn-beijing/vedbm/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c645**** { "InstanceId": "vedbm-jr5dhtlg****", "DeletionProtection": "enabled" }
{ "ResponseMetadata": { "RequestId": "202408271622093B2E815EAAE7A712****-3db7eb", "Action": "ModifyDBInstanceDeletionProtectionPolicy", "Version": "2022-01-01", "Service": "vedbm", "Region": "cn-beijing" }, "Result": null }
更多详情,请参见错误码。