获取指定会话kill类型的相关参数
更新时间:2023-08-22
接口说明
本接口用于获取指定会话kill类型的相关参数
请求结构
Plain Text
1GET /v{version}/instance/{instanceId}/smartdba/session/kill/types HTTP/1.1
2HOST: rds.bj.baidubce.com
3Content-Type: application/json
4Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必选 | 参数位置 | 描述 |
---|---|---|---|---|
version | String | 是 | URL参数 | API 版本号 |
instanceId | String | 是 | URL参数 | 实例ID |
返回头域
除公共头域,无其它特殊头域。
返回参数
参数名称 | 类型 | 描述 |
---|---|---|
types | Type | 获取指定会话kill类型的相关参数 |
Type字段数据结构说明
参数名称 | 类型 | 描述 |
---|---|---|
command | List String | 执行命令 |
请求示例
Plain Text
1GET /v1/instance/rds-xXE6pdR1/smartdba/session/kill/types HTTP/1.1
2HOST: rds.bj.baidubce.com
3Content-Type: application/json
4Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2017-11-21T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
返回示例
Plain Text
1{
2 "types": {
3 "command": [
4 "Binlog Dump",
5 "Change user",
6 "Close stmt",
7 "Connect",
8 "Connect Out",
9 "Create DB",
10 "Daemon",
11 "Debug",
12 "Delayed insert",
13 "Drop DB",
14 "Error",
15 "Execute",
16 "Fetch",
17 "Field List",
18 "Init DB",
19 "Kill",
20 "Long Data",
21 "Ping",
22 "Prepare",
23 "Processlist",
24 "Query",
25 "Quit",
26 "Refresh",
27 "Register Slave",
28 "Reset stmt",
29 "Set option",
30 "Shutdown",
31 "Sleep",
32 "Statistics",
33 "Time"
34 ]
35 }
36}