Skip to main content

line_click2_call_users

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

Overview​

Nameline_click2_call_users
TypeResource
Idovh.telephony.line_click2_call_users

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerContact identifier
creation_date_timestring (date-time)Date when user was created (wire: creationDateTime)
loginstringlogin of the click 2 call user

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, id, service_nameGet a click2call user
listselectbilling_account, service_namex_pagination_modeList click2call users
createinsertbilling_account, service_name, login, passwordCreate a click2call user
deletedeletebilling_account, id, service_nameDelete a click2call user
change_passwordexecbillingAccount, id, serviceName, passwordChange the user password
click2_callexecbillingAccount, id, serviceName, calledNumberStart a call from the line

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)
idintegerId of the object
serviceNamestring
service_namestring (wire: serviceName)
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 click2call user

SELECT
id,
creation_date_time,
login
FROM ovh.telephony.line_click2_call_users
WHERE billing_account = '{{ billing_account }}' -- required
AND id = '{{ id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Create a click2call user

INSERT INTO ovh.telephony.line_click2_call_users (
login,
password,
billing_account,
service_name
)
SELECT
'{{ login }}' /* required */,
'{{ password }}' /* required */,
'{{ billing_account }}',
'{{ service_name }}'
;

DELETE examples​

Delete a click2call user

DELETE FROM ovh.telephony.line_click2_call_users
WHERE billing_account = '{{ billing_account }}' --required
AND id = '{{ id }}' --required
AND service_name = '{{ service_name }}' --required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Change the user password

EXEC ovh.telephony.line_click2_call_users.change_password
@billingAccount='{{ billingAccount }}' --required,
@id='{{ id }}' --required,
@serviceName='{{ serviceName }}' --required
@@json=
'{
"password": "{{ password }}"
}'
;