Juniper Networks Virtual Networks API
Virtual network and routing zone management
Virtual network and routing zone management
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/juniper-virtual-networks-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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. 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: Juniper Virtual Networks API
version: '1.0'
description: 'Operations tagged Virtual Networks across 2 of this provider''s published API definitions: juniper-apstra-openapi.yml, juniper-contrail-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://{apstra_server}/api
description: Apstra Server
variables:
apstra_server:
default: apstra.example.com
description: Hostname or IP of the Apstra server
- url: https://{contrail_controller}:8082
description: Contrail API Server
variables:
contrail_controller:
default: contrail.example.com
description: Hostname or IP of the Contrail controller
tags:
- name: Virtual Networks
description: Virtual network and routing zone management
paths:
/blueprints/{blueprint_id}/security-zones:
get:
operationId: listSecurityZones
summary: Juniper Networks List security zones (routing zones / VRFs)
description: Returns routing zones (VRFs) in the blueprint.
tags:
- Virtual Networks
parameters:
- $ref: '#/components/parameters/BlueprintId'
responses:
'200':
description: List of security zones
content:
application/json:
schema:
type: object
properties:
items:
type: array
items:
$ref: '#/components/schemas/SecurityZone'
security:
- authToken: []
post:
operationId: createSecurityZone
summary: Juniper Networks Create security zone
description: Creates a new routing zone (VRF) in the blueprint.
tags:
- Virtual Networks
parameters:
- $ref: '#/components/parameters/BlueprintId'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SecurityZone'
responses:
'201':
description: Security zone created
content:
application/json:
schema:
$ref: '#/components/schemas/SecurityZone'
security:
- authToken: []
servers:
- url: https://{apstra_server}/api
description: Apstra Server
variables:
apstra_server:
default: apstra.example.com
description: Hostname or IP of the Apstra server
/blueprints/{blueprint_id}/virtual-networks:
get:
operationId: listVirtualNetworks
summary: Juniper Networks List virtual networks
description: Returns virtual networks configured in the blueprint.
tags:
- Virtual Networks
parameters:
- $ref: '#/components/parameters/BlueprintId'
responses:
'200':
description: List of virtual networks
content:
application/json:
schema:
type: object
properties:
virtual_networks:
type: array
items:
$ref: '#/components/schemas/VirtualNetwork'
security:
- authToken: []
post:
operationId: createVirtualNetwork
summary: Juniper Networks Create virtual network
description: Creates a new virtual network in the blueprint.
tags:
- Virtual Networks
parameters:
- $ref: '#/components/parameters/BlueprintId'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/VirtualNetwork'
responses:
'201':
description: Virtual network created
content:
application/json:
schema:
$ref: '#/components/schemas/VirtualNetwork'
security:
- authToken: []
servers:
- url: https://{apstra_server}/api
description: Apstra Server
variables:
apstra_server:
default: apstra.example.com
description: Hostname or IP of the Apstra server
/virtual-networks:
get:
operationId: listVirtualNetworks
summary: Juniper Networks List virtual networks
description: Returns all virtual networks.
tags:
- Virtual Networks
parameters:
- $ref: '#/components/parameters/ParentId'
- $ref: '#/components/parameters/DetailParam'
responses:
'200':
description: List of virtual networks
content:
application/json:
schema:
type: object
properties:
virtual-networks:
type: array
items:
$ref: '#/components/schemas/ResourceRef'
security:
- keystoneAuth: []
post:
operationId: createVirtualNetwork
summary: Juniper Networks Create virtual network
description: Creates a new virtual network.
tags:
- Virtual Networks
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
virtual-network:
$ref: '#/components/schemas/VirtualNetwork_2'
responses:
'200':
description: Virtual network created
content:
application/json:
schema:
type: object
properties:
virtual-network:
$ref: '#/components/schemas/VirtualNetwork_2'
security:
- keystoneAuth: []
servers:
- url: https://{contrail_controller}:8082
description: Contrail API Server
variables:
contrail_controller:
default: contrail.example.com
description: Hostname or IP of the Contrail controller
/virtual-network/{vn_id}:
get:
operationId: getVirtualNetwork
summary: Juniper Networks Get virtual network
description: Returns details of a specific virtual network.
tags:
- Virtual Networks
parameters:
- name: vn_id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Virtual network details
content:
application/json:
schema:
type: object
properties:
virtual-network:
$ref: '#/components/schemas/VirtualNetwork_2'
security:
- keystoneAuth: []
put:
operationId: updateVirtualNetwork
summary: Juniper Networks Update virtual network
description: Updates an existing virtual network.
tags:
- Virtual Networks
parameters:
- name: vn_id
in: path
required: true
schema:
type: string
format: uuid
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
virtual-network:
$ref: '#/components/schemas/VirtualNetwork_2'
responses:
'200':
description: Virtual network updated
security:
- keystoneAuth: []
delete:
operationId: deleteVirtualNetwork
summary: Juniper Networks Delete virtual network
description: Deletes a virtual network.
tags:
- Virtual Networks
parameters:
- name: vn_id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Virtual network deleted
security:
- keystoneAuth: []
servers:
- url: https://{contrail_controller}:8082
description: Contrail API Server
variables:
contrail_controller:
default: contrail.example.com
description: Hostname or IP of the Contrail controller
components:
parameters:
BlueprintId:
name: blueprint_id
in: path
required: true
description: Blueprint unique identifier
schema:
type: string
format: uuid
DetailParam:
name: detail
in: query
description: Return full object details instead of references
schema:
type: boolean
default: false
ParentId:
name: parent_id
in: query
description: Filter by parent resource UUID
schema:
type: string
format: uuid
schemas:
VirtualNetwork:
type: object
properties:
id:
type: string
format: uuid
label:
type: string
vn_type:
type: string
enum:
- vxlan
- vlan
vn_id:
type: string
security_zone_id:
type: string
format: uuid
ipv4_subnet:
type: string
ipv4_gateway:
type: string
ipv6_subnet:
type: string
vlan_id:
type: integer
bound_to:
type: array
items:
type: object
properties:
system_id:
type: string
vlan_id:
type: integer
access_switches:
type: array
items:
type: object
SecurityZone:
type: object
properties:
id:
type: string
format: uuid
label:
type: string
vrf_name:
type: string
vlan_id:
type: integer
routing_policy_id:
type: string
format: uuid
sz_type:
type: string
enum:
- evpn
- vlan
rt_policy:
type: object
properties:
import_RTs:
type: array
items:
type: string
export_RTs:
type: array
items:
type: string
ResourceRef:
type: object
properties:
uuid:
type: string
format: uuid
fq_name:
type: array
items:
type: string
href:
type: string
format: uri
IdPerms:
type: object
properties:
enable:
type: boolean
uuid:
type: object
properties:
uuid_mslong:
type: integer
uuid_lslong:
type: integer
created:
type: string
format: date-time
last_modified:
type: string
format: date-time
description:
type: string
user_visible:
type: boolean
VirtualNetwork_2:
type: object
properties:
uuid:
type: string
format: uuid
fq_name:
type: array
items:
type: string
display_name:
type: string
parent_type:
type: string
id_perms:
$ref: '#/components/schemas/IdPerms'
network_ipam_refs:
type: array
items:
type: object
properties:
to:
type: array
items:
type: string
attr:
type: object
properties:
ipam_subnets:
type: array
items:
type: object
properties:
subnet:
type: object
properties:
ip_prefix:
type: string
ip_prefix_len:
type: integer
default_gateway:
type: string
subnet_uuid:
type: string
format: uuid
network_policy_refs:
type: array
items:
type: object
properties:
to:
type: array
items:
type: string
attr:
type: object
properties:
sequence:
type: object
properties:
major:
type: integer
minor:
type: integer
virtual_network_properties:
type: object
properties:
forwarding_mode:
type: string
enum:
- default
- l2_l3
- l2
- l3
vxlan_network_identifier:
type: integer
rpf:
type: string
enum:
- enable
- disable
securitySchemes:
authToken:
type: apiKey
in: header
name: AuthToken
description: Authentication token obtained from the /aaa/login endpoint. Include as AuthToken header in all requests.
keystoneAuth:
type: http
scheme: bearer
description: Keystone token authentication. Obtain a token from the Keystone identity service and pass it as X-Auth-Token header.
x-refined-from:
- juniper-apstra-openapi.yml
- juniper-contrail-openapi.yml