All Products
Search
Document Center

ApsaraDB for OceanBase:KillProcessList

Last Updated:Apr 29, 2024

You can call this operation to close a session.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the OceanBase cluster.

ob317v4uif****
SessionListstringYes

The list of the sessions that need to be closed.

[{"ServerIp":"192.168.13.119","SessionId":"3221614618"}]
TenantIdstringYes

The ID of the tenant.

t4louaeei****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

EE205C00-30E4-XXXX-XXXX-87E3A8A2AA0C
Dataobject []

The data returned.

SessionIdlong

The ID of the session.

1123
ServerIpstring

The IP address of the server.

127.0.0.1
Statusstring

The status of the task.

SLEEP
ErrorMessagestring

The error message.

Instance not found.
ClientIpstring

The client IP address.

127.0.0.1
TenantIdstring

The ID of the tenant.

t3ogqv07a56n4
Userstring

The database username.

oas
Databasestring

The name of the database.

test
SqlTextstring

The SQL statement.

:
Commandstring

The start command for the container of the application.

select 1
ExecuteTimestring

Execution time (UTC+8). If it is left empty, it means to execute immediately.

142

Examples

Sample success responses

JSONformat

{
  "RequestId": "EE205C00-30E4-XXXX-XXXX-87E3A8A2AA0C",
  "Data": [
    {
      "SessionId": 1123,
      "ServerIp": "127.0.0.1",
      "Status": "SLEEP",
      "ErrorMessage": "Instance not found.",
      "ClientIp": "127.0.0.1",
      "TenantId": "t3ogqv07a56n4",
      "User": "oas",
      "Database": "test",
      "SqlText": ":",
      "Command": "select 1",
      "ExecuteTime": "142"
    }
  ]
}

Error codes

HTTP status codeError codeError message
2014InternalErrorThe request processing has failed due to some unknown error.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history