List Anomaly Rule Set Firewall Rules

List Anomaly Rule Set Firewall Rules
Fetch the list of firewall rules in a anomaly rule-set.

Returns the list of a firewall rules that belong to an anomaly rule-set. Anomaly rule-set is a unique set of firewall rules for each anomaly type in the rule analysis results.

Request
URI
POST
https://{api_host}/firewall/rule-analysis/activities/{id}/result/anomaly-rule-sets/{anomaly-ruleset-id}/firewall-rules/action/query
COPY
Path Parameters
string
id
Required

ID of rule analysis activity.

string
anomaly-ruleset-id
Required

ID of rule analysis activity anomaly rule-set.


Request Body

Use the parameters to list the firewall rules in an anomaly rule-set.

RuleAnalysisFirewallRulesListRequest of type(s) application/json
Optional
This request body class requires all of the following: InlineRuleAnalysisFirewallRulesListRequest0 , InlineRuleAnalysisFirewallRulesListRequest1
{
    "site_ids": [
        "string"
    ],
    "offset": 0,
    "page_size": 0,
    "sort_ascending": false,
    "sort_by": "string",
    "display_name": [
        "string"
    ],
    "rule_id": [
        0
    ],
    "parent_path": [
        "string"
    ],
    "policy_name": [
        "string"
    ]
}
Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns RuleAnalysisFirewallRulesListResult of type(s) application/json
{
    "offset": 0,
    "number_of_results": 0,
    "total_result_count": 0,
    "total_pages": 0,
    "sort_ascending": false,
    "sort_by": "string",
    "firewall_rules": [
        {
            "_self": {},
            "_links": [
                {
                    "href": "string",
                    "action": "string",
                    "rel": "string"
                }
            ],
            "_schema": "string",
            "_revision": 0,
            "resource_type": "string",
            "_create_user": "string",
            "_create_time": 0,
            "_last_modified_user": "string",
            "_last_modified_time": 0,
            "_system_owned": false,
            "_protection": "string",
            "id": "string",
            "display_name": "string",
            "description": "string",
            "tags": [
                {
                    "scope": "string",
                    "tag": "string"
                }
            ],
            "origin_site_id": "string",
            "owner_id": "string",
            "parent_path": "string",
            "path": "string",
            "realization_id": "string",
            "relative_path": "string",
            "remote_path": "string",
            "unique_id": "string",
            "children": [
                {
                    "_self": {},
                    "_links": [
                        {
                            "href": "string",
                            "action": "string",
                            "rel": "string"
                        }
                    ],
                    "_schema": "string",
                    "_revision": 0,
                    "resource_type": "string",
                    "_create_user": "string",
                    "_create_time": 0,
                    "_last_modified_user": "string",
                    "_last_modified_time": 0,
                    "_system_owned": false,
                    "_protection": "string",
                    "id": "string",
                    "display_name": "string",
                    "description": "string",
                    "tags": [
                        {
                            "scope": "string",
                            "tag": "string"
                        }
                    ]
                }
            ],
            "marked_for_delete": false,
            "overridden": false,
            "destination_groups": [
                "string"
            ],
            "destinations_excluded": false,
            "direction": "string",
            "disabled": false,
            "ip_protocol": "string",
            "is_default": false,
            "logged": false,
            "notes": "string",
            "profiles": [
                "string"
            ],
            "rule_id": 0,
            "scope": [
                "string"
            ],
            "sequence_number": 0,
            "service_entries": [
                "string"
            ],
            "services": [
                "string"
            ],
            "source_groups": [
                "string"
            ],
            "sources_excluded": false,
            "tag": "string",
            "action": "string",
            "policy_name": "string",
            "is_anchor": false,
            "is_unpublished": false,
            "is_ignored": false,
            "metadata": [
                {
                    "key": "string",
                    "value": "string"
                }
            ],
            "additional_info": {
                "destination_groups": [
                    {
                        "path": "string",
                        "display_name": "string"
                    }
                ],
                "profiles": [
                    {
                        "path": "string",
                        "display_name": "string"
                    }
                ],
                "services": [
                    {
                        "path": "string",
                        "display_name": "string"
                    }
                ],
                "source_groups": [
                    {
                        "path": "string",
                        "display_name": "string"
                    }
                ]
            }
        }
    ]
}

default

Error

Returns Error of type(s) application/json
{
    "error_code": 0,
    "module_name": "string",
    "error_message": "string"
}
integer
error_code
Required

HTTP Status or Application error code.

string
module_name
Optional

Module where the error happened.

string
error_message
Required

Message describing the error.


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/firewall/rule-analysis/activities/{id}/result/anomaly-rule-sets/{anomaly-ruleset-id}/firewall-rules/action/query