GET /wafpolicy

GET /wafpolicy

/wafpolicy

Request
URI
GET
https://{api_host}/api/wafpolicy
COPY
Query Parameters
string
name
Optional

object name

string
refers_to
Optional

Filter to request all objects that refers to another Avi resource. Its syntax is refers_to= : . Eg. get all virtual services referring to pool p1 will be refers_to=pool:pool_p1_uuid

string
referred_by
Optional

Filter to request all objects that are referred by another Avi resource. Its syntax is referred_by= : . Eg. get all pools referred_by virtual service vs1 - referred_by=virtualservice:vs_vs1_uuid

string
fields
Optional

List of fields to be returned for the resource. Some fields like name, URL, uuid etc. are always returned.

boolean
include_name
Optional

All the Avi REST reference URIs have a name suffix as URI#name. It is useful to get the referenced resource name without performing get on that object.

boolean
skip_default
Optional

Default values are not set.

string
join_subresources
Optional

It automatically returns additional dependent resources like runtime. Eg. join_subresources=runtime.

Header Parameters
string
X-Avi-Tenant
Optional

Avi Tenant Header

string
X-Avi-Tenant-UUID
Optional

Avi Tenant Header UUID

string
X-Avi-Version
Required

The caller is required to set Avi Version Header to the expected version of configuration. The response from the controller will provide and accept data according to the specified version. The controller will reject POST and PUT requests where the data is not compatible with the specified version.

string
X-CSRFToken
Optional

Avi Controller may send back CSRF token in the response cookies. The caller should update the request headers with this token else controller will reject requests.


Responses
200

OK

