Summary
When your client application performs a capability exchange using the CMAPI, it uses the POST method on either of /access_request or /signed_access_request REST APIs to send a capability request in JSON format to the license server to obtain licenses for the requesting enterprise client.
In this example, we use /access_request API to obtain licenses
Step 1. Create Public/Private Key Pair
- A Private and Public key are required to use the REST-driven licensing APIs (CMAPI)
- Many publicly available tools, one example below:
- Download and Install OpenSSL “Light” for Windows @ https://slproweb.com/products/Win32OpenSSL.html
- Open command prompt in C:\Program Files\OpenSSL-Win64\bin (or OpenSSL installed location)
- Run the following commands:
openssl genrsa -out SaaSDemoPrivate.pem 2048
openssl rsa -inform PEM -outform DER -in SaaSDemoPrivate.pem -pubout-out SaaSDemoPublic.der
- It Generates:
- Private Key:
SaaSDemoPrivate.pem - Public Key:
SaaSDemoPublic.der
- Private Key:
will be created in C:\Program Files\OpenSSL-Win64\bin
Step 2: Get CLS Authorization Token
- In the Customer Portal set the admin password on target Cloud Server (CLS). The Producer password (for all Cloud Servers) can also be used
- Use /authorize REST endpoint to get the authorization token
Documentation Reference: License Server Producer Guide
Step 3: Upload Public Key to Customer CLS Instance using /rest_licensing_keys
- Add Authorization with token generated from step 2
- Add Body - Attach
SaaSDemoPublic.derPublic Key fromC:\Program Files\OpenSSL-Win64\bin
- Add Content-Type: application/octet stream to Headers
- Send POST to rest_licensing_keys endpoint. Status should be “200 OK” and then we will get Public key with a successful upload.
Step 4. Create JSON Web Token (JWT) from Private Key
- JWT Creation example we can use online tools such as https://jwt.io/ are readily available.
- Select the RS256 Algorithm and enter the following Payload Data:
{
"sub": "1234567890",
"roles": "ROLE_CAPABILITY"
}
- Copy contents of
SaaSDemoPrivate.pemfromC:\Program Files\OpenSSL-Win64\bininto the Verify Signature Private Key Section
- Copy Public key from Step 3 and paste it below “Begin Public key” line, then we will get J W T Token on the left side like below
Step 5. Request User License using /access_request
- Add the newly created JWT token to the Header
- Create the desired license request in the Body, for an example request under raw section
{
"hostId" : {
"type" : "string",
"value" : " Access_Request"
},
"incremental" : true,
"borrow-interval" : "0",
"partial" : true,
"features" : [
{
"count" : 1,
"name" : "0000Test",
"version" : "1"
},
{
"count" : 1,
"name" : "ManiDemoFeature",
"version" : "1.0"
}
]
}
- Send the POST request (/access_request) and view the response for the above request with two features and one count for each.
- Find the response below with status: 200 OK
- Served Device Details can then be viewed in the Producer/Customer Portals:
- In this example Served device ID = Access_Request
- We can see the requested features with the number of counts for each.
Step6: View Available Licenses in the CLS
- One method to see all licenses (with available quantities) is to use /preview_request endpoint. The /features endpoint can also be used (verbose). Sample request for preview
{
"hostId": {
"type": "string",
"value": "Client1"
},
"selectorsDictionary": {}
}
- Preview response contains available count “count” and Maximum Entitled count “maxCount” for each feature, find the attached preview_request.png.
NOTE: I have also attached as document formate for your reference.
Related Articles
Fix API endpoint configuration issues between Snow Inventory Server and Snow License Manager 372Number of Views How to Enable Cloud Monetization API Functionality on FlexNet Operations Cloud LLM 24Number of Views Cloud Service Provider setting cannot be set on Oracle Application User License licenses using the web UI 5Number of Views Oracle Cloud Infrastructure (OCI) adapter may fail with error when calling OCI API endpoints: "Too many requests for the u… 6Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago