Queries the details of the rule that is used to block at-risk images.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
StrategyId | long | No | The rule ID. Note
You can call the ListOpaClusterStrategyNew operation to query the rule ID.
| 1349 |
Response parameters
Examples
Sample success responses
JSON
format
{
"Data": {
"StrategyId": 1005,
"StrategyTemplateId": 1204,
"ClusterId": "c8ca91e0907d94efaba7fb0827eb9****",
"StrategyName": "test001",
"Description": "Custom defense configuration",
"ClusterName": "test",
"UnScanedImage": true,
"MaliciousImage": true,
"ImageName": [
"opa-test"
],
"Label": [
"app.kubernetes.io/instance:devops"
],
"RuleAction": 1,
"WhiteList": [
"test-tag"
],
"AlarmDetail": {
"Baseline": {
"RiskLevel": [
"low"
],
"Item": [
{
"Id": "ak_leak",
"Name": "Access Key plaintext storage"
}
]
},
"Vul": {
"RiskLevel": [
"medium"
],
"Item": [
{
"Id": "AVD-2023-1680169",
"Name": "ezOffice evoInterfaceServlet Info Leak"
}
],
"RiskClass": [
{
"Id": "cve",
"Name": "system vulnerability"
}
]
},
"MaliciousFile": {
"RiskLevel": [
"high"
],
"Item": [
{
"Id": "1811",
"Name": "abnormal binary file\n"
}
]
},
"SensitiveFile": {
"RiskLevel": [
"low"
],
"Item": [
{
"Id": "key",
"Name": "name"
}
]
},
"BuildRisk": {
"RiskLevel": [
"high"
],
"Item": [
{
"Id": "key",
"Name": "name"
}
]
}
},
"Scopes": [
{
"ClusterId": "c1fdb5fd8d**7163",
"AllNamespace": 1,
"NamespaceList": [
"namespace1"
],
"AckPolicyInstanceId": "ack-0"
}
],
"Lang": "zh",
"CurrentPage": 4,
"PageSize": 20
},
"Success": true,
"Code": "200",
"Message": "success",
"RequestId": "E819FD71-D240-5E54-AA7F-20FED2ECBEB6",
"HttpStatusCode": 200
}
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.
Change history
Change time | Summary of changes | Operation | ||||||
---|---|---|---|---|---|---|---|---|
2023-12-22 | The Error code has changed. The response structure of the API has changed | see changesets | ||||||
|