own_logs
Creates, updates, deletes, gets or lists an own_logs resource.
Overview​
| Name | own_logs |
| Type | Resource |
| Id | ovh.hosting_web.own_logs |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
id | integer | Identifier of this ownLogs |
task_id | integer | The task ID working on this ownLogs (wire: taskId) |
fqdn | string | The ownlogs fqdn available on logs.clusterXX.hosting.ovh.net |
logs | string | URL to access this ownLogs logs |
stats | string | URL to access this ownLogs stats |
status | string | Status of this ownLogs (created, creating, deleting) |
Hosting own logs
| Name | Datatype | Description |
|---|---|---|
id | integer | Identifier of this ownLogs |
task_id | integer | The task ID working on this ownLogs (wire: taskId) |
fqdn | string | The ownlogs fqdn available on logs.clusterXX.hosting.ovh.net |
logs | string | URL to access this ownLogs logs |
stats | string | URL to access this ownLogs stats |
status | string | Status of this ownLogs (created, creating, deleting) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | id, service_name | 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. | |
list | select | service_name | fqdn, x_pagination_mode | List 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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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"}}) |
id | integer | Id of the object |
service_name | string | The internal name of your hosting (wire: serviceName) |
fqdn | string | Filter the value of fqdn property (like) |
x_pagination_mode | string | Sent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode) |
SELECT examples​
- get
- list
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
;
List 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.
SELECT
id,
task_id,
fqdn,
logs,
stats,
status
FROM ovh.hosting_web.own_logs
WHERE service_name = '{{ service_name }}' -- required
AND fqdn = '{{ fqdn }}'
AND x_pagination_mode = '{{ x_pagination_mode }}'
;