Listing all actions of a WAF rule¶
Send a GET request to the /waf/actions endpoint.
Description¶
The List-Actions request allows the user to request a list of all possible actions for a WAF rule in the Myra Suite.
Requirements¶
Values of the request: none
Objects: none
Request¶
To request a list of all WAF actions, no additional information needs to be added to the path of the request.
As a result, you will receive one or more WafActionVO objects containing the requested information.
The object provides the following information:
| Attributes | Description | Value |
|---|---|---|
name |
The name of the condition in the Myra App. | string |
type |
The internal name of the action. | string |
availablePhases |
The support for different phases. |
|
customKey |
The customize key for the action. Depending on the type of the action, this can be a header name, a value, a path, or an error code. | |
value |
The value for the action. |
Example¶
Example response:
[
{
"objectType": "string",
"id": 0,
"modified": "string",
"created": "string",
"comment": "string",
"name": "string",
"type": "string",
"availablePhases": 0,
"customKey": "string",
"value": "string",
"forceCustomValues": 0
}
]
Responses¶
The following responses are available:
| STATUS CODE | DESCRIPTION |
|---|---|
| 200 | The request has succeeded. |
| 400 | The request was unsuccessful. The request was invalid or information is missing. |
| 401 | The request has not succeeded because the user authentication was incorrect. |
| 403 | The request has not succeeded because the user does not have the right permissions. |