Queries information about servers on which a baseline check is performed. The information includes the IDs of the servers, the statistics of a risk item, and the status of the risk item.
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 Resources
is 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 |
---|---|---|---|---|
yundun-sas:DescribeWarningMachines | get | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
SourceIp | string | No | The source IP address of the request. | 1.2.XX.XX |
Lang | string | No | The language of the content within the request and response. Default value: zh. Valid values:
| zh |
MachineName | string | No | The name of the server on which the baseline check is performed. | oracle-win-001**** |
Uuids | string | No | The UUID of the server on which the baseline check is performed. Separate multiple UUIDs with commas (,). | 9888955c-0076-49da-bd9c-34f5492b**** |
RiskId | long | Yes | The ID of the risk item. Note
You can call the DescribeCheckWarningSummary operation to query the IDs of risk items.
| 196 |
StrategyId | long | No | The ID of the baseline check policy. | 16 |
PageSize | integer | No | The number of entries per page. Default value: 10, which indicates that 10 entries of server information are displayed on each page. A maximum of 100 entries can be returned per page. | 10 |
CurrentPage | integer | No | The number of the page to return. Default value: 1. | 1 |
ClusterId | string | No | The ID of the container cluster. Note
You can call the DescribeGroupedContainerInstances operation to query the IDs of container clusters.
| c7e3c5b420a7947c2933303144688**** |
ContainerFieldName | string | No | The name of the field that is used to search for the container. Valid values:
| containerId |
ContainerFieldValue | string | No | The value of the field that is used to search for the container. | c8bb3ef0f5ccf45508f0fd1ffc200**** |
TargetType | string | No | The type of the query condition. Valid values:
| uuid |
HaveRisk | integer | No | Specifies whether risks were detected. Valid values:
| 1 |
GroupId | long | No | The ID of the asset group. Note
You can call the DescribeAllGroups operation to query the IDs of asset groups.
| 123 |
Response parameters
Examples
Sample success responses
JSON
format
{
"CurrentPage": 1,
"PageSize": 10,
"RequestId": "6E4CBE87-E887-5AF1-86D2-78EB4AA3E771",
"TotalCount": 1,
"Count": 10,
"WarningMachines": [
{
"Status": 1,
"InternetIp": "1.2.XX.XX",
"InstanceId": "i-m5ee8b9nr3h30mhb****",
"HighWarningCount": 10,
"IntranetIp": "1.2.XX.XX",
"RegionId": "cn-qingdao",
"LowWarningCount": 3,
"PortOpen": true,
"Uuid": "9888955c-0076-49da-bd9c-34f5492b****",
"MediumWarningCount": 2,
"PassCount": 10,
"InstanceName": "oracle-win-00****",
"Bind": true,
"AuthVersion": 7,
"ContainerId": "48a6d9a92435a13ad573372c3f3c63b7e04d106458141df9f92155709d******",
"ContainerName": "redis"
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ConsoleError | The error message is %s %s. | - |
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-03-22 | The Error code has changed. The response structure of the API has changed | View Change Details |