DeleteResourceControl - 删除资源控制规则

更新时间:
复制 MD 格式

删除指定 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代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

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。

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情