Get Credential Usages
GET/api/v32.07/credentials/:id/usages
x-prisma-cloud-target-env: {"permission":"manageCreds"}
Retrieves all usages for a specific credential in the credential store.
To invoke this endpoint in the Console UI:
- Navigate to Manage > Authentication > Credential Store.
- From the table, find the row of the credential you want to update and click the dotted icon under the Actions column.
- Click the Manage button.
- The Usage table displays the data from this endpoint.
cURL Request
Refer to the following cURL command that retrieves all usages for a credential:
$ curl -k \
-u <USER> \
-H 'Content-Type: application/json' \
-X GET \
https://<CONSOLE>/api/v<VERSION>/credentials/{id}/usages
A successful response returns a list of all usages for the credential.
Request
Path Parameters
id stringrequired
Responses
- 200
- default
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
description string
Resource description (e.g., repository name for registry scan).
type cred.UsageType (string)
Possible values: [Alert settings,Alert profile,Registry Scan,Serverless Scan,Cloud Scan,Secret Store,Serverless Auto-Deploy,Host Auto-deploy,VM Scan,Agentless Scan Hub,Custom Intelligence Endpoint,VMware Tanzu blobstore Scan,Kubernetes Audit settings,Agentless app firewall
]
UsageType represents the credential usage type
[
{
"description": "string",
"type": [
"Alert settings",
"Alert profile",
"Registry Scan",
"Serverless Scan",
"Cloud Scan",
"Secret Store",
"Serverless Auto-Deploy",
"Host Auto-deploy",
"VM Scan",
"Agentless Scan Hub",
"Custom Intelligence Endpoint",
"VMware Tanzu blobstore Scan",
"Kubernetes Audit settings",
"Agentless app firewall"
]
}
]
Loading...