Skip to main content

users_documents

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

Overview​

Nameusers_documents
TypeResource
Idovh.sms.users_documents

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
valuestring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectlogin, service_name, way_typecreation_datetime.from, creation_datetime.to, tagExport SMS to a document. Generates a document with the SMS of the account, filtered by tag, date, direction or batch. Returns the identifier of the document in /me/document.

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"}})
loginstringThe sms user login
service_namestringThe internal name of your SMS offer (wire: serviceName)
way_typestringspecify outgoing or incoming sms (wire: wayType)
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)
tagstringSelect sms with a specific identifier group tag

SELECT examples​

Export SMS to a document. Generates a document with the SMS of the account, filtered by tag, date, direction or batch. Returns the identifier of the document in /me/document.

SELECT
value
FROM ovh.sms.users_documents
WHERE login = '{{ login }}' -- required
AND service_name = '{{ service_name }}' -- required
AND way_type = '{{ way_type }}' -- required
AND creation_datetime.from = '{{ creation_datetime.from }}'
AND creation_datetime.to = '{{ creation_datetime.to }}'
AND tag = '{{ tag }}'
;