Skip to main content

procedures

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

Overview​

Nameprocedures
TypeResource
Idovh.telephony.procedures

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerProcedure ID
finish_datestring (date-time)The date at which the procedure was closed. (wire: finishDate)
pdf_urlstringThe URL of the procedure document. (wire: pdfUrl)
request_datestring (date-time)The date at which the procedure was opened. (wire: requestDate)
statusstringThe current status of the procedure. (cancelled, doing, done, todo, waiting_for_customer)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectidGet a procedure
listselectx_pagination_modeList procedures (Deprecated, will be removed)
createinsertCreate a procedure (Deprecated, will be removed)
cancelexecidCancel a procedure

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"}})
idintegerProcedure ID
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 procedure

SELECT
id,
finish_date,
pdf_url,
request_date,
status
FROM ovh.telephony.procedures
WHERE id = '{{ id }}' -- required
;

INSERT examples​

Create a procedure (Deprecated, will be removed)

INSERT INTO ovh.telephony.procedures (
bic,
iban,
owner_address,
owner_name,
payment_mean_id
)
SELECT
'{{ bic }}',
'{{ iban }}',
'{{ owner_address }}',
'{{ owner_name }}',
{{ payment_mean_id }}
RETURNING
id,
finish_date,
pdf_url,
request_date,
status
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Cancel a procedure

EXEC ovh.telephony.procedures.cancel
@id='{{ id }}' --required
;