调用ListClusterLogs查询集群三天内的操作记录。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ehpc:ListClusterLogs |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ClusterId |
string |
是 |
集群 ID。 您可以通过调用 ListClusters 获取集群 ID。 |
ehpc-hz-FYUr32**** |
| PageNumber |
integer |
否 |
显示的页码,起始值为 1。 |
1 |
| PageSize |
integer |
否 |
每页显示的条数。取值范围:1~100。 默认值:10。 |
10 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| PageSize |
integer |
本页条数。 |
1 |
| PageNumber |
integer |
当前页码。 |
1 |
| RequestId |
string |
请求 ID。 |
BBC2F93D-003A-49C4-850C-B826EECF6667 |
| TotalCount |
integer |
列表条目总数。 |
2 |
| ClusterId |
string |
集群 ID。 |
ehpc-hz-FYUr32**** |
| Logs |
object |
||
| LogInfo |
array<object> |
操作日志简要信息数组。 |
|
|
object |
|||
| Operation |
string |
操作类型。可能值:
|
CreateCluster |
| Message |
string |
日志内容。 |
Begin to create cluster |
| CreateTime |
string |
日志创建时间。时间格式为 YYYY-MM-DDTHH:mm:ss.SSS,不包含时区信息。 |
2019-09-18T13:24:13.000 |
| Level |
string |
日志级别。可能值:
|
info |
示例
正常返回示例
JSON格式
{
"PageSize": 1,
"PageNumber": 1,
"RequestId": "BBC2F93D-003A-49C4-850C-B826EECF6667",
"TotalCount": 2,
"ClusterId": "ehpc-hz-FYUr32****",
"Logs": {
"LogInfo": [
{
"Operation": "CreateCluster",
"Message": "Begin to create cluster",
"CreateTime": "2019-09-18T13:24:13.000",
"Level": "info"
}
]
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParams | The specified parameter %s is invalid. | 指定的参数 %s 无效。 |
| 500 | UnknownError | An unknown error occurred. | 未知错误 |
| 404 | ClusterNotFound | The specified cluster does not exist. | 指定的集群不存在,请您检查该参数是否正确。 |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | 请求失败,服务暂时不可用 |
| 406 | DbError | A database service error occurred. | 数据库请求失败 |
| 407 | NotAuthorized | You are not authorized by RAM for this request. | 此请求未获得RAM授权 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。