dcloud secrets secrets bulk-grantGrant 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
--consumerRequiredenum
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-idOptionalstring
Limit an actions grant to one repository; omitted or null means every repository
May be null.
--ttl-daysOptionalnumber
Days until the grant expires; omitted or null means it does not expire
Constraints: integer, 1-3650
May be null.
--idsRequiredarray 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.