Skip to main content

virtual_numbers_chat_accesses

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

Overview​

Namevirtual_numbers_chat_accesses
TypeResource
Idovh.sms.virtual_numbers_chat_accesses

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idinteger
creation_datestring (date-time)The creation date of this access (wire: creationDate)
urlstringThe url of the web access

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectnumber, service_nameGet the web access. Returns the web access to the chat application of the virtual number: its URL and creation date.
createinsertnumber, service_nameCreate the web access. Creates a web access to the chat application of the virtual number. Returns its URL.
deletedeletenumber, service_nameDelete the web access. Deletes the web access to the chat application of the virtual number. Its URL no longer gives access to the chat.

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"}})
numberstringThe virtual number
service_namestringThe internal name of your SMS offer (wire: serviceName)

SELECT examples​

Get the web access. Returns the web access to the chat application of the virtual number: its URL and creation date.

SELECT
id,
creation_date,
url
FROM ovh.sms.virtual_numbers_chat_accesses
WHERE number = '{{ number }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Create the web access. Creates a web access to the chat application of the virtual number. Returns its URL.

INSERT INTO ovh.sms.virtual_numbers_chat_accesses (
number,
service_name
)
SELECT
'{{ number }}',
'{{ service_name }}'
RETURNING
id,
creation_date,
url
;

DELETE examples​

Delete the web access. Deletes the web access to the chat application of the virtual number. Its URL no longer gives access to the chat.

DELETE FROM ovh.sms.virtual_numbers_chat_accesses
WHERE number = '{{ number }}' --required
AND service_name = '{{ service_name }}' --required
;