CreateServiceAccountKey
Creates a service account key.
/api/org/v1/service-accounts/{sa}/keys
Path Parameters
sa
requiredA service account ID.
- Schema
ResourceId
- Type
string
- Minimum Length 1
- Maximum Length 20
- Pattern
^[A-Z0-9]+$
- Schema
Query Parameters
This operation does not have query parameters.
Request Body
- Schema
ServiceAccountKeySpec
- Type
object
- Properties
expiresAt
optionalThe time when the service account key should expire.
- Type
string
- Format
date-time
- Type
Responses
201 Response
The service account key was created successfully.
- Schema
ServiceAccountKey
- Type
object
- Properties
expiresAt
optionalThe time when the service account key expires.
- Type
string
- Format
date-time
- Type
key
requiredThe service account key.
- Type
string
- Type
createdAt
requiredThe time when the service account key was created.
- Type
string
- Format
date-time
- Type
updatedAt
requiredThe time when the service account key was last updated.
- Type
string
- Format
date-time
- Type
400 Response
The requested operation cannot be performed because the request is malformed.
- Schema
Error
- Type
object
- Properties
message
requiredAn error message.
- Type
string
- Type
401 Response
The requested operation cannot be performed because the request lacks valid authentication credentials.
- Schema
Error
- Type
object
- Properties
message
requiredAn error message.
- Type
string
- Type
403 Response
The identity is not allowed to perform the requested operation for the resource involved.
- Schema
Error
- Type
object
- Properties
message
requiredAn error message.
- Type
string
- Type
404 Response
The resource or dependent resources involved in the requested operation do not exist.
- Schema
Error
- Type
object
- Properties
message
requiredAn error message.
- Type
string
- Type
Default Response
The requested operation failed with an error.
- Schema
Error
- Type
object
- Properties
message
requiredAn error message.
- Type
string
- Type