tencent cloud

文档反馈

DescribeClientException

最后更新时间:2024-08-27 11:40:58

1. API Description

Domain name for API request: cwp.tencentcloudapi.com.

This API is used to obtain client exception events.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

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: DescribeClientException.
Version Yes String Common Params. The value used for this API: 2018-02-28.
Region No String Common Params. This parameter is not required.
ExceptionType Yes Integer Client Exception Type 1: Client Offline, 2: Client Uninstallation
Offset Yes Integer Pagination offset
Limit Yes Integer Limit per Page, not 0, up to 100
StartTime No String Start time in the format of 2006-01-02 15:04:05
EndTime No String End time in the format of 2006-01-02 15:04:05

3. Output Parameters

Parameter Name Type Description
TotalCount Integer Total number of events
Records Array of RecordInfo Event details
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.

4. Example

Example1 Example 1

Input Example

POST / HTTP/1.1
Host: cwp.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeClientException
<Common request parameters>

{
    "EndTime": "",
    "Limit": "10",
    "ExceptionType": "1",
    "StartTime": "",
    "Offset": "0"
}

Output Example

{
    "Response": {
        "Records": [
            {
                "HostIP": "172.23.16.2",
                "InstanceID": "ins-kz85kljw",
                "Uuid": "2e6353e4-0498-450a-9be5-77e2537247f6",
                "OfflineTime": "2022-04-24T17:52:37+08:00",
                "UninstallTime": "",
                "UninstallCmd": ""
            },
            {
                "HostIP": "172.23.16.2",
                "InstanceID": "ins-kz85kljw",
                "Uuid": "2e6353e4-0498-450a-9be5-77e2537247f6",
                "OfflineTime": "2022-04-24T19:15:03+08:00",
                "UninstallTime": "",
                "UninstallCmd": ""
            },
            {
                "HostIP": "172.23.16.2",
                "InstanceID": "ins-kz85kljw",
                "Uuid": "2e6353e4-0498-450a-9be5-77e2537247f6",
                "OfflineTime": "2022-04-24T19:30:19+08:00",
                "UninstallTime": "",
                "UninstallCmd": ""
            },
            {
                "HostIP": "172.23.16.2",
                "InstanceID": "ins-kz85kljw",
                "Uuid": "2e6353e4-0498-450a-9be5-77e2537247f6",
                "OfflineTime": "2022-04-24T20:07:44+08:00",
                "UninstallTime": "",
                "UninstallCmd": ""
            },
            {
                "HostIP": "172.23.16.2",
                "InstanceID": "ins-kz85kljw",
                "Uuid": "2e6353e4-0498-450a-9be5-77e2537247f6",
                "OfflineTime": "2022-04-25T10:58:57+08:00",
                "UninstallTime": "",
                "UninstallCmd": ""
            },
            {
                "HostIP": "",
                "InstanceID": "",
                "Uuid": "5878d9b1-6304-49a0-849b-c9f2132048a5",
                "OfflineTime": "2022-04-27T20:35:57+08:00",
                "UninstallTime": "",
                "UninstallCmd": ""
            },
            {
                "HostIP": "10.0.0.6",
                "InstanceID": "ins-7pl19k95",
                "Uuid": "13bb1e16-9a7a-434d-9686-4328f72c97d7",
                "OfflineTime": "2022-05-01T00:55:13+08:00",
                "UninstallTime": "",
                "UninstallCmd": ""
            },
            {
                "HostIP": "10.0.22.29",
                "InstanceID": "ins-g91krvsw",
                "Uuid": "71b1d8d3-8a69-4af6-9e95-f1637096c904",
                "OfflineTime": "2022-05-01T11:25:03+08:00",
                "UninstallTime": "",
                "UninstallCmd": ""
            },
            {
                "HostIP": "10.0.22.29",
                "InstanceID": "ins-g91krvsw",
                "Uuid": "71b1d8d3-8a69-4af6-9e95-f1637096c904",
                "OfflineTime": "2022-05-01T12:29:54+08:00",
                "UninstallTime": "",
                "UninstallCmd": ""
            },
            {
                "HostIP": "10.0.22.29",
                "InstanceID": "ins-g91krvsw",
                "Uuid": "71b1d8d3-8a69-4af6-9e95-f1637096c904",
                "OfflineTime": "2022-05-01T12:29:54+08:00",
                "UninstallTime": "",
                "UninstallCmd": ""
            }
        ],
        "RequestId": "1248a7df-c3fe-4930-b3ff-2af956cf8d66",
        "TotalCount": 944
    }
}

