Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Juniper Networks Configuration API

Device configuration operations

Juniper Networks Configuration API is one of 48 APIs that Juniper Networks publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Configuration. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

This API exposes 7 operations across 7 paths, and defines 2 schemas. It is described by OpenAPI 3.1.0, at version 4.2.0.

Requests are made against a single base URL, https://{apstra_server}/api.

7 operations 7 paths 2 schemas 2 GET5 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
4.2.0
Base URL
https://[space-server]/api/space
Authentication
API Key
Terms of Service
Resource Areas
1

Authentication & Security 1

Juniper Networks Configuration API declares 1 security scheme for authenticating requests. An API key is passed in the header as AuthToken (authToken). By default, every request must be authenticated.

  • authToken — Authentication token obtained from the /aaa/login endpoint. Include as AuthToken header in all requests.

Paths & Operations 7

Across 7 paths, the API surfaces 7 operations — 2 GET, 5 POST. Each is listed below with its method, path, parameters, and response codes.

Configuration 7

Device configuration operations

POST
/api/get-config
Juniper Networks Get device configuration
getConfiguration body → 200
POST
/api/edit-config
Juniper Networks Edit device configuration
editConfiguration body → 200400
POST
/rpc/commit-configuration
Juniper Networks Commit configuration
commitConfiguration body → 200400
POST
/rpc/rollback-configuration
Juniper Networks Rollback configuration
rollbackConfiguration body → 200
GET
/device-management/devices/{device_id}/configurations/raw
Juniper Networks Get device configuration
getDeviceConfiguration 1 param → 200
GET
/config-file-management/config-files
Juniper Networks List configuration files
listConfigFiles 2 params → 200
POST
/config-file-management/apply-configlet
Juniper Networks Apply configlet to devices
applyConfiglet body → 202

Schemas 2

The contract defines 2 schemas that model the data the API accepts and returns. The most detailed are Job (7 properties), ConfigFile (5 properties). Each schema is shown below with its type and property counts.

ConfigFile
object
5 properties
Job
object
7 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

juniper-configuration-api-openapi.yml Raw ↑

Other APIs Juniper Networks publishes across the network.

Junos PyEZ (Python API)
JSNAPy API
Juniper Networks Allowlists and Blocklists API
Juniper Networks Analytics API
Juniper Networks Audit Logs API
Juniper Networks Authentication API
Juniper Networks BGP Routers API
Juniper Networks Blueprints API
Juniper Networks Clients API
Juniper Networks Configlets API
Juniper Networks Connectivity Templates API
Juniper Networks Design API