notebook_logs
Creates, updates, deletes, gets or lists a notebook_logs resource.
Overview​
| Name | notebook_logs |
| Type | Resource |
| Id | ovh.cloud_ai.notebook_logs |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
last_activity | string (date-time) | Last activity date (wire: lastActivity) |
logs | array | Logs lines |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | notebook_id, service_name | Get the logs of a notebook | |
url | exec | notebookId, service_name, kind | Generates 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.
| 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"}}) |
notebookId | string | Notebook ID |
notebook_id | string | Notebook ID (wire: notebookId) |
service_name | string | The Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set. |
SELECT examples​
- get
Get the logs of a notebook
SELECT
last_activity,
logs
FROM ovh.cloud_ai.notebook_logs
WHERE notebook_id = '{{ notebook_id }}' -- required
AND service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;
Lifecycle Methods​
EXEC variables use wire (API) names.
- url
Generates a temporary URL to read the logs of one kind. The URL expires.
EXEC ovh.cloud_ai.notebook_logs.url
@notebookId='{{ notebookId }}' --required,
@service_name='{{ service_name }}' --required unless OVH_CLOUD_PROJECT_SERVICE is set
@@json=
'{
"kind": "{{ kind }}"
}'
;