The portainer_endpoints_snapshot
resource allows you to trigger an immediate snapshot of environment(s) (also called endpoints) in Portainer.
resource "portainer_endpoints_snapshot" "all" {}
resource "portainer_endpoints_snapshot" "specific" {
endpoint_id = 3
}
Snapshot is executed during:
trraform apply
Name | Type | Required | Description |
---|---|---|---|
endpoint_id |
number | 🚫 no | ID of the environment (endpoint) to snapshot. If not set, all endpoints will be snapshotted. |
Name | Description |
---|---|
id |
Always "snapshot" or endpoint-{id} depending on target. |