All Products
Search
Document Center

Security Center:DescribeImageEventOperationCondition

Last Updated:Feb 20, 2024

Queries the conditions for handling alert events in an image.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
EventTypestringNo

The alert type.

  • Set the value to sensitiveFile.
sensitiveFile
LangstringNo

The language of the content within the request and response. Default value: zh. Valid values:

  • zh: Chinese.
  • en: English.
zh

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

Dataobject

The returned data.

EventTypestring

The alert type.

  • Only sensitiveFile may be returned.
sensitiveFile
Operationsobject []

The operations.

OperationCodestring

The operation code.

  • Only whitelist may be returned, which indicates that the alert event is added to the whitelist.
whitelist
OperationNamestring

The name of the operation.

whitelist
Conditionsobject []

The rule conditions.

ConditionKeystring

The keyword of the condition. Valid values:

  • MD5
  • PATH
MD5
ConditionNamestring

The name of the condition.

MD5
SupportedMisTypearray

The matching types.

string

The matching type. Valid values:

  • contains
  • equals
  • startWith
  • endWith
contains
Scenariosarray

The application scopes of the rules.

string

The application scope of the rule. The value is in the JSON format. Valid values of keys:

  • type
  • value
{\"type\": \"repo\", \"value\": \"test-aaa/shenzhen-repo-01\"}
Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
Codestring

The response code.

200
Messagestring

The returned message.

successful
RequestIdstring

The request ID.

ADE57832-9666-511C-9A80-B87DE2E8****

Examples

Sample success responses

JSONformat

{
  "Data": {
    "EventType": "sensitiveFile",
    "Operations": [
      {
        "OperationCode": "whitelist",
        "OperationName": "whitelist",
        "Conditions": [
          {
            "ConditionKey": "MD5",
            "ConditionName": "MD5",
            "SupportedMisType": [
              "contains"
            ]
          }
        ]
      }
    ],
    "Scenarios": [
      "{\\\"type\\\": \\\"repo\\\", \\\"value\\\": \\\"test-aaa/shenzhen-repo-01\\\"}"
    ]
  },
  "Success": true,
  "Code": "200",
  "Message": "successful",
  "RequestId": "ADE57832-9666-511C-9A80-B87DE2E8****"
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.