Queries the IDs and names of rules configured for proactive defense for containers.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ClusterId | string | No | The cluster ID. Note
You can call the DescribeGroupedContainerInstances operation to query the IDs of clusters.
| c4af4fdf38a98496a9b63c2be5dae**** |
StrategyName | string | No | The name of the rule. | test |
Namespace | string | No | The namespace of the cluster. Note
You can call the GetOpaClusterNamespaceList operation to query the namespaces of clusters.
| test |
ImageName | string | No | The name of the image. Note
You can call the GetOpaClusterImageList operation to query the names of images.
| testImage |
Label | string | No | The tag that is added to the container. Note
You can call the GetOpaClusterLabelList operation to query the tags that are added to containers.
| testlabel |
Response parameters
Examples
Sample success responses
JSON
format
{
"Data": [
{
"Id": 0,
"Value": "test"
}
],
"Success": true,
"Code": "200",
"Message": "successful",
"RequestId": "835851E3-AFA2-5EA7-93E9-4FC9BCF3F973"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
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.