Get info about a Linode Monitor Logs Stream.
| Field | Type | Required | Description |
|---|---|---|---|
api_token |
str |
Required | The Linode account personal access token. It is necessary to run the module. It can be exposed by the environment variable LINODE_API_TOKEN instead. See details in Usage. |
- name: Get info about a logs stream by ID
linode.cloud.monitor_logs_stream_info:
id: 12345- name: Get info about a logs stream by label
linode.cloud.monitor_logs_stream_info:
label: "my-audit-logs"| Field | Type | Required | Description |
|---|---|---|---|
id |
int |
Optional | The ID of the Monitor Logs Stream to resolve. (Conflicts With: label) |
label |
str |
Optional | The label of the Monitor Logs Stream to resolve. (Conflicts With: id) |
-
stream- The returned Monitor Logs Stream.- Sample Response:
{ "created": "2025-03-20 01:41:09", "created_by": "John Q. Linode", "destinations": [ { "details": { "access_key_id": "123", "bucket_name": "primary-bucket", "host": "primary-bucket-1.us-iad-12.linodeobjects.com", "path": "audit-logs" }, "id": 12345, "label": "OBJ_logs_destination", "type": "akamai_object_storage" } ], "id": 12345, "label": "AuditLog-config", "status": "active", "type": "audit_logs", "updated": "2025-03-20 01:41:09", "updated_by": "Jane Q. Linode", "version": 1 } - See the Linode API response documentation for a list of returned fields
- Sample Response: