Skip to main content

OVH

The four fields OVH auth needs:

Field What it is
OVH_APPLICATION_KEY The target customer's OVH application key
OVH_APPLICATION_SECRET The target customer's OVH application secret
OVH_CONSUMER_KEY A consumer key authorized against that customer's OVH account/project
OVH_PROJECT That customer's OVH Public Cloud project ID

Creating application key/secret and consumer key

Project ID

The OVH Public Cloud project ID (OVH_PROJECT) is visible in the OVH Control Panel under Public Cloud → [project name] — it's the ID shown in the URL (/public-cloud/projects/<project-id>/...) and in the project settings page, not the human-readable project name.

Application key + secret

  1. Log into the OVH account the credentials belong to.

  2. Go to https://api.ovh.com/createToken/ (or api.us.ovhcloud.com / api.ca.ovh.com for other endpoints) while logged into that account.

  3. Fill in:

    • Application name: something identifying this integration, e.g. elemento-meson.

    • Application description: free text.

    • Validity: leave as unlimited unless you specifically want the token to expire.

    • Rights: this form also mints a consumer key in one step (see below), so set the rights here rather than as a separate step.

      Method Path
      GET /cloud/project/{serviceName}/capabilities/kube/flavors
      GET, POST, DELETE /cloud/project/{serviceName}/kube
      GET, POST, DELETE /cloud/project/{serviceName}/kube/*
      GET, POST /cloud/project/{serviceName}/network/private
      GET /cloud/project/{serviceName}/network/private/*
      GET, POST, DELETE /cloud/project/{serviceName}/region/*/gateway
      GET, DELETE /cloud/project/{serviceName}/region/*/gateway/*
      GET /cloud/project/{serviceName}/operation/*

      If that's more granular than you need to manage, the simpler equivalent is just GET, POST, PUT, DELETE on /cloud/project/{serviceName}/*.

  4. Submit. OVH returns the Application Key, Application Secret and Consumer Key once — copy both immediately, the secret isn't shown again.

  5. After submitting, OVH sends a validation URL (by email, or shown inline depending on flow) — the consumer key is not usable until validated. Visit that URL and confirm while logged into the account the key was created for.