API Key

API keys are credentials for programmatic access to Exoscale APIs and services.

Read more

create-api-key

Create a new API key

POST /api-key

null

Request body

Content-Type: application/json

PropertyTypeRequiredDescription
namestringyesIAM API Key Name
role-idstringyesIAM API Key Role ID
Example
{
  "name": "string",
  "role-id": "string"
}

Responses

Status: 200 - 200

Content-Type: application/json

PropertyTypeDescription
keystringIAM API Key
namestringIAM API Key name
role-idstringIAM API Key Role ID
secretstringIAM API Key Secret
Example output
{
  "key": "string",
  "name": "string",
  "role-id": "string",
  "secret": "string"
}

SDK reference for create-api-key: golang | Python | Java

CLI: exo api create-api-key

get-api-key

Get API key

GET /api-key/{id}

null

Path parameters

NameInDescription
idpath

Responses

Status: 200 - 200

Content-Type: application/json

PropertyTypeDescription
keystringIAM API Key
namestringIAM API Key name
role-idstringIAM API Key Role ID
Example output
{
  "key": "string",
  "name": "string",
  "role-id": "string"
}

SDK reference for get-api-key: golang | Python | Java

CLI: exo api get-api-key

delete-api-key

Delete an API key

DELETE /api-key/{id}

null

Path parameters

NameInDescription
idpath

Responses

Status: 200 - 200

Content-Type: application/json

PropertyTypeDescription
idstringOperation ID
messagestringOperation message
reasonstringOperation failure reason

Allowed values: incorrect, unknown, unavailable, forbidden, busy, fault, partial, not-found, interrupted, unsupported, conflict.
referenceobjectRelated resource reference schema details
statestringOperation status

Allowed values: failure, pending, success, timeout.
Example output
{
  "id": "string",
  "message": "string",
  "reason": "incorrect",
  "reference": {
    "command": "string",
    "id": "string",
    "link": "string"
  },
  "state": "failure"
}

SDK reference for delete-api-key: golang | Python | Java

CLI: exo api delete-api-key


Other Operations

list-api-keys

List API keys

GET /api-key

null

Responses

Status: 200 - 200

Content-Type: application/json

PropertyTypeDescription
api-keysarray[object]schema details
Example output
{
  "api-keys": [
    {
      "key": "string",
      "name": "string",
      "role-id": "string"
    }
  ]
}

SDK reference for list-api-keys: golang | Python | Java

CLI: exo api list-api-keys

Last updated on