DescribeLogs
1. API Description
This API is used to query the list of logs.
2. Input Parameters
The following request parameter list only provides API request parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
startTime | Yes | Timestamp | Start time. Use UTC time according to the ISO8601 standard. Format: |
endTime | Yes | Timestamp | End time. Use UTC time according to the ISO8601 standard. Format:
|
resUid | No | String | Resource ID. |
resEvent | No | String | Event name. |
clientIP | No | String | IP of the user executed the operation. |
size | No | Integer | Number of pages returned. Default value: 20; Maximum value: 1000. |
cursor | No | Array of Object | Cursor for the next page. When the data of this page is requested, the cursor for the next page will be returned in the response result. When the data of the next page needs to be obtained, that cursor needs to be added into the input parameter, and all data in the time period can be obtained by looping in turn.
For example: |
3. Output Parameters
Parameter Name | Type | Description |
---|---|---|
requestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
cursor | Array of Object | Cursor for the next page. When the data of this page is requested, the cursor for the next page will be returned in the response result. When the data of the next page needs to be obtained, that cursor needs to be added into the input parameter, and all data in the time period can be obtained by looping in turn.
For example: |
dataSet | Array of LogInfo | Information on logs. |
4. Code Example
Queries list of logs.
5. Developer Resources
Zenlayer Cloud API 2.0 integrates SDKs to make it easier for you to call APIs. More programming languages will be supported.
6. Error Codes
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
HTTP Status Code | Error Code | Description |
---|---|---|
400 | INVALID_TIME_FORMAT | Invalid time format.
Format: |
400 | INVALID_PARAMETER__ILLEGAL_TIME | Invalid time.
|
Last updated