Domain name for API request: csip.intl.tencentcloudapi.com.
This API is used to query the audit session list information.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: DescribeDspmSessionList. |
| Version | Yes | String | Common Params. The value used for this API: 2022-11-21. |
| Region | No | String | Common Params. This parameter is not required. |
| MemberId.N | No | Array of String | Group account member id |
| Limit | No | Integer | Number limit. |
| Offset | No | Integer | Offset. |
| LoginType | No | Integer | Login status Enumeration values:
|
| DbName | No | String | Database port |
| DbPort | No | Integer | Database name |
| DbIp | No | String | Database IP |
| AssetsId | No | Integer | Asset ID. |
| SessionId | No | String | Conversation ID |
| ClientSideIp | No | String | Client IP |
| UserName | No | String | Username. |
| EndTime | No | Integer | End time. |
| StartTime | No | Integer | Start time. |
| SourceTypes.N | No | Array of String | Traffic source. Value: Agent/Proxy/empty. If Agent is passed, agent logs will be returned. If Proxy is passed, proxy logs will be returned. If both or neither is passed, all logs will be returned. |
| DbTypes.N | No | Array of String | ["MySQL"] |
| Parameter Name | Type | Description |
|---|---|---|
| TotalCount | Integer | Total number. |
| List | Array of DspmAuditSessionInfo | Audit session list information. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: csip.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeDspmSessionList
<Common request parameters>
{
"Limit": 10,
"Offset": 0,
"EndTime": 1782489599,
"StartTime": 946656000,
"DbTypes": [
"cdb"
]
}
{
"Response": {
"List": [
{
"AppId": 260085118,
"AssetName": "cdb-l8hhoqwd",
"AssetType": "cdb",
"ClientIp": "169.254.128.1",
"ClientPort": 58008,
"DbIp": "10.0.0.5",
"DbName": "",
"DbPort": 3306,
"DbType": "MYSQL",
"DbUser": "dspmsc_seybalbp",
"InstanceId": 259954,
"InstanceName": "Automatic test instance - Do not touch",
"LoginTime": 1782181126,
"LogoutTime": 1782181126,
"OpTime": 1782181126,
"RetNo": 1,
"SessionId": "0_0_1462470",
"SourceType": "cloud databases",
"SourceTypeEn": "cdb",
"SourceTypeEnDisplayName": "cdb",
"SqlCount": 2
}
],
"TotalCount": 10000,
"RequestId": "e34db94f-6139-4310-9f71-48b0f973f730"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| AuthFailure | CAM signature/authentication error. |
| DryRunOperation | DryRun operation means the request will be successful, but the DryRun parameter is passed. |
| FailedOperation | Operation failed. |
| FailedOperation.DasbAmountNotEnough | FailedOperation.DasbAmountNotEnough |
| FailedOperation.DasbErrorCode | FailedOperation.DasbErrorCode |
| FailedOperation.DasbInvalidSecretId | FailedOperation.DasbInvalidSecretId |
| FailedOperation.DasbInvalidSecretKey | FailedOperation.DasbInvalidSecretKey |
| InternalError | Internal error. |
| InvalidParameter | Parameter error. |
| InvalidParameter.ResourceId | InvalidParameter.ResourceId |
| InvalidParameterValue | Parameter value error. |
| LimitExceeded | The quota limit is exceeded. |
| MissingParameter | Parameters are missing. |
| OperationDenied | Operation denied. |
| RequestLimitExceeded | Number of requests exceeds the frequency limit. |
| ResourceInUse | The resource is occupied. |
| ResourceInsufficient | Insufficient resources. |
| ResourceNotFound | The resource does not exist. |
| ResourceUnavailable | Resources are unavailable. |
| ResourcesSoldOut | Resources are sold out. |
| UnauthorizedOperation | Unauthorized operation. |
| UnauthorizedOperation.NoPermission | UnauthorizedOperation.NoPermission |
| UnknownParameter | Unknown parameter error. |
| UnsupportedOperation | The operation is not supported. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback