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.
startTime
Yes
Timestamp
Start time.
Use UTC time according to the ISO8601 standard. Format: yyyy-MM-ddTHH:mm:ssZ
.
endTime
Yes
Timestamp
End time.
Use UTC time according to the ISO8601 standard. Format: yyyy-MM-ddTHH:mm:ssZ
.
Start time must be earlier than end time.
The interval between start time and end time should be less than 30 days.
Start time cannot be more than 90 days ago.
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: cursor
: [1691028715371]
is returned in current response. When the data of next page is requested, assign [1691028715371]
to cursor
.
3. Output Parameters
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: cursor
: [1691028715371]
is returned in current response. When the data of next page is requested, assign [1691028715371]
to cursor
.
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.
400
INVALID_TIME_FORMAT
Invalid time format.
Format: yyyy-MM-ddTHH:mm:ssZ
.
400
INVALID_PARAMETER__ILLEGAL_TIME
Invalid time.
Start time must be earlier than end time.
The interval between start time and end time should be less than 30 days.
Start time cannot be more than 90 days ago.
Last updated