dcloud secrets secrets bulk-grant

Grant one consumer access to many secrets, answered per secret

IAM secrets:GrantSecretChanges state

Synopsis

dcloud secrets secrets bulk-grant --consumer consumer --ids ids [flags]

Flags

  • --consumerRequired

    enum

    Which consumer may read the value, e.g. actions (CI runs), deploy (deployed apps) or registry (pull-through cache credentials)

    One of: actions, deploy, cli, code, compute, registry

  • --repository-idOptional

    string

    Limit an actions grant to one repository; omitted or null means every repository

    May be null.

  • --ttl-daysOptional

    number

    Days until the grant expires; omitted or null means it does not expire

    Constraints: integer, 1-3650

    May be null.

  • --idsRequired

    array of string

    Secret ids, 1 to 500. Each is answered on its own: an unknown id or a refused permission fails that item only.

Example

dcloud secrets secrets bulk-grant --consumer actions --ids '["example"]'

Generated from the API description, the same one the API checks requests against and the CLI is built from.