Queries alert handling rules.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Id | long | No | The primary key of the alert handling rule. | 814163 |
Lang | string | No | The language of the content within the request and response. Valid values:
| zh |
Response parameters
Examples
Sample success responses
JSON
format
{
"Data": {
"Id": 443496,
"EventType": "sensitiveFile",
"OperationCode": "whitelist",
"Conditions": "[{\\\"condition\\\": \\\"MD5\\\", \\\"type\\\": \\\"equals\\\", \\\"value\\\": \\\"0083a31cc0083a31ccf7c10367a6e783e\\\"}]\n",
"Scenarios": "{\\\"type\\\": \\\"repo\\\", \\\"value\\\": \\\"test-aaa/shenzhen-repo-01\\\"}\n",
"EventKey": "PEM",
"EventName": "PEM"
},
"Success": true,
"Code": "200",
"Message": "successful",
"RequestId": "5861EE3E-F0B3-48B8-A5DC-A5080BFB****"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | DataNotExists | data not exist | - |
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.