刪除指定 PolarDB MySQL 叢集中的資源控制規則。
介面說明
Resource Control 用於限制 PolarDB MySQL 叢集中指定使用者、資料庫、查詢或連線可使用的 CPU 資源。本期開放建立、修改、刪除、綁定和解綁能力,不提供 Resource Control CPU 使用率查詢能力。
使用限制
僅適用於支援 Resource Control 的 PolarDB MySQL 叢集版,PolarDB MySQL 標準版不支援。
叢集核心參數 loose_enable_resource_control 必須設定為 ON。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求文法
POST HTTP/1.1
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
否 |
PolarDB 叢集所在地域的 ID。 說明
您可以透過 DescribeRegions 介面查看可用地域。 |
cn-beijing |
| DBClusterId |
string |
是 |
PolarDB 叢集 ID。 |
pc-************** |
| ResourceControlName |
string |
是 |
資源控制規則名稱。長度為 1~63 個 ASCII 位元組,必須以英文字母開頭,僅支援英文字母、數字和底線。 |
test_rc |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
A7E6A8FD-C50B-46B2-BA85-D8B8D3****** |
樣本
正常返回樣本
JSON格式
{
"RequestId": "A7E6A8FD-C50B-46B2-BA85-D8B8D3******"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidParameters.Malformed | The specified Resource Control parameter is not valid. | |
| 400 | Database.ConnectError | Unable to connect to the database instance. | |
| 400 | Database.ExecError | The Resource Control operation could not be executed on the database instance. | |
| 403 | IncorrectDBInstanceType | Resource Control is not supported for the current DB cluster edition or kernel configuration. | |
| 403 | AuthorizationFailure | The request is not authorized to operate Resource Control. | |
| 404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | 目前的記錄中不存在提供的 DBClusterId。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。