AVI Networks Security Policy API
The SecurityPolicy API from AVI Networks — 2 operation(s) for securitypolicy.
The SecurityPolicy API from AVI Networks — 2 operation(s) for securitypolicy.
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-securitypolicy-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 Security Policy API
version: 32.2.1
contact:
name: Avi Networks Inc.
url: https://avinetworks.com/contact-us
email: support@avinetworks.com
description: 'Operations tagged SecurityPolicy 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: SecurityPolicy
paths:
/securitypolicy:
get:
tags:
- SecurityPolicy
description: /securitypolicy
operationId: GET/securitypolicy
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/SecurityPolicyApiResponse'
'401':
description: log in failed
summary: GET /securitypolicy
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: GET /securitypolicy
post:
tags:
- SecurityPolicy
description: /securitypolicy
operationId: POST/securitypolicy
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/SecurityPolicy'
'401':
description: log in failed
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SecurityPolicy'
description: SecurityPolicy object creation
required: true
summary: POST /securitypolicy
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: POST /securitypolicy
servers:
- url: /api
/securitypolicy/{uuid}:
get:
tags:
- SecurityPolicy
description: /securitypolicy/{uuid}/{uuid}
operationId: GET/securitypolicy/{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/SecurityPolicy'
'401':
description: log in failed
'404':
description: object not found
summary: GET /securitypolicy/{uuid}
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: GET /securitypolicy/{uuid}
put:
tags:
- SecurityPolicy
description: /securitypolicy/{uuid}/{uuid}
operationId: PUT/securitypolicy/{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/SecurityPolicy'
'401':
description: log in failed
'404':
description: object not found
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SecurityPolicy'
description: SecurityPolicy object creation
required: true
summary: PUT /securitypolicy/{uuid}
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: PUT /securitypolicy/{uuid}
patch:
tags:
- SecurityPolicy
description: /securitypolicy/{uuid}/{uuid}
operationId: PATCH/securitypolicy/{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/SecurityPolicy'
'401':
description: log in failed
'404':
description: object not found
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SecurityPolicy'
description: SecurityPolicy object creation
required: true
summary: PATCH /securitypolicy/{uuid}
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: PATCH /securitypolicy/{uuid}
delete:
tags:
- SecurityPolicy
description: /securitypolicy/{uuid}/{uuid}
operationId: DELETE/securitypolicy/{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 /securitypolicy/{uuid}
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: DELETE /securitypolicy/{uuid}
servers:
- url: /api
components:
schemas:
AttackMitigationAction:
type: object
properties:
deny:
description: Deny the attack packets further processing and drop them. Field introduced in 18.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: boolean
default: true
SecurityPolicy:
type: object
required:
- dns_policy_index
- name
- network_security_policy_index
properties:
_last_modified:
description: UNIX time since epoch in microseconds. Units(MICROSECONDS).
readOnly: true
type: string
description:
description: Security policy is used to specify various configuration information used to perform Distributed Denial of Service (DDoS) attacks detection and mitigation. Field introduced in 18.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
dns_amplification_denyports:
description: Source ports and port ranges to deny in DNS Amplification attacks. Field introduced in 21.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
$ref: '#/components/schemas/PortMatchGeneric'
dns_attacks:
description: Attacks utilizing the DNS protocol operations. Field introduced in 18.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
$ref: '#/components/schemas/DnsAttacks'
dns_policy_index:
description: Index of the dns policy to use for the mitigation rules applied to the dns attacks. Field introduced in 18.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: integer
format: uint32
markers:
description: List of labels to be used for granular RBAC. Field introduced in 20.1.5. 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 the security policy. Field introduced in 18.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
network_security_policy_index:
description: Index of the network security policy to use for the mitigation rules applied to the attacks. Field introduced in 18.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: integer
format: uint32
oper_mode:
description: Mode of dealing with the attacks - perform detection only, or detect and mitigate the attacks. Enum options - DETECTION, MITIGATION. Field introduced in 18.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
default: DETECTION
tenant_ref:
description: Tenancy of the security policy. 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: The UUID of the security policy. Field introduced in 18.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
PortMatchGeneric:
type: object
required:
- match_criteria
properties:
match_criteria:
description: Criterion to use for src/dest port in a TCP/UDP packet. Enum options - IS_IN, IS_NOT_IN. Field introduced in 20.1.3. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
ports:
description: Listening TCP port(s). Allowed values are 1-65535. Field introduced in 20.1.3. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: array
items:
type: integer
format: uint32
ranges:
description: A port range defined by a start and end, including both. Field introduced in 20.1.3. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: array
items:
$ref: '#/components/schemas/PortRange'
DnsAttack:
type: object
required:
- attack_vector
properties:
attack_vector:
description: The DNS attack vector. Enum options - DNS_REFLECTION, DNS_NXDOMAIN, DNS_AMPLIFICATION_EGRESS. Field introduced in 18.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
enabled:
description: Enable or disable the mitigation of the attack vector. Field introduced in 18.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: boolean
default: true
max_mitigation_age:
description: Time in minutes after which mitigation will be deactivated. Allowed values are 1-4294967295. Special values are 0- blocked for ever. Field introduced in 18.2.1. Unit is MIN. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: integer
default: 60
format: uint32
mitigation_action:
description: Mitigation action to perform for this DNS attack vector. Field introduced in 18.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
$ref: '#/components/schemas/AttackMitigationAction'
threshold:
description: Threshold, in terms of DNS packet per second, for the DNS attack vector. Field introduced in 18.2.3. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: integer
format: uint64
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
DnsAttacks:
type: object
properties:
attacks:
description: Mode of dealing with the attacks - perform detection only, or detect and mitigate the attacks. Field introduced in 18.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: array
items:
$ref: '#/components/schemas/DnsAttack'
oper_mode:
description: Mode of dealing with the attacks - perform detection only, or detect and mitigate the attacks. Enum options - DETECTION, MITIGATION. Field introduced in 18.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
PortRange:
type: object
required:
- end
- start
properties:
end:
description: TCP/UDP port range end (inclusive). Allowed values are 1-65535. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: integer
format: uint32
start:
description: TCP/UDP port range start (inclusive). Allowed values are 1-65535. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: integer
format: uint32
SecurityPolicyApiResponse:
type: object
required:
- count
- results
properties:
count:
type: integer
format: int32
results:
type: array
items:
$ref: '#/components/schemas/SecurityPolicy'
next:
type: string
securitySchemes:
basicAuth:
type: http
scheme: basic
description: basic authentication
x-refined-from:
- avi_global_spec.json
- avi-networks-openapi.yml