AVI Networks Network Service API
The NetworkService API from AVI Networks — 2 operation(s) for networkservice.
The NetworkService API from AVI Networks — 2 operation(s) for networkservice.
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-networkservice-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 Network Service API
version: 32.2.1
contact:
name: Avi Networks Inc.
url: https://avinetworks.com/contact-us
email: support@avinetworks.com
description: 'Operations tagged NetworkService 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: NetworkService
paths:
/networkservice:
get:
tags:
- NetworkService
description: /networkservice
operationId: GET/networkservice
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
- name: cloud_uuid
in: query
description: Filter to get objects that belongs to a specific cloud using its uuid. Eg. cloud_uuid=cloud-xyz.
schema:
type: string
- name: cloud_ref.name
in: query
description: Filter to get objects that belongs to a specific cloud usings its name. This uses cloud name rather than uuid. Eg. cloud_ref.name=Default-Cloud.
schema:
type: string
- name: cloud_ref.uuid
in: query
description: Filter to get objects that belongs to a specific cloud using its uuid. Eg. cloud_ref.uuid=cloud_uuid.
required: false
schema:
type: string
- name: name.contains
in: query
description: Filter to get objects with name that contains the parameter. This is a case sensitive search. Eg. name.contains=pool-.
required: false
schema:
type: string
- name: name.icontains
in: query
description: Filter to get objects with name that contains the parameter. This is a case insensitive search. Eg. name.icontains=pool-.
required: false
schema:
type: string
- name: name.in
in: query
description: Filter to get objects that have a uuid matching any of the values in the parameter list. Each value for this parameter is to comma separated. Eg. name.in=pool-1,pool-12.
required: false
schema:
type: string
- name: uuid.in
in: query
description: Filter to get objects that have a uuid matching any of the values in the parameter list. Each value for this parameter is to comma separated. Eg. uuid.in=<uuid-1>,<uuid-2>.
required: false
schema:
type: string
- name: search
in: query
description: Filter to get objects that contains the search string as value for any of its fields. Eg. search=LEAST_CONN. The search filter can also be used to search under a specific field. This is achieved by sending the parameter as ?search=(<field>,<value>)|(<field>,<value>). Eg. search=(name,vs-pool-).
required: false
schema:
type: string
- name: isearch
in: query
description: Filter to get objects that contains case insensitive search string. Eg. isearch=(name,Vs-Pool-).
required: false
schema:
type: string
- name: limit_by
in: query
description: Filter to limit the number of objects in the response data. Eg. limit_by=3.
required: false
schema:
type: string
- name: exclude
in: query
description: Filter to exclude the uuid(s) contained in the parameter. Eg. uuid.in=<uuid-1>,<uuid-2>&exclude=uuid.in.
required: false
schema:
type: string
- name: sort
in: query
description: Parameter to sort the results with respect to a field. Eg. sort=name.
required: false
schema:
type: string
- name: page
in: query
description: Parameter to specify the desired page number. The page starts from 1 and default is 1.
required: false
schema:
type: string
- name: page_size
in: query
description: Parameter to specify the maximum number of results to be returned per page. The page_size can range from 1 to 200. Eg. page_size=5.
required: false
schema:
type: string
security:
- basicAuth: []
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/NetworkServiceApiResponse'
'401':
description: log in failed
summary: GET /networkservice
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: GET /networkservice
post:
tags:
- NetworkService
description: /networkservice
operationId: POST/networkservice
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/NetworkService'
'401':
description: log in failed
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/NetworkService'
description: NetworkService object creation
required: true
summary: POST /networkservice
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: POST /networkservice
servers:
- url: /api
/networkservice/{uuid}:
get:
tags:
- NetworkService
description: /networkservice/{uuid}/{uuid}
operationId: GET/networkservice/{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/NetworkService'
'401':
description: log in failed
'404':
description: object not found
summary: GET /networkservice/{uuid}
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: GET /networkservice/{uuid}
put:
tags:
- NetworkService
description: /networkservice/{uuid}/{uuid}
operationId: PUT/networkservice/{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/NetworkService'
'401':
description: log in failed
'404':
description: object not found
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/NetworkService'
description: NetworkService object creation
required: true
summary: PUT /networkservice/{uuid}
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: PUT /networkservice/{uuid}
patch:
tags:
- NetworkService
description: /networkservice/{uuid}/{uuid}
operationId: PATCH/networkservice/{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/NetworkService'
'401':
description: log in failed
'404':
description: object not found
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/NetworkService'
description: NetworkService object creation
required: true
summary: PATCH /networkservice/{uuid}
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: PATCH /networkservice/{uuid}
delete:
tags:
- NetworkService
description: /networkservice/{uuid}/{uuid}
operationId: DELETE/networkservice/{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 /networkservice/{uuid}
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: DELETE /networkservice/{uuid}
servers:
- url: /api
components:
schemas:
NetworkServiceApiResponse:
type: object
required:
- count
- results
properties:
count:
type: integer
format: int32
results:
type: array
items:
$ref: '#/components/schemas/NetworkService'
next:
type: string
RoutingService:
type: object
properties:
advertise_backend_networks:
description: Advertise reachability of backend server networks via ADC through BGP for default gateway feature. Field introduced in 18.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: boolean
enable_auto_gateway:
description: Enable auto gateway to save and use the same L2 path to send the return traffic. Field introduced in 20.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: boolean
enable_routing:
description: Service Engine acts as Default Gateway for this service. Field introduced in 18.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: boolean
enable_vip_on_all_interfaces:
description: Enable VIP on all interfaces of this service. Field introduced in 18.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: boolean
default: true
enable_vmac:
description: Use Virtual MAC address for interfaces on which floating interface IPs are placed. Field introduced in 18.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: boolean
floating_intf_ip:
description: Floating Interface IPs for the RoutingService. Field introduced in 18.2.5. Maximum of 32 items allowed. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: array
items:
$ref: '#/components/schemas/IpAddr'
floating_intf_ip6_addresses:
description: IPv6 Floating Interface IPs for the RoutingService. Field introduced in 22.1.6, 30.2.1. Maximum of 32 items allowed. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: array
items:
$ref: '#/components/schemas/IpAddr'
floating_intf_ip6_se_2_addresses:
description: If ServiceEngineGroup is configured for Legacy 1+1 Active Standby HA Mode, IPv6 Floating IP's will be advertised only by the Active SE in the Pair. Virtual Services in this group must be disabled/enabled for any changes to the IPv6 Floating IP's to take effect. Only active SE hosting VS tagged with Active Standby SE 2 Tag will advertise this floating IP when manual load distribution is enabled. Field introduced in 22.1.6, 30.2.1. Maximum of 32 items allowed. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: array
items:
$ref: '#/components/schemas/IpAddr'
floating_intf_ip_se_2:
description: If ServiceEngineGroup is configured for Legacy 1+1 Active Standby HA Mode, Floating IP's will be advertised only by the Active SE in the Pair. Virtual Services in this group must be disabled/enabled for any changes to the Floating IP's to take effect. Only active SE hosting VS tagged with Active Standby SE 2 Tag will advertise this floating IP when manual load distribution is enabled. Field introduced in 18.2.5. Maximum of 32 items allowed. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: array
items:
$ref: '#/components/schemas/IpAddr'
flowtable_profile:
description: Routing Service related Flow profile information. Field introduced in 18.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
$ref: '#/components/schemas/FlowtableProfile'
graceful_restart:
description: Enable graceful restart feature in routing service. For example, BGP. Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: boolean
nat_policy_ref:
description: NAT policy for outbound NAT functionality. This is done in post-routing. It is a reference to an object of type NatPolicy. Field introduced in 18.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
routing_by_linux_ipstack:
description: For IP Routing feature, enabling this knob will fallback to routing through Linux, by default routing is done via Service Engine data-path. Field introduced in 18.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: boolean
routing_segmentation_mss:
description: Maximum Segment Size (MSS) to use for segmentation ofGRO'd/LRO'd TCP packets in routing service. When oversizedpackets with DF bit set exceed egress MTU, they will besegmented using hardware TSO with this MSS value. Allowed values are 536-9000. Special values are 0- auto. Field introduced in 32.1.4. Unit is BYTES. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: integer
format: uint32
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
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
NetworkService:
type: object
required:
- name
- se_group_ref
- service_type
- vrf_ref
properties:
_last_modified:
description: UNIX time since epoch in microseconds. Units(MICROSECONDS).
readOnly: true
type: string
cloud_ref:
description: ' It is a reference to an object of type Cloud. Field introduced in 18.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.'
type: string
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: Name of the NetworkService. Field introduced in 18.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
routing_service:
description: Routing Information of the NetworkService. Field introduced in 18.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
$ref: '#/components/schemas/RoutingService'
se_group_ref:
description: Service Engine Group to which the service is applied. It is a reference to an object of type ServiceEngineGroup. Field introduced in 18.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
service_type:
description: Indicates the type of NetworkService. Enum options - ROUTING_SERVICE. Field introduced in 18.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
tenant_ref:
description: ' It is a reference to an object of type Tenant. Field introduced in 18.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.'
type: string
url:
description: url
readOnly: true
type: string
uuid:
description: UUID of the NetworkService. Field introduced in 18.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
vrf_ref:
description: VRF context to which the service is scoped. It is a reference to an object of type VrfContext. Field introduced in 18.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: string
FlowtableProfile:
type: object
properties:
icmp_idle_timeout:
description: Idle timeout in seconds for ICMP flows. Allowed values are 1-36000. Field introduced in 20.1.3. Unit is SECONDS. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: integer
default: 60
format: uint32
tcp_closed_timeout:
description: Idle timeout in seconds for TCP flows in closed state. Allowed values are 1-36000. Field introduced in 18.2.5. Unit is SECONDS. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: integer
default: 5
format: uint32
tcp_connection_setup_timeout:
description: Idle timeout in seconds for nat TCP flows in connection setup state. Allowed values are 1-36000. Field introduced in 18.2.5. Unit is SECONDS. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: integer
default: 10
format: uint32
tcp_half_closed_timeout:
description: Idle timeout in seconds for TCP flows in half closed state. Allowed values are 1-36000. Field introduced in 18.2.5. Unit is SECONDS. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: integer
default: 30
format: uint32
tcp_idle_timeout:
description: Idle timeout in seconds for TCP flows. Allowed values are 1-36000. Field introduced in 18.2.5. Unit is SECONDS. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: integer
default: 300
format: uint32
tcp_reset_timeout:
description: Timeout in seconds for TCP flows after RST is seen.Within this timeout, if any non-syn packet is seenfrom the endpoint from which RST is received,nat-flow moves to established state. Otherwise nat-flowis cleaned up. This state helps to mitigate the impactof RST attacks. Allowed values are 1-36000. Field introduced in 18.2.5. Unit is SECONDS. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: integer
default: 1
format: uint32
udp_idle_timeout:
description: Idle timeout in seconds for UDP flows. Allowed values are 1-36000. Field introduced in 18.2.5. Unit is SECONDS. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
type: integer
default: 10
format: uint32
securitySchemes:
basicAuth:
type: http
scheme: basic
description: basic authentication
x-refined-from:
- avi_global_spec.json
- avi-networks-openapi.yml