Obtain the details of the inspection report for the cluster
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| cs:GetClusterInspectReportDetail | get | *Cluster acs:cs:{#regionId}:{#accountId}:cluster/{#ClusterId} |
| none |
Request syntax
GET /clusters/{clusterId}/inspectReports/{reportId} HTTP/1.1
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| clusterId | string | Yes | The ID of the cluster. | c82e6987e2961451182edacd74faf**** |
| reportId | string | Yes | The ID of the inspection report. | 782df89346054a0000562063a**** |
| language | string | No | The query language.
| zh_CN |
| category | string | No | The category of the inspection item. Valid values:
| cost |
| targetType | string | No | The type of the inspection object. Only items that meet the targetType parameter are returned. | NodePool |
| level | string | No | The level of the inspection item. Valid values:
| error |
| enableFilter | boolean | No | Inspection results filtering. If this parameter is set to true, only abnormal inspection items are returned. | true |
| nextToken | string | No | The token that is used to display the returned tags on multiple pages. | bb41e2bcb47b747389dce6c0d2 |
| maxResults | integer | No | The maximum number of entries per page. Maximum value: 50. | 20 |
Response parameters
Examples
Sample success responses
JSONformat
{
"requestId": "49511F2D-D56A-5C24-B9AE-C8491E09B***",
"nextToken": "AK8uQQrxgFK8sbARvnCj6w9R3kPme4I3",
"reportId": "782df89346054a0000562063a****",
"startTime": "2024-12-18T19:40:16.778333+08:00",
"endTime": "2024-12-18T19:41:12.778433+08:00",
"status": "completed",
"summary": {
"code": "warning",
"normalCount": 10,
"adviceCount": 0,
"warnCount": 1,
"errorCount": 0
},
"checkItemResults": [
{
"name": "",
"description": "",
"fix": "",
"targets": [
"lb-5tstgwefjvwe1zko7xxx"
],
"result": false,
"targetType": "CLB",
"checkItemUid": "APIServerClbInstanceStatus",
"category": "stability",
"level": "critical"
}
]
}Error codes
For a list of error codes, visit the Service error codes.
