Querying All Errors of a Rule
Description
This API is used to query all errors of a specified rule.
URI
GET /v2/{project_id}/routemgr/rules/{rule_id}/errors
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. |
| rule_id | Yes | String | Rule ID. |
Request Parameters
None
Response Parameters
If a status code 200 is returned:
| Parameter | Type | Description |
|---|---|---|
| count | Long | Number of errors that meet the conditions. |
| errors | Array of Error objects | Error list. |
| Parameter | Type | Description |
|---|---|---|
| detail | String | Error details. |
| ief_instance_id | String | ID of a platinum service instance. If this parameter is left blank, the service instance is a professional service instance. |
| project_id | String | Project ID. |
| rule_id | String | Rule ID. |
| time | String | Time when an error occurs. |
If a status code 401 is returned:
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_message | String | Error description. |
If a status code 500 is returned:
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_message | String | Error description. |
Request Examples
None
Response Examples
If a status code 200 is returned:
{
"count" : 1,
"errors" : [ {
"detail" : "string",
"ief_instance_id" : "string",
"project_id" : "string",
"rule_id" : "string",
"time" : "string"
} ]
} If a status code 401 is returned:
{
"error_code" : "IEF.310001",
"error_message" : "XXXXXXXXXX"
} If a status code 500 is returned:
{
"error_code" : "IEF.310001",
"error_message" : "XXXXXXXXXX"
} Status Codes
| Status Code | Description |
|---|---|
| 200 | The error list is successfully queried. |
| 401 | Error response. |
| 500 | Error response. |
Error Codes
See Error Codes.
Last Article: Deleting a Rule
Next Article: Enabling a Rule
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.