Queries containers by group type.
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Criteria | string | No | The search conditions for assets. Specify the value in the JSON format. Separate multiple search conditions with commas (,). Example: NoteSupported search conditions include the instance ID, instance name, virtual private cloud (VPC) ID, region, and public IP address. You can call the DescribeCriteria operation to query the supported search conditions. | [{"name":"riskStatus","value":"YES"},{"name":"riskLevel","value":"2"}] |
LogicalExp | string | No | The logical relationship that you want to use to evaluate multiple search conditions. Valid values:
| OR |
GroupField | string | Yes | The group type that you want to use to query containers. Valid values:
| pod |
FieldValue | string | No | The keyword that you want to use to query containers. You must specify this parameter based on the value of the GroupField parameter.
NoteFuzzy match is supported. | cas-adad-qeqwe |
PageSize | integer | No | The number of entries to return on each page. Default value: 20. NoteWe recommend that you do not leave this parameter empty. | 20 |
CurrentPage | integer | No | The number of the page to return. Default value: 1. | 1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "4E5BFDCF-B9DD-430D-9DA4-151BCB581C9D",
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 25,
"Count": 20
},
"GroupedContainerInstanceList": [
{
"RiskLevel": "low",
"HostIp": "172.114.XX.XX",
"Pod": "csi-plugin-2n****",
"RiskStatus": "NO",
"CreateTime": 1600076893000,
"Namespace": "kube-system",
"CusterState": "running",
"InstanceId": "i-8vb9ul5xec4tua4q****",
"RegionId": "cn-hangzhou",
"AppName": "oss-liveness-probe",
"InstanceCount": 9,
"ClusterType": "ManagedKubernetes",
"ClusterName": "test",
"PodIp": "172.114.XX.XX",
"VulCount": 1,
"AlarmCount": 1,
"RiskInstanceCount": 1,
"ClusterId": "cf3824769c85441b4bf3****",
"Image": "registry-vpc.ap-southeast-5.aliyuncs.com/log-service-release/sls-connector:1.1.77",
"ImageRepoNamespace": "name001",
"ImageRepoName": "test-003",
"ImageRepoTag": "dev-20220512-2",
"ImageDigest": "58e58c013f70bbfde140c8a55c1078074b3483479428d4069aa946827fd566cf",
"ImageUuid": "e4bdec1d9ba7e0967111a7ea467c****",
"HcCount": 20
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | IllegalParam | Illegal param | - |
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 | ||||
---|---|---|---|---|---|---|
2021-12-21 | The error codes of the API operation change. | |||||
|