pub struct AclRole {
pub create_index: u64,
pub modify_index: u64,
pub id: String,
pub name: String,
pub description: String,
pub policies: Vec<AclRolePolicyLink>,
}
Expand description
ACLRole is an abstraction for the ACL system which allows the grouping of ACL policies into a single object. ACL tokens can be created and linked to a role; the token then inherits all the permissions granted by the policies.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§create_index: u64
§modify_index: u64
§id: String
ID is an internally generated UUID for this role and is controlled by Nomad. It can be used after role creation to update the existing role.
name: String
Name is unique across the entire set of federated clusters and is supplied by the operator on role creation. The name can be modified by updating the role and including the Nomad generated ID. This update will not affect tokens created and linked to this role. This is a required field.
description: String
Description is a human-readable, operator set description that can provide additional context about the role. This is an optional field.
policies: Vec<AclRolePolicyLink>
Policies is an array of ACL policy links. Although currently policies can only be linked using their name, in the future we will want to add IDs also and thus allow operators to specify either a name, an ID, or both. At least one entry is required.