Skip to main content
OVH API credentials store an OVHcloud application key, application secret, consumer key, and Public Cloud project ID, used to provision and manage self-managed OVH clusters and OVHcloud Managed Kubernetes (MKS). The credentials are validated when you save them - Ankra makes a signed read-only call to the OVH API (GET /cloud/project/{project_id}/region), so invalid keys or a consumer key without cloud-project rights are refused immediately.

What Ankra Accesses

All calls are scoped to your Public Cloud project (/cloud/project/{project_id}/...) on the OVH EU API endpoint (eu.api.ovh.com). One credential covers both cluster types. For self-managed OVH clusters, Ankra provisions the infrastructure directly: For OVHcloud MKS, Ankra uses the managed Kubernetes API instead:

Creating OVH API Credentials

1

Generate OVH API credentials

  1. Go to https://api.ovh.com/createToken/
  2. Log in with your OVH account
  3. Set the following access rules - these are exactly what the validation checks and the tables above use:
    • GET, POST, PUT, DELETE on /cloud/project/*
    • GET on /cloud/project
  4. Click Create Keys
  5. Save the Application Key, Application Secret, and Consumer Key
2

Get your project ID

  1. Log in to the OVH Control Panel
  2. Go to Public Cloud → select your project
  3. Copy the Project ID from the dashboard URL or project settings
3

Add them to Ankra

Go to Integrations & alerts → Credentials, click Add credential, and under Cloud providers choose OVHcloud. Enter:
  • Name: 3 to 100 lowercase letters, digits and single hyphens (for example ovh-prod). It cannot change later.
  • Application key, Application secret, Consumer key: the keys from step 1
  • Project ID: from step 2
Click Test the connection. You see The connection works. Then click Add credential; the credential’s page opens.
For self-managed OVH clusters you also need an SSH key credential.
You can replace the application key, application secret and consumer key later under Settings & access → Replace the secret (see Replace the secret); leave a field empty to keep what is stored for it. The Project ID is fixed - to target a different Public Cloud project, create a new credential.
You need a role with credentials.write to add or replace the credential (the built-in owner and admin roles have it). See Credentials.

Listing OVH Credentials

Troubleshooting OVH Credentials

These are the answers Test the connection and Check now give: Saving without testing runs the same validation and reports the same causes - for a permissions failure the save error spells out the exact access rules to regenerate with. Consumer keys can also expire if you set a validity period at creation. If a credential that used to work starts failing with rejected keys, regenerate at api.ovh.com/createToken (with unlimited validity if your policy allows) and replace the three keys on the credential’s page.