Manage relations¶
See also: Relation
Add a relation¶
Given two entities A and B, to add a relation between them run the auth relation add
command followed by the tag of A, the desired B relation, and the tag of B. For example, to add a relation where you make user alice@canonical.com
a member
of the mygroup
group:
jimmctl auth relation add [email protected] member group-mygroup
Verify a relation¶
Given two entities A and B, to verify that there is a specific relation between them, run the auth relation check
command followed by the tag of A, the relation, and the tag of B. For example:
jimmctl auth relation check [email protected] administrator controller-aws-controller-1
See more: jimmctl auth relation check
View all the current relations¶
To view all the current relations, run the auth relation list
command. For example:
jimmctl auth relation list [options]
See more: jimmctl auth relation list
Remove a relation¶
Given two entities A and B and a pre-existing relation between them, to remove the relation, run the auth relation remove
command followed by the tag of A, the relation, and the tag of B. For example:
jimmctl auth relation remove [email protected] member group-mygroup