Skip to main content

virtual_numbers_incomings

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

Overview​

Namevirtual_numbers_incomings
TypeResource
Idovh.sms.virtual_numbers_incomings

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idinteger
creation_datetimestring (date-time) (wire: creationDatetime)
creditsnumber
messagestring
senderstring
tagstring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectid, number, service_nameGet a received SMS. Returns the received SMS: sender, message, reception date, credits used and tag. The tag groups SMS for filtering and export.
listselectnumber, service_namecreation_datetime.from, creation_datetime.to, sender, tag, x_pagination_modeList received SMS. Returns the identifiers of the received SMS. Get a received SMS for its sender, message, date and credits used.
deletedeleteid, number, service_nameDelete a received SMS. Deletes the received SMS from the history. It no longer appears in the list of received SMS.

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"}})
idintegerId of the object
numberstringThe virtual number
service_namestringThe internal name of your SMS offer (wire: serviceName)
creation_datetime.fromstring (date-time)Filter the value of creationDatetime property (>=) (wire: creationDatetime.from)
creation_datetime.tostring (date-time)Filter the value of creationDatetime property (<=) (wire: creationDatetime.to)
senderstringFilter the value of sender property (=)
tagstringFilter the value of tag property (=)
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 received SMS. Returns the received SMS: sender, message, reception date, credits used and tag. The tag groups SMS for filtering and export.

SELECT
id,
creation_datetime,
credits,
message,
sender,
tag
FROM ovh.sms.virtual_numbers_incomings
WHERE id = '{{ id }}' -- required
AND number = '{{ number }}' -- required
AND service_name = '{{ service_name }}' -- required
;

DELETE examples​

Delete a received SMS. Deletes the received SMS from the history. It no longer appears in the list of received SMS.

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