Killing Sessions
Function
This API is used to kill sessions.
- Before calling this API, learn how to authenticate it.
- Before calling this API, learn about request header parameters.
Authorization Information
- 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
|
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
}
Status Code
- Normal
- Abnormal
For details, see Status Codes.
Error Code
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot