banshee/cloud-collection/cloud/ovh/https/
domains
The days before expiry, the renewal and the service status of each OVHcloud domain name of an account, by the OVHcloud API.
par banshee0 installation1 version
v1Dernière
Publiée le 27 octobre 2026. First version.
OVHcloud domain names, by the OVHcloud API
Returns, for each domain name of an OVHcloud account, the days left before it expires, how it is renewed, and the status of its service, read through the OVHcloud API with an application's keys that may only read. Four watches are offered, each one set on the probe.
Versions
Generic: the OVHcloud API is the same in its three places, Europe (eu.api.ovh.com), Canada (ca.api.ovh.com) and the United States (api.us.ovhcloud.com), version 1.0. The address is that of protocol:ovh:endpoint, where the keys were created.
How it works
Every request is a GET to <protocol:ovh:endpoint><path>, signed by ovh.sign.
GET /domain: the domain names of the account,["example.com", …].- For each domain,
GET /domain/<name>/serviceInfos, the service that bills it:
{"domain": "example.com", "expiration": "2027-03-14", "status": "ok", "renew": {"automatic": true, "deleteAtExpiration": false, "forced": false, "manualPayment": false, "period": 12}, …} days-leftis the time from now toexpiration, in days, to the tenth.expirationis a date without a time: it is read as midnight UTC that day.renewalisdelete-at-expirationwhenrenew.deleteAtExpirationis true,automaticwhenrenew.automaticis true,manualotherwise, andunknownwhen OVHcloud gives norenew(it may be null).statusisstatus:ok,autorenewInProgress,inCreation,expired,unPaidorpendingDebt.- An address of the API not written
https://<host>/<version>stops the collectormisconfiguredbefore anything leaves. - A code 401 (keys wrong, expired or revoked, or the poller's clock off) or 403 (the consumer key not allowed the route) stops the collector
misconfigured; a code 400 or 404 too; any other code but 200 stops itunreachable.
The keys come from protocol:ovh: the application secret never leaves the poller, only the signature it makes; the consumer key goes in a header, to the API only, in HTTPS. The answers are not secret.
Prerequisites
- An application created on the API of the account's place, and a consumer key whose access rules allow these routes and nothing else:
{
"accessRules": [
{ "method": "GET", "path": "/domain" },
{ "method": "GET", "path": "/domain/*" }
]
} The application key goes in protocol:ovh:application-key, its secret in protocol:ovh:application-secret, the consumer key in protocol:ovh:consumer-key, the address of the API in protocol:ovh:endpoint, https://eu.api.ovh.com/1.0. With an IAM policy of OVHcloud instead, the actions are domain:apiovh:get and domain:apiovh:serviceInfos/get.
- The poller reaches the API in HTTPS, and its clock is right: OVHcloud refuses a signature too far from its own time. The certificates of OVHcloud are issued by public authorities: the profile "Standard" trusts them.
Variables
The collector declares none of its own: it reads protocol:ovh and protocol:ovh:endpoint.
Outputs
| Name | Label | Unit | Per instance |
|---|---|---|---|
days-left | Before expiry | d | yes, per domain |
renewal | Renewal | — | yes, per domain |
status | Service status | — | yes, per domain |
Watches
| Name | Title | Kind | Defaults | Checked by default |
|---|---|---|---|---|
expiring | Domain expiring | below a threshold, on days-left | warning under 30 days, critical under 7: a domain renewed automatically renews before | yes |
not-renewed | Domain deleted at expiry | state to avoid, on renewal | warning on delete-at-expiration | yes |
service | Domain service unpaid or expired | state to avoid, on status | critical on expired, unPaid, pendingDebt | yes |
missing | Domain missing | expected instances, on days-left | no name given: it raises nothing until names are set on the probe | no |
A domain left to expire on purpose is left out by the selection of the probe.
Limits
- One call per domain each run, beside the list.
- The days are counted from midnight UTC of the expiry date, which OVHcloud gives without a time nor a zone: a few hours off at most.
- Not checked against an OVHcloud account: the routes, their fields and their values are those of the schema the OVHcloud API publishes for itself (
/1.0/domain.json:services.Service,service.RenewType,service.StateEnum), which its console shows; the date written2027-03-14is the form of its typedate, not seen in an answer.