Browse docs
On this page

obi get

List resources of any type, or show specific ones, as a table, JSON, YAML, or apply-able manifests.

obi get lists the resources of a type, or shows the ones you name.

Shell
obi get TYPE [NAME...] [flags]
obi get TYPE/NAME [TYPE/NAME...]
obi get TYPE1,TYPE2

Run obi get with no type to see every type you can list.

Examples

Shell
obi get dashboards
obi get dashboards/prod-overview -o yaml
obi get dashboard prod-overview checkout       # several names of one type
obi get alerts,dashboards                      # several types, one table each
obi get incidents --status open
obi get alerts -o wide
obi get silences --alert payments-errors
obi get retention                              # a once-per-workspace setting
obi get incidents -w                           # re-list until Ctrl-C
obi get dashboard prod-overview --export > prod-overview.yaml

A name can be a name or slug, a number (for incidents, alerts, and checks), or an id. See naming things.

Flags

FlagMeaning
-o, --output FORMATtable (default), wide, json, yaml, name, jsonpath=..., or custom-columns=.... See output formats.
--exportPrint apply-able manifests instead of the API's objects. Fields the server sets (ids, timestamps, current state) are left out, so the file applies cleanly back.
-w, --watchRe-list every few seconds, printing again only when something changed, until Ctrl-C. Takes one type and no names.
--interval DURATIONHow often --watch re-lists, such as 10s or 1m. Default 5s.
--no-headersLeave the header row off tables.
--PARENT NAMEFor a type that belongs to another, the parent, such as --alert for silences and --dashboard for dashboard-revisions.

Filters

A few types take filters that narrow the list on the server:

TypeFilters
incidents--status open, acknowledged, or resolved
dashboards--query TEXT
activity--from TIME, --to TIME, --query TEXT, --actor NAME, --action ACTION, --category CATEGORY, --outcome OUTCOME, --limit N