Prisma Cloud: How to get the Subscriptions Page Information via API
Objective
How to access information provided in Prisma Cloud UI’s Subscriptions page via API
Subscriptions page location: User image(top right) > View Subscriptions
Environment
- Prisma Cloud
- Subscriptions
Procedure
API URL for subscriptions(features) status:
Steps
- Make the API call on Postman once you have your Prisma Cloud Postman collection installed.
https://<api-endpoint>/api/v1/provision/tenants/<Prisma ID>/features
Feature names on Prisma UI are not the same as the feature names in the API response.
Here is the list of correlating feature names.
UI Add-On Features > "feature_name" (API response field):
IAM security > "iam-security" Code security > "bridgecrew" Discovery and Exposure Management > "asm" Data Security > "pcn" Microsegmentation > "compute"
- (Optional API call) URL for day(s) remaining and other license info:
https://{{api-endpoint}}/license
Additional Information
The API call only returns the information(records) of previously activated subscriptions, whether or not they are presently enabled.
Scenario: If data security was never enabled then it will not appear in the API response. Only previously enabled features will be listed. For example, only the json object for iam-security will have a key-val pair of “enabled”: ”true”.
Note: You do not need the Postman collection to make this API call. Refer to the API docs for making this call from scratch.