Skip to main content

own_logs

Creates, updates, deletes, gets or lists an own_logs resource.

Overview​

Nameown_logs
TypeResource
Idovh.hosting_web.own_logs

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerIdentifier of this ownLogs
task_idintegerThe task ID working on this ownLogs (wire: taskId)
fqdnstringThe ownlogs fqdn available on logs.clusterXX.hosting.ovh.net
logsstringURL to access this ownLogs logs
statsstringURL to access this ownLogs stats
statusstringStatus of this ownLogs (created, creating, deleting)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectid, service_nameGet own logs. Returns the FQDN, logs URL, statistics URL and status of the own logs, which separate the logs and statistics of a domain.
listselectservice_namefqdn, x_pagination_modeList own logs. Returns the IDs of the own logs of the hosting, which separate the logs and statistics of a domain. Filter them by FQDN.

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
service_namestringThe internal name of your hosting (wire: serviceName)
fqdnstringFilter the value of fqdn property (like)
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 own logs. Returns the FQDN, logs URL, statistics URL and status of the own logs, which separate the logs and statistics of a domain.

SELECT
id,
task_id,
fqdn,
logs,
stats,
status
FROM ovh.hosting_web.own_logs
WHERE id = '{{ id }}' -- required
AND service_name = '{{ service_name }}' -- required
;