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
- Go to https://api.ovh.com/createToken/
- Log in with your OVH account
- 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
- GET, POST, PUT, DELETE on
- Click Create Keys
- Save the Application Key, Application Secret, and Consumer Key
2
Get your project ID
- Log in to the OVH Control Panel
- Go to Public Cloud → select your project
- Copy the Project ID from the dashboard URL or project settings
3
Add them to Ankra
- Portal
- CLI
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
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.
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.