set_cluster_hosted_log_shipping
Turn shipping of a cluster's container logs to Ankra's hosted log store on or off (the twin of ankra cluster logs-ship enable|disable and the portal's Ankra hosted logs integration). While it is on and the store is live, the cluster's agent sends the log lines of every running container to Ankra's hosted log store, where members of the organisation can search them with query_logs for 7 days; turning it off stops shipping within about a minute. Log lines can carry personal data and secrets applications print, so turn it on only when the user asked for it. 'enabled' is required and must be given explicitly. Read the current state with get_cluster_hosted_log_shipping. Every change is recorded in the organisation's audit log. Requires clusters.write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | true sends the cluster's container logs to Ankra's hosted log store; false stops it. | |
| cluster_id | No | UUID of the target cluster. Optional when a cluster is selected. | |
| cluster_name | No | Exact name of the target cluster. Optional when a cluster is selected. |