AVI Networks Waf CRS API
The WafCRS API from AVI Networks — 2 operation(s) for wafcrs.
The WafCRS API from AVI Networks — 2 operation(s) for wafcrs.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/avi-networks:avi-networks-wafcrs-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Avi Networks Waf CRS API
version: 32.2.1
contact:
name: Avi Networks Inc.
url: https://avinetworks.com/contact-us
email: support@avinetworks.com
description: 'Operations tagged WafCRS across 2 of this provider''s published API definitions: avi_global_spec.json, avi-networks-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: /api
tags:
- name: WafCRS
paths:
/wafcrs:
get:
tags:
- WafCRS
description: /wafcrs
operationId: GET/wafcrs
parameters:
- name: name
in: query
description: object name
required: false
schema:
type: string
- name: refers_to
in: query
description: Filter to request all objects that refers to another Avi resource. Its syntax is refers_to=<obj_type>:<obj_uuid>. Eg. get all virtual services referring to pool p1 will be refers_to=pool:pool_p1_uuid
schema:
type: string
- name: referred_by
in: query
description: Filter to request all objects that are referred by another Avi resource. Its syntax is referred_by=<obj_type>:<obj_uuid>. Eg. get all pools referred_by virtual service vs1 - referred_by=virtualservice:vs_vs1_uuid
schema:
type: string
- name: fields
in: query
description: List of fields to be returned for the resource. Some fields like name, URL, uuid etc. are always returned.
schema:
type: string
- name: include_name
in: query
description: 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.
required: false
schema:
type: boolean
- name: skip_default
in: query
description: Default values are not set.
required: false
schema:
type: boolean
- name: join_subresources
in: query
description: It automatically returns additional dependent resources like runtime. Eg. join_subresources=runtime.
schema:
type: string
- name: X-Avi-Tenant
in: header
required: false
description: Avi Tenant Header
schema:
type: string
- name: X-Avi-Tenant-UUID
in: header
required: false
description: Avi Tenant Header UUID
schema:
type: string
- name: X-Avi-Version
in: header
required: true
description: 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.
schema:
type: string
- name: X-CSRFToken
in: header
required: false
description: 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.
schema:
type: string
security:
- basicAuth: []
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/WafCRSApiResponse'
'401':
description: log in failed
summary: GET /wafcrs
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: GET /wafcrs
post:
tags:
- WafCRS
description: /wafcrs
operationId: POST/wafcrs
parameters:
- name: X-Avi-Tenant
in: header
required: false
description: Avi Tenant Header
schema:
type: string
- name: X-Avi-Tenant-UUID
in: header
required: false
description: Avi Tenant Header UUID
schema:
type: string
- name: X-Avi-Version
in: header
required: true
description: 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.
schema:
type: string
- name: X-CSRFToken
in: header
required: false
description: 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.
schema:
type: string
security:
- basicAuth: []
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/WafCRS'
'401':
description: log in failed
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/WafCRS'
description: WafCRS object creation
required: true
summary: POST /wafcrs
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: POST /wafcrs
servers:
- url: /api
/wafcrs/{uuid}:
get:
tags:
- WafCRS
description: /wafcrs/{uuid}/{uuid}
operationId: GET/wafcrs/{uuid}
parameters:
- name: name
in: query
description: object name
required: false
schema:
type: string
- name: X-Avi-Tenant
in: header
required: false
description: Avi Tenant Header
schema:
type: string
- name: X-Avi-Tenant-UUID
in: header
required: false
description: Avi Tenant Header UUID
schema:
type: string
- name: X-Avi-Version
in: header
required: true
description: 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.
schema:
type: string
- name: X-CSRFToken
in: header
required: false
description: 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.
schema:
type: string
- name: uuid
in: path
description: UUID of the object to fetch
required: true
schema:
type: string
- name: fields
in: query
description: List of fields to be returned for the resource. Some fields like name, URL, uuid etc. are always returned.
schema:
type: string
- name: include_name
in: query
description: 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.
required: false
schema:
type: boolean
- name: skip_default
in: query
description: Default values are not set.
required: false
schema:
type: boolean
- name: join_subresources
in: query
description: It automatically returns additional dependent resources like runtime. Eg. join_subresources=runtime.
schema:
type: string
security:
- basicAuth: []
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/WafCRS'
'401':
description: log in failed
'404':
description: object not found
summary: GET /wafcrs/{uuid}
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: GET /wafcrs/{uuid}
put:
tags:
- WafCRS
description: /wafcrs/{uuid}/{uuid}
operationId: PUT/wafcrs/{uuid}
parameters:
- in: query
name: name
description: object name
required: false
schema:
type: string
- in: header
name: X-Avi-Tenant
required: false
description: Avi Tenant Header
schema:
type: string
- name: X-Avi-Tenant-UUID
in: header
required: false
description: Avi Tenant Header UUID
schema:
type: string
- name: X-Avi-Version
in: header
required: true
description: 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.
schema:
type: string
- name: X-CSRFToken
in: header
required: false
description: 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.
schema:
type: string
- in: path
name: uuid
description: UUID of the object to fetch
required: true
schema:
type: string
security:
- basicAuth: []
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/WafCRS'
'401':
description: log in failed
'404':
description: object not found
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/WafCRS'
description: WafCRS object creation
required: true
summary: PUT /wafcrs/{uuid}
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: PUT /wafcrs/{uuid}
patch:
tags:
- WafCRS
description: /wafcrs/{uuid}/{uuid}
operationId: PATCH/wafcrs/{uuid}
parameters:
- in: query
name: name
description: object name
required: false
schema:
type: string
- in: header
name: X-Avi-Tenant
required: false
description: Avi Tenant Header
schema:
type: string
- name: X-Avi-Tenant-UUID
in: header
required: false
description: Avi Tenant Header UUID
schema:
type: string
- name: X-Avi-Version
in: header
required: true
description: 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.
schema:
type: string
- name: X-CSRFToken
in: header
required: false
description: 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.
schema:
type: string
- in: path
name: uuid
description: UUID of the object to fetch
required: true
schema:
type: string
security:
- basicAuth: []
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/WafCRS'
'401':
description: log in failed
'404':
description: object not found
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/WafCRS'
description: WafCRS object creation
required: true
summary: PATCH /wafcrs/{uuid}
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: PATCH /wafcrs/{uuid}
delete:
tags:
- WafCRS
description: /wafcrs/{uuid}/{uuid}
operationId: DELETE/wafcrs/{uuid}
parameters:
- in: query
name: name
description: object name
required: false
schema:
type: string
- in: header
name: X-Avi-Tenant
required: false
description: Avi Tenant Header
schema:
type: string
- name: X-Avi-Tenant-UUID
in: header
required: false
description: Avi Tenant Header UUID
schema:
type: string
- name: X-Avi-Version
in: header
required: true
description: 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.
schema:
type: string
- name: X-CSRFToken
in: header
required: false
description: 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.
schema:
type: string
- in: path
name: uuid
description: UUID of the object to fetch
required: true
schema:
type: string
security:
- basicAuth: []
responses:
'204':
description: object deleted
content:
application/json:
schema:
type: string
'404':
description: object not found
summary: DELETE /wafcrs/{uuid}
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: DELETE /wafcrs/{uuid}
servers:
- url: /api
components:
schemas:
IpAddrPrefix:
type: object
required:
- ip_addr
- mask
properties:
ip_addr:
description: ' Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.'
$ref: '#/components/schemas/IpAddr'
mask:
description: ' Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.'
type: integer
format: int32
WafDataFile:
type: object
required:
- data
- name
properties:
data:
description: Stringified WAF File Data. Field introduced in 17.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
name:
description: WAF Data File Name. Field introduced in 17.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
type:
description: WAF data file type. Enum options - WAF_DATAFILE_PM_FROM_FILE, WAF_DATAFILE_DTD, WAF_DATAFILE_XSD, WAF_DATAFILE_IP_MATCH_FROM_FILE. Field introduced in 20.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
default: WAF_DATAFILE_PM_FROM_FILE
WafRuleGroup:
type: object
required:
- enable
- index
- name
properties:
enable:
description: Enable or disable WAF Rule Group. Field introduced in 17.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: boolean
default: true
exclude_list:
description: Exclude list for the WAF rule group. The fields in the exclude list entry are logically and'ed to deduce the exclusion criteria. If there are multiple excludelist entries, it will be 'logical or' of them. Field introduced in 17.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: array
items:
$ref: '#/components/schemas/WafExcludeListEntry'
index:
description: ' Field introduced in 17.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.'
type: integer
format: uint32
name:
description: ' Field introduced in 17.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.'
type: string
rules:
description: Rules as per Modsec language. Field introduced in 17.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: array
items:
$ref: '#/components/schemas/WafRule'
WafRule:
type: object
required:
- enable
- index
- rule
properties:
enable:
description: Enable or disable WAF Rule Group. Field introduced in 17.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: boolean
default: true
exclude_list:
description: Exclude list for the WAF rule. The fields in the exclude list entry are logically and'ed to deduce the exclusion criteria. If there are multiple excludelist entries, it will be 'logical or' of them. Field introduced in 17.2.3. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: array
items:
$ref: '#/components/schemas/WafExcludeListEntry'
index:
description: ' Field introduced in 17.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.'
type: integer
format: uint32
is_sensitive:
description: The rule field is sensitive and will not be displayed. Field introduced in 20.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: boolean
mode:
description: WAF Rule mode. This can be either detection, enforcement or evaluation. If this is not set, the Policy mode is used. This only takes effect if the policy allows delegation. Enum options - WAF_MODE_DETECTION_ONLY, WAF_MODE_ENFORCEMENT, WAF_MODE_EVALUATION. Field introduced in 18.1.5, 18.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
name:
description: User-friendly optional name for a rule. Field introduced in 17.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
paranoia_level:
description: WAF rule paranoia level. This field is informative, like rule_id and tags, it is generated by the system from the rule text. This field is filled for CRS rules. Enum options - WAF_PARANOIA_LEVEL_LOW, WAF_PARANOIA_LEVEL_MEDIUM, WAF_PARANOIA_LEVEL_HIGH, WAF_PARANOIA_LEVEL_EXTREME. Field introduced in 22.1.3. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
phase:
description: The execution phase where this rule will be executed. Enum options - WAF_PHASE_CONNECTION, WAF_PHASE_REQUEST_HEADER, WAF_PHASE_REQUEST_BODY, WAF_PHASE_RESPONSE_HEADER, WAF_PHASE_RESPONSE_BODY, WAF_PHASE_LOGGING. Field introduced in 20.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
readOnly: true
type: string
rule:
description: Rule as per Modsec language. Field introduced in 17.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
rule_id:
description: Identifier (id) for a rule per Modsec language. All SecRule and SecAction directives require an id. It is extracted from the id action in a Modsec rule. Rules within a single WAF Policy are required to have unique rule_ids. Field introduced in 17.2.2. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
tags:
description: Tags for WAF rule as per Modsec language. They are extracted from the tag action in a ModSec rule. Field introduced in 18.1.3. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: array
items:
type: string
WafCRS:
type: object
required:
- description
- integrity
- name
- release_date
- version
properties:
_last_modified:
description: UNIX time since epoch in microseconds. Units(MICROSECONDS).
readOnly: true
type: string
allowed_request_content_type_charsets:
description: Allowed request content type character sets in WAF. Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: array
items:
type: string
description:
description: A short description of this ruleset. Field introduced in 18.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
files:
description: List of Data Files used for WAF Rules. Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: array
items:
$ref: '#/components/schemas/WafDataFile'
groups:
description: WAF Rules are sorted in groups based on their characterization. Field introduced in 18.1.1. Maximum of 64 items allowed. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: array
items:
$ref: '#/components/schemas/WafRuleGroup'
integrity:
description: Integrity protection value. Field introduced in 18.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
integrity_values:
description: Integrity protection values for CRS. Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: array
items:
type: string
markers:
description: List of labels to be used for granular RBAC. Field introduced in 20.1.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: array
items:
$ref: '#/components/schemas/RoleFilterMatchLabel'
name:
description: The name of this ruleset object. Field introduced in 18.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
release_date:
description: The release date of this version in RFC 3339 / ISO 8601 format. Field introduced in 18.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
restricted_extensions:
description: WAF Restricted File Extensions. Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: array
items:
type: string
restricted_headers:
description: WAF Restricted HTTP Headers. Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: array
items:
type: string
tenant_ref:
description: Tenant that this object belongs to. It is a reference to an object of type Tenant. Field introduced in 18.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
url:
description: url
readOnly: true
type: string
uuid:
description: ' Field introduced in 18.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.'
type: string
version:
description: The version of this ruleset object. Field introduced in 18.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
WafCRSApiResponse:
type: object
required:
- count
- results
properties:
count:
type: integer
format: int32
results:
type: array
items:
$ref: '#/components/schemas/WafCRS'
next:
type: string
RoleFilterMatchLabel:
type: object
required:
- key
properties:
key:
description: Key for filter match. Field introduced in 20.1.3. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
values:
description: Values for filter match. Multiple values will be evaluated as OR. Example key = value1 OR key = value2. Behavior for match is key = * if this field is empty. Field introduced in 20.1.3. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: array
items:
type: string
WafExclusionType:
type: object
required:
- match_case
- match_op
properties:
match_case:
description: Case sensitivity to use for the matching. Enum options - SENSITIVE, INSENSITIVE. Field introduced in 17.2.8. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
default: SENSITIVE
match_op:
description: String Operation to use for matching the Exclusion. Enum options - BEGINS_WITH, DOES_NOT_BEGIN_WITH, CONTAINS, DOES_NOT_CONTAIN, ENDS_WITH, DOES_NOT_END_WITH, EQUALS, DOES_NOT_EQUAL, REGEX_MATCH, REGEX_DOES_NOT_MATCH. Field introduced in 17.2.8. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
default: EQUALS
IpAddr:
type: object
required:
- addr
- type
properties:
addr:
description: IP address. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
type:
description: ' Enum options - V4, DNS, V6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.'
type: string
WafExcludeListEntry:
type: object
properties:
client_subnet:
description: Client IP Subnet to exclude for WAF rules. Field introduced in 17.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
$ref: '#/components/schemas/IpAddrPrefix'
description:
description: Free-text comment about this exclusion. Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
match_element:
description: The match_element can be 'ARGS xxx', 'ARGS_GET xxx', 'ARGS_POST xxx', 'ARGS_NAMES xxx', 'FILES xxx', 'QUERY_STRING', 'REQUEST_BASENAME', 'REQUEST_BODY', 'REQUEST_URI', 'REQUEST_URI_RAW', 'REQUEST_COOKIES xxx', 'REQUEST_COOKIES_NAMES xxx', 'REQUEST_HEADERS xxx', 'REQUEST_HEADERS_NAMES xxx', 'RESPONSE_HEADERS xxx' or XML xxx. These match_elements in the HTTP Transaction (if present) will be excluded when executing WAF Rules. Field introduced in 17.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
match_element_criteria:
description: Criteria for match_element matching. Field introduced in 18.2.2. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
$ref: '#/components/schemas/WafExclusionType'
uri_match_criteria:
description: Criteria for URI matching. Field introduced in 17.2.8. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
$ref: '#/components/schemas/WafExclusionType'
uri_path:
description: URI Path to exclude for WAF rules. Field introduced in 17.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
securitySchemes:
basicAuth:
type: http
scheme: basic
description: basic authentication
x-refined-from:
- avi_global_spec.json
- avi-networks-openapi.yml