Add Access Key
POST/access_keys
Adds a new access key for the current user. If you have API access, you can create up to two access keys.
If you want to create an access key for an existing Prisma Cloud service account instead of for the current user, then specify the name of the existing service account as the value for the request body parameter serviceAccountName.
Request
- application/json
Body
required
Model for user access key
expiresOn int64
Timestamp in milliseconds when access key expires
name stringrequired
Access key name
serviceAccountName string
Service account name
Responses
- 200
- 400
- 403
- 409
successful operation
- application/json
- Schema
- Example (from schema)
Schema
id string
Access key ID
secretKey string
Access key secret
{
"id": "string",
"secretKey": "string"
}
invalid_expiry_access_key / already_have_two_access_keys / invalid_access_key_name_length / invalid_access_key_name
unauthorized_to_use_access_keys
duplicate_access_key_name
Loading...