9.0.0 8.3.0 8.2.0-8.2.1 8.1.0-8.1.1 8.0.0-8.0.3 7.4.0-7.4.6 7.3.0-7.3.2 7.2.0-7.2.1 7.1.0-7.1.2 7.0.0-7.0.2 6.1.0-6.1.2 View All PV Cloud PV Local Installs
Auto Light Dark
Auto Light Dark
9.0.0 8.3.0 8.2.0-8.2.1 8.1.0-8.1.1 8.0.0-8.0.3 7.4.0-7.4.6 7.3.0-7.3.2 7.2.0-7.2.1 7.1.0-7.1.2 7.0.0-7.0.2 6.1.0-6.1.2 View All PV Cloud PV Local Installs

APIv2

API v2 Overview

APIv2 is ProVision's currently supported RESTful API version. APIv2 adds new endpoints and upgraded functionality over APIv1, through use of HTTPS authentication, additional HTTP methods (GET, PUT, POST, etc.), and JSON payloads.

To test APIv2 queries, you may:

  1. Use a browser extension REST client, such as Postman

  2. Access ProVision's APIv2 Swagger documentation from your ProVision instance ( instance/dev/swagger), which provides the ability to test inputs and responses using your ProVision instance data. 

APIv2 Swagger Documentation

Accessing Swagger

Public APIv2 documentation is located here. 

APIv2 documentation includes:

  • IPAM API: Includes actions for LIRs, IP aggregate and block management, VLAN, IP Rules, and SWIP.

  • Resource API: Includes actions for managing the ProVision Resource System. The resource API provides CRUD endpoints for resources, resource attributes, resource attachments and resource backups.

  • DNS API: ProVision DNS API allows you to manage DNS Zones, Records, Servers, Groups and ACLS.

  • Users API: Includes actions for ProVision Users, permissions and actions.

  • Usergroups API: Includes actions for ProVision Groups, permissions and actions

  • Scheduler API: The API Allows you to easily schedule tasks.

  • API Composer Platform (ACP): ACP is an additional module in ProVision to help automate frequently used combinations of calls.

Existing customers may access APIv2 documentation from your ProVision instance (user must have Admin permissions):

  1. Log into your ProVision instance.

  2. Go to the Admin area of ProVision and click on the API Tab.

  3. Under "OpenAPI 3.0 Specification" click the Swagger link provided.

    7.1.0 API Tab APIv2 Swagger Link.png

Viewing APIv2 Information

  1. On the Provision API Swagger home page, click on the name link for the API family that you wish to browse (IPAM, Resource, DNS, etc).

    Click to expand...
    7.1.0 APIv2 Swagger Home.png
  2. Once on an API Family page, verify that the displayed server name is correct for your instance/local server. 

    Click to expand...

    In most situations, only one ProVision instance/server will be displayed, with authentication already provided from your ProVision login. If your ProVision session has ended, or the server changed, you may need to re-provide ProVision credentials by clicking the "Authorize" button.

    7.1.0 APIv2 Swagger Server select.png
  3. Scroll further down the page and begin reviewing available APIv2 calls and details. Clicking on any call will expand it to view parameter details  - you can even test call responses (using your instance data) by clicking "Try it Out"!

    Click to expand...


    The detail information includes a description, parameter list (required parameters are marked with a *), and response information

    7.1.0 APIv2 Swagger GET LIR Exp.png
  4. Some calls that involve a JSON request body payload (PUT, PATCH, etc) will display "Example Value" and "Model" information under a "Request Body" section - additional parameter descriptions may be displayed under "Model" Information. 

    Click to expand...


    Clicking on "Example Value" will show an example of a JSON request body for that call.

    7.1.0 APIv2 Swagger GET LIR Example Sm.png


    Clicking on "Model" will display details and descriptions of the request body parameters, if available.

    7.1.0 APIv2 Swagger PUT LIR JSON Model Details.png
  5. Additional "Model" examples are available at the bottom of the page with additional descriptive information. 

    Click to expand...

     At the bottom of the page, click on "Models".

    7.1.0 APIv2 Swagger MODELs.png

    Then, click on the "Model" you wish to view. Some models may contain additional information that you can expand to view, such as valid values for a parameter. In the example below, the circled "array" will display valid RIR values. 

    7.1.0 Swagger APIv2 Models Expanded.png

Testing Endpoints

You may test queries in Swagger by using the "Try it out" button for any call. 

  1.  Navigate to the call that you want to try out.

  2.  Expand the call to view its details, then click the "Try it out" button.

    7.1.0 APIv2 Swagger GET LIR Try.png
  3. Input the desired parameters to test, and click "Execute".

    Click to expand...
    7.1.0 APIv2 Swagger GET LIR TryItOut Ex.png


    If the call is a method that uses a JSON request body, you will have the option to edit the body text in the "Example Value" box - when done, click "Execute".

    7.1.0 APIv2 Swagger PUT LIR Try body payload.png
  4. The example response will display under "Responses" after being executed.

    Click to expand...
    7.1.0 APIv2 Swagger GET LIR Try Response.png