API Keys
Operations for managing API keys including retrieving and editing API key configurations.
This endpoint retrieves an API key and its respective properties. Note: the 'roles' field refers to the 'pretty_name' attributes from the Roles APIs, not the unique role identifiers. For possible 'security_level' values, please refer to the enum documentation for 'SecurityLevel'.
Full API key ID
Successfully retrieved API key
Bad request for api key get call
Unauthorized access
Unauthorized access due to lack of sufficient permissions. This includes Instance Administrator privilege escalation errors: non-admin API keys cannot assign, modify, or delete entities that have the Instance Administrator role.
Internal server error. A unified status for API communication type errors.
GET /platform/iam/v1/api-key/{api_key_id} HTTP/1.1
Host: api-cortex.paloaltonetworks.com
Accept: */*
{
"data": {
"id": 123,
"creation_time": 1640024700241,
"created_by": "test user",
"user_name": "user_name",
"roles": [
"role 01"
],
"security_level": "standard",
"comment": "useful comment",
"expiration": 1640024700241
}
}This endpoint allows for the editing of an existing API key. For possible 'security_level' values, please refer to the enum documentation for 'SecurityLevel'.
Full API key ID
Request object for editing an existing API key
API key edited successfully
Bad request for api key edit call
Unauthorized access
Unauthorized access due to lack of sufficient permissions. This includes Instance Administrator privilege escalation errors: non-admin API keys cannot assign, modify, or delete entities that have the Instance Administrator role.
Internal server error. A unified status for API communication type errors.
PUT /platform/iam/v1/api-key/{api_key_id} HTTP/1.1
Host: api-cortex.paloaltonetworks.com
Content-Type: application/json
Accept: */*
Content-Length: 99
{
"request_data": {
"roles": [
"role_name_123"
],
"security_level": "standard",
"comment": "useful comment"
}
}{
"data": {
"message": "API key updated successfully"
}
}Last updated
Was this helpful?
