CLI reference / database / resolve

stado database resolve

Invocation

stado database resolve [OPTIONS] --consumer <CONSUMER> <NAME>

Purpose

Resolve one database for an authorized consumer. Returns the placement endpoint when the service directory places the database, and always the Skarbiec item to acquire the credential from. The consumer must be declared on the database; the credential value is never printed.

Required inputs and options

Input or optionContract
<NAME>Logical database name from database_api.databases
--consumer <CONSUMER>Stable workload identity requesting access
--jsonEmit machine-readable output

Output and state effect

It performs the operation described above and emits its operator result on standard output or standard error. Any state change is limited to the resources and records named by the purpose and options on this page.

Refusals

  • Before dispatch, Stado refuses a missing required token shown in the invocation, an unknown option, or a value outside a listed value set; argument-usage failures exit with code 2.