Returns WafPolicyApiResponse of type(s) application/json
{
    "count": 0,
    "results": [
        {
            "_last_modified": "string",
            "allow_mode_delegation": false,
            "allowlist": {
                "rules": [
                    {
                        "actions": [
                            "string"
                        ],
                        "description": "string",
                        "enable": false,
                        "index": 0,
                        "match": {
                            "bot_detection_result": {
                                "classifications": [
                                    {
                                        "type": "string",
                                        "user_defined_type": "string"
                                    }
                                ],
                                "match_operation": "string"
                            },
                            "client_ip": {
                                "addrs": [
                                    {
                                        "addr": "string",
                                        "type": "string"
                                    }
                                ],
                                "group_refs": [
                                    "string"
                                ],
                                "match_criteria": "string",
                                "prefixes": [
                                    {
                                        "ip_addr": {
                                            "addr": "string",
                                            "type": "string"
                                        },
                                        "mask": 0
                                    }
                                ],
                                "ranges": [
                                    {
                                        "begin": {
                                            "addr": "string",
                                            "type": "string"
                                        },
                                        "end": {
                                            "addr": "string",
                                            "type": "string"
                                        }
                                    }
                                ]
                            },
                            "cookie": {
                                "match_case": "string",
                                "match_criteria": "string",
                                "name": "string",
                                "value": "string"
                            },
                            "geo_matches": [
                                {
                                    "attribute": "string",
                                    "match_operation": "string",
                                    "values": [
                                        "string"
                                    ]
                                }
                            ],
                            "hdrs": [
                                {
                                    "hdr": "string",
                                    "match_case": "string",
                                    "match_criteria": "string",
                                    "value": [
                                        "string"
                                    ]
                                }
                            ],
                            "host_hdr": {
                                "match_case": "string",
                                "match_criteria": "string",
                                "value": [
                                    "string"
                                ]
                            },
                            "ip_reputation_type": {
                                "match_operation": "string",
                                "reputation_types": [
                                    "string"
                                ]
                            },
                            "method": {
                                "match_criteria": "string",
                                "methods": [
                                    "string"
                                ]
                            },
                            "path": {
                                "match_case": "string",
                                "match_criteria": "string",
                                "match_decoded_string": false,
                                "match_str": [
                                    "string"
                                ],
                                "string_group_refs": [
                                    "string"
                                ]
                            },
                            "protocol": {
                                "match_criteria": "string",
                                "protocols": "string"
                            },
                            "query": {
                                "match_case": "string",
                                "match_criteria": "string",
                                "match_decoded_string": false,
                                "match_str": [
                                    "string"
                                ],
                                "string_group_refs": [
                                    "string"
                                ]
                            },
                            "source_ip": {
                                "addrs": [
                                    {
                                        "addr": "string",
                                        "type": "string"
                                    }
                                ],
                                "group_refs": [
                                    "string"
                                ],
                                "match_criteria": "string",
                                "prefixes": [
                                    {
                                        "ip_addr": {
                                            "addr": "string",
                                            "type": "string"
                                        },
                                        "mask": 0
                                    }
                                ],
                                "ranges": [
                                    {
                                        "begin": {
                                            "addr": "string",
                                            "type": "string"
                                        },
                                        "end": {
                                            "addr": "string",
                                            "type": "string"
                                        }
                                    }
                                ]
                            },
                            "tls_fingerprint_match": {
                                "fingerprints": [
                                    "string"
                                ],
                                "match_operation": "string",
                                "string_group_refs": [
                                    "string"
                                ]
                            },
                            "version": {
                                "match_criteria": "string",
                                "versions": [
                                    "string"
                                ]
                            },
                            "vs_port": {
                                "match_criteria": "string",
                                "ports": [
                                    0
                                ]
                            }
                        },
                        "name": "string",
                        "sampling_percent": 0
                    }
                ]
            },
            "application_signatures": {
                "provider_ref": "string",
                "resolved_rules": [
                    {
                        "enable": false,
                        "exclude_list": [
                            {
                                "client_subnet": {
                                    "ip_addr": {
                                        "addr": "string",
                                        "type": "string"
                                    },
                                    "mask": 0
                                },
                                "description": "string",
                                "match_element": "string",
                                "match_element_criteria": {
                                    "match_case": "string",
                                    "match_op": "string"
                                },
                                "uri_match_criteria": {
                                    "match_case": "string",
                                    "match_op": "string"
                                },
                                "uri_path": "string"
                            }
                        ],
                        "index": 0,
                        "is_sensitive": false,
                        "mode": "string",
                        "name": "string",
                        "paranoia_level": "string",
                        "phase": "string",
                        "rule": "string",
                        "rule_id": "string",
                        "tags": [
                            "string"
                        ]
                    }
                ],
                "rule_overrides": [
                    {
                        "enable": false,
                        "exclude_list": [
                            {
                                "client_subnet": {
                                    "ip_addr": {
                                        "addr": "string",
                                        "type": "string"
                                    },
                                    "mask": 0
                                },
                                "description": "string",
                                "match_element": "string",
                                "match_element_criteria": {
                                    "match_case": "string",
                                    "match_op": "string"
                                },
                                "uri_match_criteria": {
                                    "match_case": "string",
                                    "match_op": "string"
                                },
                                "uri_path": "string"
                            }
                        ],
                        "mode": "string",
                        "rule_id": "string"
                    }
                ],
                "ruleset_version": "string",
                "selected_applications": [
                    "string"
                ]
            },
            "auto_update_crs": false,
            "bypass_static_extensions": false,
            "confidence_override": {
                "confid_high_value": 0,
                "confid_low_value": 0,
                "confid_probable_value": 0,
                "confid_very_high_value": 0
            },
            "configpb_attributes": {
                "version": 0
            },
            "created_by": "string",
            "crs_overrides": [
                {
                    "enable": false,
                    "exclude_list": [
                        {
                            "client_subnet": {
                                "ip_addr": {
                                    "addr": "string",
                                    "type": "string"
                                },
                                "mask": 0
                            },
                            "description": "string",
                            "match_element": "string",
                            "match_element_criteria": {
                                "match_case": "string",
                                "match_op": "string"
                            },
                            "uri_match_criteria": {
                                "match_case": "string",
                                "match_op": "string"
                            },
                            "uri_path": "string"
                        }
                    ],
                    "mode": "string",
                    "name": "string",
                    "rule_overrides": [
                        {
                            "enable": false,
                            "exclude_list": [
                                {
                                    "client_subnet": {
                                        "ip_addr": {
                                            "addr": "string",
                                            "type": "string"
                                        },
                                        "mask": 0
                                    },
                                    "description": "string",
                                    "match_element": "string",
                                    "match_element_criteria": {
                                        "match_case": "string",
                                        "match_op": "string"
                                    },
                                    "uri_match_criteria": {
                                        "match_case": "string",
                                        "match_op": "string"
                                    },
                                    "uri_path": "string"
                                }
                            ],
                            "mode": "string",
                            "rule_id": "string"
                        }
                    ]
                }
            ],
            "description": "string",
            "enable_app_learning": false,
            "enable_auto_rule_updates": false,
            "enable_regex_learning": false,
            "failure_mode": "string",
            "geo_db_ref": "string",
            "learning_params": {
                "enable_learn_from_bots": false,
                "enable_per_uri_learning": false,
                "learn_from_authenticated_clients_only": false,
                "learn_from_bots": {
                    "classifications": [
                        {
                            "type": "string",
                            "user_defined_type": "string"
                        }
                    ],
                    "match_operation": "string"
                },
                "max_params": 0,
                "max_uris": 0,
                "min_hits_to_learn": 0,
                "sampling_percent": 0,
                "trusted_ipgroup_ref": "string",
                "update_interval": 0
            },
            "markers": [
                {
                    "key": "string",
                    "values": [
                        "string"
                    ]
                }
            ],
            "min_confidence": "string",
            "mode": "string",
            "name": "string",
            "paranoia_level": "string",
            "positive_security_model": {
                "group_refs": [
                    "string"
                ]
            },
            "post_crs_groups": [
                {
                    "enable": false,
                    "exclude_list": [
                        {
                            "client_subnet": {
                                "ip_addr": {
                                    "addr": "string",
                                    "type": "string"
                                },
                                "mask": 0
                            },
                            "description": "string",
                            "match_element": "string",
                            "match_element_criteria": {
                                "match_case": "string",
                                "match_op": "string"
                            },
                            "uri_match_criteria": {
                                "match_case": "string",
                                "match_op": "string"
                            },
                            "uri_path": "string"
                        }
                    ],
                    "index": 0,
                    "name": "string",
                    "rules": [
                        {
                            "enable": false,
                            "exclude_list": [
                                {
                                    "client_subnet": {
                                        "ip_addr": {
                                            "addr": "string",
                                            "type": "string"
                                        },
                                        "mask": 0
                                    },
                                    "description": "string",
                                    "match_element": "string",
                                    "match_element_criteria": {
                                        "match_case": "string",
                                        "match_op": "string"
                                    },
                                    "uri_match_criteria": {
                                        "match_case": "string",
                                        "match_op": "string"
                                    },
                                    "uri_path": "string"
                                }
                            ],
                            "index": 0,
                            "is_sensitive": false,
                            "mode": "string",
                            "name": "string",
                            "paranoia_level": "string",
                            "phase": "string",
                            "rule": "string",
                            "rule_id": "string",
                            "tags": [
                                "string"
                            ]
                        }
                    ]
                }
            ],
            "pre_crs_groups": [
                {
                    "enable": false,
                    "exclude_list": [
                        {
                            "client_subnet": {
                                "ip_addr": {
                                    "addr": "string",
                                    "type": "string"
                                },
                                "mask": 0
                            },
                            "description": "string",
                            "match_element": "string",
                            "match_element_criteria": {
                                "match_case": "string",
                                "match_op": "string"
                            },
                            "uri_match_criteria": {
                                "match_case": "string",
                                "match_op": "string"
                            },
                            "uri_path": "string"
                        }
                    ],
                    "index": 0,
                    "name": "string",
                    "rules": [
                        {
                            "enable": false,
                            "exclude_list": [
                                {
                                    "client_subnet": {
                                        "ip_addr": {
                                            "addr": "string",
                                            "type": "string"
                                        },
                                        "mask": 0
                                    },
                                    "description": "string",
                                    "match_element": "string",
                                    "match_element_criteria": {
                                        "match_case": "string",
                                        "match_op": "string"
                                    },
                                    "uri_match_criteria": {
                                        "match_case": "string",
                                        "match_op": "string"
                                    },
                                    "uri_path": "string"
                                }
                            ],
                            "index": 0,
                            "is_sensitive": false,
                            "mode": "string",
                            "name": "string",
                            "paranoia_level": "string",
                            "phase": "string",
                            "rule": "string",
                            "rule_id": "string",
                            "tags": [
                                "string"
                            ]
                        }
                    ]
                }
            ],
            "required_data_files": [
                {
                    "name": "string",
                    "type": "string"
                }
            ],
            "tenant_ref": "string",
            "updated_crs_rules_in_detection_mode": false,
            "url": "string",
            "uuid": "string",
            "waf_crs_ref": "string",
            "waf_profile_ref": "string"
        }
    ],
    "next": "string"
}
integer As int32 As int32
count
Required

count

array of object
results
Required

results

string
next
Optional

next


401

log in failed

Operation doesn't return any data structure

Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/api/wafpolicy