Mass Repository Grant
mass repository grant​
Manage sharing grants on an OCI repository
Synopsis​
Repository Grants
Manages the sharing grants on an OCI repository.
A grant says "this repository is shared as <action>, to recipient projects matching <conditions>." Without a grant, a repository is visible only where it was published.
Grants are immutable. To change an action or its conditions, delete the grant and create a replacement.
Usage​
shell
mass repository grant create <name> [flags]
mass repository grant list <name> [flags]
mass repository grant delete <grant-id>
Notes​
- Creating or deleting a grant requires the
repo:grantaction on the repository. - Recipients are matched on project attributes. Resource grants match on environment attributes instead — see
mass resource grant.
Options​
-h, --help help for grant
Options inherited from parent commands​
--profile string Configuration profile to use (overrides MASSDRIVER_PROFILE and the active profile)
SEE ALSO​
- mass repository - Manage OCI repositories (bundles and resource types)
- mass repository grant create - Share a repository with recipient projects
- mass repository grant delete - Revoke a sharing grant by id
- mass repository grant list - List the sharing grants on a repository