Connectivity API
Objective
This guide is designed to help developers use our APIs to create their own applications.
Requirements
- An active OVHcloud account, and your login details.
- Access to the OVHcloud API webpage.
- Read our Getting started with OVHcloud APIs guide to get started using OVHcloud APIv6.
Instructions
Internet offers
OVHcloud offers various internet access packages that contain at least one internet access but also VoIP lines, emails and domain names.
You can view offers here.
Services can be managed using these API endpoints:
/pack/xdsl: Manage Internet package offerings./xdsl: Manage Internet access, sub-services and options./connectivity: will replace/xdsl. For now it allows to do the eligibility for copper and fiber offers.
Eligibility
Overview
Eligibility methods are available on the endpoint path /connectivity/eligibility/.
The objective of eligibility is to resend eligible internet offers for a given endpoint (delivery point), in order to order this offer. An endpoint can be an existing address or line, identified by the line number and its status (active or inactive).
Methods return an asynchronous xdsl.AsyncTask structure, such as:
{
"status": a string, the status of the task ("pending", "done" or "error")
"result": an object, in case of success, the method result
"error": a string, the error message in case of an error
}
Here is an example of a pending task:
A successful example task:
And finally an example of a failed task:
You should check the status of the task, and try again a few seconds later if the task is still in the "pending" status.
Finding the endpoints
For a copper line, the endpoint is a line identified by its number and status. If no line exists, you will need to test by address to see if you are eligible to create a neighbouring line..
For fiber, the endpoint can be identified by a building identifier, or an OTP (Optical Termination Point) identifier.
An address is identified by a street number and a street code. To find them, use this process:
- Get the list of localities from a zip code
- Get the list of streets for a locality
- Get the available street numbers for a given street code
- Get the list of buildings for an address
- Get the list of buildings for a specific line
Getting a list of localities from a zip code
Example: we want to search the localities for the zipCode "91400".
The request:
with the following data:
The response:
Getting the list of streets for a locality
Example: We want to obtain the list of streets of the locality "ORSAY" identified by the INSEE code "91471".
The request:
with the following data:
The response:
Getting the available street numbers for a given street code
Example: we want the street numbers for the street "RUE DU VERGER" identified by the streetCode "9147132200".
The request:
with the following data:
The response:
Getting all buildings for a specific address
Example: we want the list of buildings for the address "2 RUE DU VERGER, 91400 ORSAY", identified by streetCode "9147132200" and streetNumber "2".
The request:
with the following data:
The response:
**Getting the building references from a given line number
Example: we want the list of buildings for the inactive line number "0123456789".
The request:
with the following data:
The response:
We found a single building that is a house.
Doing a copper eligibility (ADSL or VDSL)
Possible cases are:
- I know the line number, I'll use it for eligibility
- I do not know the line number, I'll have to look it up first
- I do not have a line number, I will have to request a line creation from a neighbour line
Doing an eligibility on a line
If you known the number and status of the line then you can check its eligibility. The diffence between an active and an inactive line is that an active line has an active Internet access, whereas the inactive line is just an identifier to use to order an Internet access (usually this is the previous number of the last owner, who moved with his line).
It is important to distinguish an active line from an inactive line. Always verify that the address returned is the actual address of the installation.
Here is the request:
to do with the following POST data:
Here is a partial successfull response example:
The response is composed of:
- a result.offers table that will list all the offers and if the given line is eligible or not;
- a result.endpoint structure that gives line information: address and characteristics.
Here is a description of the offer codes:
| code | type | description |
|---|---|---|
| ADSL-MAX_SHARED | ADSL | ADSL partial |
| ADSL-MAX_FULL | ADSL | ADSL full unbundling |
| VDSL-MAX_SHARED | VDSL | VDSL partial |
| VDSL-MAX_FULL | VDSL | VDSL full unbundling |
Searching for an active or inactive line for an address
The request:
with the following POST data:
The response:
For this address we found a single inactive line with the number 0123456789.
You can now use the eligibility by line.
Unlisted numbers cannot be retrieved using this method.
**Searching for eligibility for an address
This will return an eligibility by address, to be used for the creation of a neighbouring line. A neigbouring line creation consists in checking the availability of new copper lines by searching for your nearest neighbour line information.
If you already have an active or inactive line, you should use the line test instead.
The request:
with the following data:
The response:
Searching fiber eligibility (FTTH)
For fiber eligibility, we have two scenarios:
- I have an Optical Termination Point (OTP) fiber ID, which I will use for eligibility;
- I do not have an OTP fiber identifier and will use a building identifier for the eligibility.
A building can be a house or a building with multiple housing. The building can be found from an address or from an existing copper line.
The eligibility process from an address is as follows:
- Getting the list of localities from a zip code
- Getting the list of streets for a locality
- Getting the available street numbers for a given street code
- Getting all buildings for a specific address
- Searching eligibility for the selected building
From one line, we have to:
For an OTP, this is the simpliest:
Here are the details for each type of requests.
Searching eligibility on a building
Example: we want to check the eligibility of FTTH offers for the building identified by the reference "IMB/91471/C/NT8X".
The request:
with the following data:
The response:
In the result for the "offers" table, the boolean attribute eligibility.eligible tell us we are eligible for "PRO FIBER with 1G download and 800M upload" offer.
Searching eligibility from an OTP identifier
Example: we want to check FTTH offers eligibility for the OTP "OO-XXXX-XXXX/C".
The request:
with the following data:
The response is the same as in the previous example.
Go further
Join our community of users.