Example2 Example 2

Input Example

POST / HTTP/1.1
Host: cwp.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeClientException
<Common request parameters>

{
    "EndTime": "",
    "Limit": "10",
    "ExceptionType": "1",
    "StartTime": "",
    "Offset": "0"
}

Output Example

{
    "Response": {
        "Records": [
            {
                "HostIP": "172.16.48.110",
                "InstanceID": "ins-7kdvmxgi",
                "Uuid": "946b0a12-4005-443b-9d0e-a2795d52a8fb",
                "OfflineTime": "2022-11-15 22:25:05",
                "UninstallTime": "",
                "UninstallCmd": ""
            },
            {
                "HostIP": "10.0.22.33",
                "InstanceID": "ins-bmavftgm",
                "Uuid": "e3fddc1e-c2da-431e-9e1b-adfd70cd208c",
                "OfflineTime": "2022-11-14 17:35:40",
                "UninstallTime": "",
                "UninstallCmd": ""
            },
            {
                "HostIP": "10.0.0.7",
                "InstanceID": "ins-pgro6nri",
                "Uuid": "2651386e-e6cf-4e32-ac8e-3bd59e920d27",
                "OfflineTime": "2022-11-14 17:33:04",
                "UninstallTime": "",
                "UninstallCmd": ""
            },
            {
                "HostIP": "10.0.22.10",
                "InstanceID": "ins-lukah9oq",
                "Uuid": "2819e736-eb93-4912-a82a-2eac7c1788b0",
                "OfflineTime": "2022-11-14 17:31:35",
                "UninstallTime": "",
                "UninstallCmd": ""
            },
            {
                "HostIP": "172.23.0.36",
                "InstanceID": "ins-g4l64238",
                "Uuid": "c90117e5-6609-4ad6-b347-7a601dbb81f6",
                "OfflineTime": "2022-11-14 17:29:58",
                "UninstallTime": "",
                "UninstallCmd": ""
            },
            {
                "HostIP": "172.23.0.36",
                "InstanceID": "ins-g4l64238",
                "Uuid": "c90117e5-6609-4ad6-b347-7a601dbb81f6",
                "OfflineTime": "2022-11-14 14:53:56",
                "UninstallTime": "",
                "UninstallCmd": ""
            },
            {
                "HostIP": "172.16.48.110",
                "InstanceID": "ins-7kdvmxgi",
                "Uuid": "946b0a12-4005-443b-9d0e-a2795d52a8fb",
                "OfflineTime": "2022-11-14 14:26:23",
                "UninstallTime": "",
                "UninstallCmd": ""
            },
            {
                "HostIP": "172.23.0.36",
                "InstanceID": "ins-g4l64238",
                "Uuid": "c90117e5-6609-4ad6-b347-7a601dbb81f6",
                "OfflineTime": "2022-11-14 13:15:22",
                "UninstallTime": "",
                "UninstallCmd": ""
            },
            {
                "HostIP": "172.23.0.36",
                "InstanceID": "ins-g4l64238",
                "Uuid": "c90117e5-6609-4ad6-b347-7a601dbb81f6",
                "OfflineTime": "2022-11-14 13:02:13",
                "UninstallTime": "",
                "UninstallCmd": ""
            },
            {
                "HostIP": "172.23.0.36",
                "InstanceID": "ins-g4l64238",
                "Uuid": "c90117e5-6609-4ad6-b347-7a601dbb81f6",
                "OfflineTime": "2022-11-14 12:48:59",
                "UninstallTime": "",
                "UninstallCmd": ""
            }
        ],
        "RequestId": "74275f9f-9045-472a-8103-99027a2f87ba",
        "TotalCount": 945
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

There is no error code related to the API business logic. For other error codes, please see Common Error Codes.