Skip to main content

eligibility_tests

Creates, updates, deletes, gets or lists an eligibility_tests resource.

Overview​

Nameeligibility_tests
TypeResource
Idovh.connectivity.eligibility_tests

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
eligibility_referencestringEligibility unique reference (wire: eligibilityReference)
endpointobjectEndpoint information
offersarrayOffers information

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselecteligibility_referenceReturns the result of an eligibility test from its reference: the tested endpoint (address, copper or fiber details, portability) and the offers with their eligibility, estimated rates and reasons when not eligible.
addressexecStarts an eligibility test on an address, given by its street code and street number or by its Hexacle. Get them with the search/streets and search/streetNumbers/details calls. Returns an asynchronous task, pending until its result holds the eligibility reference, the endpoint and the eligible offers.
address_partnersexecStarts an eligibility test on an address, given by its street code and street number or by its Hexacle. Reserved for partners. Returns an asynchronous task, pending until its result holds the eligibility reference, the endpoint and the eligible offers.
buildingexecbuildingStarts an eligibility test on a building, for fiber only. Get the building identifier with the search/buildings calls. Set productFamily to scope the test (ISP by default). Returns an asynchronous task, pending until its result holds the eligibility reference, the endpoint and the eligible offers.
building_partnersexecbuildingStarts an eligibility test on a building, for fiber only. Reserved for partners. Get the building identifier with the search/buildings calls. Returns an asynchronous task, pending until its result holds the eligibility reference, the endpoint and the eligible offers.
lineexeclineNumber, statusStarts an eligibility test on a line number, for copper only. Returns an asynchronous task, pending until its result holds the eligibility reference, the endpoint and the eligible offers.
line_partnersexeclineNumber, statusStarts an eligibility test on a line number, for copper only. Reserved for partners. Returns an asynchronous task, pending until its result holds the eligibility reference, the endpoint and the eligible offers.
otpexecotpStarts an eligibility test on an Optical Termination Panel (OTP) identifier, for fiber only. Returns an asynchronous task, pending until its result holds the eligibility reference, the endpoint and the eligible offers.
otp_partnersexecotpStarts an eligibility test on an Optical Termination Panel (OTP) identifier, for fiber only. Reserved for partners. Returns an asynchronous task, pending until its result holds the eligibility reference, the endpoint and the eligible offers.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
eligibility_referencestringEligibility reference (wire: eligibilityReference)

SELECT examples​

Returns the result of an eligibility test from its reference: the tested endpoint (address, copper or fiber details, portability) and the offers with their eligibility, estimated rates and reasons when not eligible.

SELECT
eligibility_reference,
endpoint,
offers
FROM ovh.connectivity.eligibility_tests
WHERE eligibility_reference = '{{ eligibility_reference }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Starts an eligibility test on an address, given by its street code and street number or by its Hexacle. Get them with the search/streets and search/streetNumbers/details calls. Returns an asynchronous task, pending until its result holds the eligibility reference, the endpoint and the eligible offers.

EXEC ovh.connectivity.eligibility_tests.address
@@json=
'{
"hexacle": "{{ hexacle }}",
"productFamily": "{{ productFamily }}",
"streetAltCode": "{{ streetAltCode }}",
"streetCode": "{{ streetCode }}",
"streetNumber": "{{ streetNumber }}"
}'
;