Configure Assurance Services with APIs
Get started with some of the API calls that you can use to configure various Juniper Mist™ assurance services.
Juniper Mist offers many cloud-based assurance services to help you identify the cause of poor user experience on the network. The assurances are automated Mist tools that provide insight into users’ connection data and can even proactively make configuration adjustments to the network. Mist offers services such as Access Assurance, WAN Assurance, Wired Assurance, and Wireless Assurance. SLEs and Insights are two features that are included in each of these licensed offerings.
For example, the APIs associated with Access Assurance enable you to configure Authorization Policies and more. APIs with Wired Assurance enable you to configure devices using Network Templates and individual switch settings. Wireless Assurance enables you to configure wireless templates or individual access points (APs). WAN Assurance allows you to configure Organization Hub Profiles and more.
This topic provides examples as well as links to more information on how you can use the different Mist assurances with APIs.
Access Assurance
Org Nac Tags
-
Create Org Nac Tag
POST /api/v1/orgs/{org_id}/nactags
-
Payload: JSON Formatted Payload
-
Required: org id
-
-
Get List of Org Nac Tags
GET /api/v1/orgs/{org_id}/nactags
-
Payload: JSON Formatted Payload
-
Required: org id
-
-
Get Org Nac Tag
GET /api/v1/orgs/{org_id}/nactags/{nactag_id}
-
Payload: JSON Formatted Payload
-
Required: org id, nac tag id
-
-
Update Org Nac Tag
PUT /api/v1/orgs/{org_id}/nactags/{nactag_id}
-
Payload: JSON Formatted Payload
-
Required: org id, nac tag id
-
-
Delete Org Nac Tag
DELETE /api/v1/orgs/{org_id}/nactags/{nactag_id}
-
Payload: None
-
Required: org id, nac tag id
For more information on Nac Tags, see Nac Tags Overview.
-
To see additional types of configuration you can do for Access Assurance using APIs, see:
WAN Assurance
Org Networks
-
Create Org Network
POST /api/v1/orgs/{org_id}/networks
-
Payload: JSON Formatted Payload
-
Required: org id
-
-
List Org Networks
GET /api/v1/orgs/{org_id}/networks
-
Payload: JSON Formatted Payload
-
Required: org id
-
-
Get Org Network
GET /api/v1/orgs/{org_id}/networks/{network_id}
-
Payload: JSON Formatted Payload
-
Required: org id, network id
-
-
Update Org Network
PUT /api/v1/orgs/{org_id}/networks/{network_id}
-
Payload: JSON Formatted Payload
-
Required: org id, network id
-
-
Delete Org Network
DELETE /api/v1/orgs/{org_id}/networks/{network_id}
-
Payload: None
-
Required: org id, network id
-
- Org Device Profiles (Org Hub Profiles)
-
Org Services (Org Applications)
-
Org Service Policies (Org Application Policies).
-
Org Devices and Org Stats Devices (WAN Edge Gateways)
Wired Assurance
Org Network Templates
-
Create Org Network Template
POST /api/v1/orgs/{org_id}/networktemplates
-
Payload: JSON Formatted Payload
-
Required: org id
-
-
Get List of Org Network Templates
GET /api/v1/orgs/{org_id}/networktemplates
-
Payload: JSON Formatted Payload
-
Filters: org id
-
-
Get Org Network Template
GET /api/v1/orgs/{org_id}/networktemplates/{networktemplate_id}
-
Payload: JSON Formatted Payload
-
Required: org id, network template id
-
-
Update Org Network Template
PUT /api/v1/orgs/{org_id}/networktemplates/{networktemplate_id}
- Payload: JSON Formatted Payload (only changes/additions needed)
-
Required: org id, network template id
-
Delete Org Network Template
DELETE /api/v1/orgs/{org_id}/networktemplates/{networktemplate_id}
- Payload: None
-
Required: org id, network template id
For more information, see Network Templates Overview.
Site Settings
Documentation is located here: Sites Setting Overview.
-
Get Site Settings
*Includes both switching and non-switching related settings*
-
GET /api/v1/sites/{site_id}/setting
- Payload: JSON Formatted Payload
-
Required: site id
- Update Site Settings
PUT /api/v1/sites/{site_id}/setting
- Payload: JSON Formatted Payload (only changes/additions needed)
- Required: site id
- To link this site to a template, add the “networktemplate_id” key with the value of the ID for the network template to apply.
Note:There is no POST or DELETE for site settings. The only way to create site settings is to create a new site, and the only current way to delete them is to delete the site.
Get Site EVPN Topology
GET /api/v1/sites/{site_id}/evpn_topologies/{evpn_topology_id}
-
Payload: None
-
Required: site id, evpn topology id
-
-
Count Site Wired Clients
GET /api/v1/sites/{site_id}/wired_clients/count
-
Payload: JSON Formatted Payload
-
Required: site id
-
-
Search Site Wired Clients
GET /api/v1/sites/{site_id}/wired_clients/search
-
Payload: JSON Formatted Payload
-
Required: site id
-
Switch Settings
Documentation is located here: Site Devices Overview.
- Get Switch Settings
GET /api/v1/sites/{site_id}/devices/{device_id}
- Payload: JSON formatted payload
-
Required: site id, device id
- Update Switch Settings
PUT /api/v1/sites/{site_id}/devices/{device_id}
- Payload: JSON Formatted Payload (only changes/additions needed)
-
Required: site id, device id
To see additional types of configuration you can do for Wired Assurance using APIs, see API Devices Overview.
Wireless Assurance
Org WLANs
-
Create Org WLAN
POST /api/v1/orgs/{org_id}/wlans
- Payload: JSON Formatted Payload
-
Required: org id
-
List Org WLANs
GET /api/v1/orgs/{org_id}/wlans
- Payload: JSON Formatted Payload
-
Required: org id
-
Get Org WLAN
GET /api/v1/orgs/{org_id}/wlans/{wlan_id}
- Payload: JSON Formatted Payload
-
Required: org id, wlan id
-
Update Org WLAN
PUT /api/v1/orgs/{org_id}/wlans/{wlan_id}
- Payload: JSON Formatted Payload
-
Required: org id, wlan id
-
Delete Org WLAN
DELETE /api/v1/orgs/{org_id}/wlans/{wlan_id}
- Payload: None
-
Required: org id, wlan id
For more information on what you can do with WLANs using APIs, see Org WLANs Overview.
To see additional types of configuration you can do for Wireless Assurance using APIs, see:
Organization
Site
Device