Get Prisma Cloud Compute License
GET/api/v33.01/settings/license
x-prisma-cloud-target-env: {"permission":"accessUI"}
Returns the details about the installed license.
cURL Request
Refer to the following example cURL request that retrieves the license details.
$ curl -k \
-u <USER> \
-H 'Content-Type: application/json' \
-X GET \
"https://<CONSOLE>/api/v<VERSION>/settings/license"
Responses
- 200
- default
License represent the customer license
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
AccessToken is the customer access token.
ContractID is the customer contract ID.
Possible values: [,host,avg,burndown
]
LicenseContractType is the license contract type
Credits the total amount of credits purchased by the customer.
CustomerID is the customer ID.
defender_details object[]
DefenderDetails represents the defenders license details.
Possible values: [container,host,serverless,appEmbedded,hostAgentless,containerAgentless
]
Category represents the defender target category
Count is the amount of licensed defenders.
Deprecated: Defenders is the maximum number of defender allowed in this license. Use DefenderDetails field instead.
ExpirationDate is the license expiration date.
IssueDate is the license issue date.
Possible values: [,developer,enterprise,evaluation,oem
]
LicenseTier represents the license tier of the customer
Deprecated: Workloads is the number of workloads per license kept for backward compatibility. Use Credits instead.
{
"access_token": "string",
"contract_id": "string",
"contract_type": [
"",
"host",
"avg",
"burndown"
],
"credits": 0,
"customer_id": "string",
"defender_details": [
{
"category": [
"container",
"host",
"serverless",
"appEmbedded",
"hostAgentless",
"containerAgentless"
],
"count": 0
}
],
"defenders": 0,
"expiration_date": "2024-07-29T15:51:28.071Z",
"issue_date": "2024-07-29T15:51:28.071Z",
"type": [
"",
"developer",
"enterprise",
"evaluation",
"oem"
],
"workloads": 0
}