Create new credentials for a database
POST /databases/{databaseId}/credentials
Create a new API key for a database.
Supports read
, write
, read-write
privileges for CORE databases. Defaults to read-write
.
Authorizations
Parameters
Path Parameters
A database ID.
Request Body
Create database credentials request
object
A list of privileges granted to these credentials
Password to be used for these credentials
Responses
201
New database credentials. Note: This is the only time the password is returned. If the password is lost new credentials should be generated.
Response Headers
ID uniquely identifying the request/response cycle.
Response Schema
object
Unique identifier for this resource within Aerospike Cloud
A list of privileges granted to these credentials
The status of a user credential
Timestamp when the resource was created
Password to be used for these credentials
Example
{
"roles": [
400
Invalid input
Response Headers
ID uniquely identifying the request/response cycle.
Response Schema
Generic API error
object
Unique (system-wide) error code for an error happened
Developer-friendly message explaining error
Example
{
401
Access token is missing or invalid
Response Headers
ID uniquely identifying the request/response cycle.
Response Schema
Generic API error
object
Unique (system-wide) error code for an error happened
Developer-friendly message explaining error
Example
{
403
Permission denied
Response Headers
ID uniquely identifying the request/response cycle.
Response Schema
Generic API error
object
Unique (system-wide) error code for an error happened
Developer-friendly message explaining error
Example
{
500
Internal Server Error
Response Headers
ID uniquely identifying the request/response cycle.
Response Schema
Generic API error
object
Unique (system-wide) error code for an error happened
Developer-friendly message explaining error