Skip to main content

portabilities

Creates, updates, deletes, gets or lists a portabilities resource.

Overview​

Nameportabilities
TypeResource
Idovh.telephony.portabilities

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerThe ID of the portability
order_idintegerThe ID of the portability order (wire: orderId)
billing_accountstringThe billing account where the numbers will be inserted (wire: billingAccount)
creation_datestring (date-time)The portability's creation date (wire: creationDate)
customer_infosobjectCustomer informations about this portability (wire: customerInfos)
desired_execution_datestring (date-time)The date when the portability will be done and when numbers will be ported (wire: desiredExecutionDate)
errorbooleanIndicates that portability is in error
error_codesarrayCodes representing the error in current portability (wire: errorCodes)
line_to_redirect_tostringShow the redirection that will be configured when the portability will be done (wire: lineToRedirectTo)
numbers_listarrayThe list of numbers that is going to be ported (wire: numbersList)
operatorstringThe operator that currently holds the numbers
portability_countrystringCountry that defines the portability kind (belgium, france, switzerland) (wire: portabilityCountry)
riostringRIO of the portability (France only)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, idGet a number porting
listselectbilling_accountx_pagination_modeList number portings
cancelexecbillingAccount, idCancel the porting
change_dateexecbillingAccount, id, dateChange the porting date
executeexecbillingAccount, idExecute the porting

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"}})
billingAccountstringThe name of your billingAccount
billing_accountstringThe name of your billingAccount (wire: billingAccount)
idintegerThe ID of the portability
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get a number porting

SELECT
id,
order_id,
billing_account,
creation_date,
customer_infos,
desired_execution_date,
error,
error_codes,
line_to_redirect_to,
numbers_list,
operator,
portability_country,
rio
FROM ovh.telephony.portabilities
WHERE billing_account = '{{ billing_account }}' -- required
AND id = '{{ id }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Cancel the porting

EXEC ovh.telephony.portabilities.cancel
@billingAccount='{{ billingAccount }}' --required,
@id='{{ id }}' --required
@@json=
'{
"reason": "{{ reason }}"
}'
;