Updated on 2025-12-09 GMT+08:00

Killing Sessions

Function

This API is used to kill sessions.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
  • If you are using role/policy-based authorization, see Permissions and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, the following identity policy-based permissions are required.

Action

Access Level

Resource Type (*: required)

Condition Key

Alias

Dependencies

rds:instance:update

write

instance

g:EnterpriseProjectId

g:ResourceTag/<tag-key>

rds:instance:modify

-

URI

  • URI format

    PUT /v3/{project_id}/instances/{instance_id}/ops/intelligent-kill-session

  • Parameter description
    Table 1 Parameters

    Parameter

    Type

    Mandatory

    Description

    project_id

    String

    Yes

    Definition

    Project ID of a tenant in a region.

    To obtain the value, see Obtaining a Project ID.

    Constraints

    N/A

    Range

    N/A

    Default Value

    N/A

    instance_id

    String

    Yes

    Definition

    Instance ID.

    Constraints

    N/A

    Range

    N/A

    Default Value

    N/A

Request

Table 2 Parameters

Parameter

Type

Mandatory

Description

auto_add_sql_limit_rule

Boolean

No

Definition

Whether to enable automatic SQL throttling.

Constraints

N/A

Range

true: Enable automatic SQL throttling.

false: Disable automatic SQL throttling.

Default Value

false

Example Request

PUT https://{endpoint}/v3/54623db08b174c858ba779d2aa7923a3/instances/aa650a108f034e83b24486fd1ff7be2fin01/ops/intelligent-kill-session
{ 
   "auto_add_sql_limit_rule" : true 
 }

Response

  • Example normal response

    None

Status Code

Error Code

For details, see Error Codes.