Queries the operations records of a cluster for the last three days.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListClusterLogs

The operation that you want to perform. Set the value to ListClusterLogs.

ClusterId String Yes ehpc-hz-FYUr32****

The ID of the cluster.

PageNumber Integer No 1

The number of the page to return. Pages start from page 1.

PageSize Integer No 10

The number of entries to return on each page. Valid values: 1 to 100

Default: 10

Response parameters

Parameter Type Example Description
ClusterId String ehpc-hz-FYUr32****

The ID of the cluster.

Logs Array of LogInfo

The details about operations logs.

LogInfo
CreateTime String 2019-09-18T13:24:13.000

The time when the log was created.

Level String info

The severity level of the log entry.

Message String Begin to create cluster

The content of the log entry.

Operation String CreateCluster

The name of the operation.

PageNumber Integer 1

The number of the returned page.

PageSize Integer 1

The number of entries that are returned per page.

RequestId String BBC2F93D-003A-49C4-850C-B826EECF6667

The ID of the request.

TotalCount Integer 2

The total number of entries.

Examples

Sample requests

https://ehpc.cn-hangzhou.aliyuncs.com/?Action=ListClusterLogs
&ClusterId=ehpc-hz-FYUr32****
&<Common request parameters>

Sample success responses

XML format

<ListClusterLogsResponse>
      <PageNumber>1</PageNumber>
      <Logs>
            <LogInfo>
                  <Operation>CreateCluster</Operation>
                  <Message>Begin to create cluster</Message>
                  <CreateTime>2019-09-18T13:24:13.000Z</CreateTime>
                  <Level>info</Level>
            </LogInfo>
      </Logs>
      <TotalCount>1</TotalCount>
      <ClusterId>ehpc-hz-FYUr32****</ClusterId>
      <PageSize>20</PageSize>
      <RequestId>BBC2F93D-003A-49C4-850C-B826EECF6667</RequestId>
</ListClusterLogsResponse>

JSON format

{
    "PageNumber": 1,
    "Logs": {
        "LogInfo": [
            {
                "Operation": "CreateCluster",
                "Message": "Begin to create cluster",
                "CreateTime": "2019-09-18T13:24:13.000Z",
                "Level": "info"
            }
        ]
    },
    "TotalCount": 1,
    "ClusterId": "ehpc-hz-FYUr32****",
    "PageSize": 20,
    "RequestId": "BBC2F93D-003A-49C4-850C-B826EECF6667"
}

Error codes

HttpCode Error code Error message Description
503 ServiceUnavailable The request has failed due to a temporary failure of the server The error message returned because the request has failed. The server is temporarily unavailable.

For a list of error codes, visit the API Error Center.