Global InfraGlobal Infra Cloud
dbaas-pg

snapshot

CLI reference for snapshot (dbaas-pg).

gi dbaas-pg snapshot

Subcommands

CommandDescription
gi dbaas-pg snapshot listList snapshots.
gi dbaas-pg snapshot createCreate a new snapshot.
gi dbaas-pg snapshot update <id>Update a snapshot.
gi dbaas-pg snapshot delete <id>Delete a snapshot.

Flags

list flags

FlagAliasDescription
--filter-fFilter assets (e.g. attributes.name=my-asset)

create flags

FlagAliasDescription
--file—Path to a YAML or JSON file describing the asset

update flags

FlagAliasDescription
--file—Path to a YAML or JSON file with updated attributes

Examples

# List all
gi dbaas-pg snapshot list

# Filter by attribute
gi dbaas-pg snapshot list -f attributes.cluster=my-value

# Create from file
gi dbaas-pg snapshot create --file asset.yaml

# Update
gi dbaas-pg snapshot update <id> --file asset.yaml

# Delete
gi dbaas-pg snapshot delete <id>

Usage Notes

On this page