Skip to main content

app_logs

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

Overview​

Nameapp_logs
TypeResource
Idovh.cloud_ai.app_logs

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
last_activitystring (date-time)Last activity date (wire: lastActivity)
logsarrayLogs lines

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectapp_id, service_namepage, replica, sizeGet the logs of an app
urlexecappId, service_name, kindGenerates a temporary URL to read the logs of one kind. The URL expires.

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"}})
appIdstring (uuid)App ID
app_idstring (uuid)App ID (wire: appId)
service_namestringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.
pageintegerPage of the result set
replicastringOnly show logs from this replica
sizeintegerSize of the result set

SELECT examples​

Get the logs of an app

SELECT
last_activity,
logs
FROM ovh.cloud_ai.app_logs
WHERE app_id = '{{ app_id }}' -- required
AND service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
AND page = '{{ page }}'
AND replica = '{{ replica }}'
AND size = '{{ size }}'
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Generates a temporary URL to read the logs of one kind. The URL expires.

EXEC ovh.cloud_ai.app_logs.url
@appId='{{ appId }}' --required,
@service_name='{{ service_name }}' --required unless OVH_CLOUD_PROJECT_SERVICE is set
@@json=
'{
"kind": "{{ kind }}"
}'
;