OVHcloud
Connect an OVHcloud account to mlab.sh with read-only API access: domains, DNS zones, IP blocks, dedicated servers, VPS and Public Cloud instances, synced every day.
The OVHcloud connector reads your account through the OVHcloud API, with an access you approve on the OVHcloud sign-in page. No API key to create, nothing to copy and paste.
Before you start
-
You need the OVHcloud account (NIC handle) that holds the services, or a user of that account allowed to create API accesses.
-
In mlab.sh, you need to be owner or admin of the organization, on the Team or Enterprise plan.
-
Each OVHcloud account is one connection. Several accounts? Connect each one.
-
Your account must be on OVHcloud Europe. OVHcloud runs three separate platforms, each with its own accounts; mlab.sh supports Europe today, Canada and the United States are coming soon:
Region You sign in to the Control Panel on In mlab.sh Europe www.ovh.com/manageroreu.ovhcloud.comAvailable Canada ca.ovhcloud.comComing soon United States us.ovhcloud.comComing soon Not sure? The address of the Control Panel you sign in to tells you which one.
Connect
Start from mlab.sh
In Inventory → Connections, click Connect an account and choose OVHcloud in the list. Give the
connection a name if you have several accounts (for example Production or Client hosting), keep the region
on Europe, and click Continue to OVHcloud.
An account belongs to one region only: an account on OVHcloud Canada or United States cannot be connected yet.
Sign in at OVHcloud
You are sent to the OVHcloud sign-in page of your region, on an ovh.com or ovhcloud.com address. Check the address before
you type your password: mlab.sh never asks for it. Sign in with the account that holds your services.
Choose the validity: Unlimited
OVHcloud asks how long the access stays valid. Choose Unlimited: monitoring is daily, and an access that expires stops the syncs (the connection then shows an error and you reconnect).
A limited validity (1 day, 1 month...) works until it expires, then every sync fails. You can revoke an unlimited access at any time, from mlab.sh or from OVHcloud.
Review the permissions and approve
The page reads Authorize mlab inventory sync app and lists the permissions requested (see
below): GET only on your inventory, plus one POST /auth/logout that lets mlab.sh
revoke its own access. It also shows where you will be sent back: an mlab.sh address. Click Authorize.
Back on mlab.sh
OVHcloud sends you back to mlab.sh, which checks the access is approved and read-only. The connection turns Active and the first sync starts within a minute.
Permissions requested
| Method | Path | Why |
|---|---|---|
GET | /auth/currentCredential | Check the access is approved and read-only |
GET | /domain | Your registered domains |
GET | /domain/zone, /domain/zone/* | Your DNS zones and their A, AAAA and CNAME records |
GET | /ip, /ip/* | Your IP blocks and where each one is routed |
GET | /dedicated/server, /dedicated/server/* | Your dedicated servers |
GET | /vps, /vps/* | Your VPS and their IPs |
GET | /cloud/project, /cloud/project/* | Your Public Cloud projects and instances |
POST | /auth/logout | Revoke this access itself when you disconnect from mlab.sh |
OVHcloud permissions are path prefixes: /cloud/project/* allows reading anything under your Public Cloud
projects. mlab.sh only reads the instances, and never calls a method other than GET, apart from
/auth/logout on disconnect.
Nothing else is requested: no billing, no contacts, no orders, no write access of any kind.
What is synced
| OVHcloud | In mlab.sh |
|---|---|
| Registered domains | Domain (registered) |
| DNS zones | Domain (DNS zone), with the records of the domain itself |
| A, AAAA, CNAME records of a zone | Subdomain, with its records (CNAME targets as full names) |
| IP blocks (dedicated, failover, cloud, load balancing...) | IP for a single address, IP block otherwise |
| Dedicated servers | Server, and its main IP |
| VPS | VPS, and its IPs |
| Public Cloud instances | Cloud instance, and its public IPs |
The sync runs every 24 hours. In the connection page, Sync now starts one within a minute.
Troubleshooting
| What the connection shows | What to do |
|---|---|
| The OVH access is pendingValidation (not approved yet?) | The approval was not finished at OVHcloud. Click Connect again. |
| OVH 403 ... This credential is not valid | The access expired or was revoked at OVHcloud. Disconnect and connect again, with Unlimited validity. |
| The OVHcloud sign-in refuses your account | Your account is probably on OVHcloud Canada or United States, not supported yet. |
| OVH 403 ... This call has not been granted | The access was approved with fewer permissions than requested. Connect again and approve the full list. |
| The provider listed nothing while N assets were present | The account suddenly lists nothing, which mlab.sh refuses to apply. Check the account in the OVHcloud Control Panel, then Sync now. |
Revoke from OVHcloud
Disconnecting from mlab.sh revokes the access at OVHcloud. To check or do it yourself from the OVHcloud side:
List your API accesses
In the OVHcloud API console, sign in and call
GET /me/api/credential. Each access has an id; the one used by mlab.sh belongs to the application
connect.mlab.sh (described as mlab inventory sync app, the name shown on the approval page).
Delete it
Call DELETE /me/api/credential/{credentialId} with that id. The next mlab.sh sync fails and the connection
shows the error.