Queries the usage details of templates provided in the feature of proactive defense for containers for rules.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
StrategyId | long | No | The ID of the template. Note
You can call the GetOpaStrategyTemplateSummary operation to query the IDs of templates.
| 2 |
Response parameters
Examples
Sample success responses
JSON
format
{
"Data": {
"StrategyId": 1005,
"StrategyTemplateId": 1204,
"ClusterId": "c8ca91e0907d94efaba7fb0827eb9****",
"StrategyName": "Blank template",
"Description": "Custom defense configuration",
"ClusterName": "hhht-cluster-02",
"UnScanedImage": false,
"MaliciousImage": false,
"Namespace": [
"default"
],
"ImageName": [
"test"
],
"Label": [
"test"
],
"RuleAction": 1,
"WhiteList": [
"test-tag"
],
"AlarmDetail": {
"Baseline": {
"RiskLevel": [
"low"
],
"Item": [
{
"Id": "ak_leak",
"Name": "Access Key plaintext storage"
}
]
},
"Vul": {
"RiskLevel": [
"low"
],
"Item": [
{
"Id": "AVD-2023-1680169",
"Name": "ezOffice evoInterfaceServlet Info Leak"
}
]
},
"MaliciousFile": {
"RiskLevel": [
"low"
],
"Item": [
{
"Id": "test",
"Name": "test"
}
]
}
}
},
"Success": true,
"Code": "200",
"Message": "successful",
"RequestId": "1E36BEEA-0B27-58CC-8319-50279203B048"
}
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.