SASE Licensing APIs
Getting Started
Accessing the API
The API is accessible over HTTPS via the /api/sase-licensing/v1 URL base path on Licensing server.
Unless otherwise noted, readers should interpret all URL paths that appear in this document as relative paths, to which the /api/sase-licensing/v1 base path must be prepended in order to produce complete, valid URL paths. For example, to fetch a collection of Subscription units, a Licensing Admin would make an HTTP GET call to the /api/sase-licensing/v1/subscriptionUnits endpoint.
Authentication
An API token is required to access the API. Users should treat API tokens as highly sensitive, just as they would treat their password. The API server looks for API tokens on incoming requests in an HTTP Authorization header which specifies the Token authentication scheme. That is to say, a well-formed Authorization header containing an API token looks like: Authorization: Token <token>. To generate such token you need to make GET request to /auth/generateToken
Main workflows
Find unassigned/available subscription licenses, assign edges to those licenses
Make GET request to
/subscriptionUnits. Unassigned subscription licenses haveedgeAssignmentStatusset toUNASSIGNEDMake GET request to
/vcoEdges. Available Edges havelicenseAssignmentStatusset toUNASSIGNEDMake POST request to
/subscriptionAssignments/batchto assign subscription licenses to Edges
Pull report of unassigned edges
Make POST request to
/reportsto generate aEXCESS_EDGE_DEPLOYMENTSreport (templateId= 4).Make GET request to
/reportswith report'slogicalIdto retrieve a report entity. When report generation will be finished -statusfield will have valueCOMPLETEDandurlfield will contain the link for report download.
Pull report of subscription licenses expiring in the next 1 year
Make POST request to
/reportsto generate aEXPIRING_SUBSCRIPTIONSreport (templateId= 1).Make GET request to
/reportswith report'slogicalIdto retrieve a report entity.
Pull report of shipped edges but not deployed
Make POST request to
/reportsto generate aACTIVATED_EDGESreport (templateId= 5).Make GET request to
/reportswith report'slogicalIdto retrieve a report entity.
Pull report of subscriptions that are not in use
Make POST request to
/reportsto generateUNUSED_SUBSCRIPTIONSreport (templateId= 3).Make GET request to
/reportswith report'slogicalIdto retrieve a report entity.
Pull alerts on expiring subscriptions
- We do not have api to pull specific alerts. Make GET
/subscriptionAlertsrequest to pull all alerts related to specific customer