Creating a role
Write a role definition in TOML and pass it to the CLI.api_version must be roles/v1. actions is a map from resource name to a list of verbs. Use
"*" as either the verb or the resource for a wildcard.
A role grants nothing on its own. Create a grant to assign it to a user or
token.
Rule syntax
A rule says what a user or token is allowed to do. It has two pieces:- An
actionsmap, which pairs each resource (such asinstanceorcapacity) with a list of verbs (such asreadorwrite). - An
effectthat says what to do about those actions. Onlyallowis currently supported.
Supported resources and verbs
Resources:instance, instance_template, image, capacity, secret, ssh_key, firewall,
role, grant, token, billing, order, limits, user, *
Verbs: read, write, delete, list, create, *
Each rule covers every (resource, verb) pair you list. Use "*" as either the resource or the
verb for a wildcard.
Common patterns: