ACL Roles HTTP API
The /acl/roles
and /acl/role/
endpoints are used to manage ACL Roles.
Create Role
This endpoint creates an ACL Role. The request is always forwarded to the authoritative region.
Method | Path | Produces |
---|---|---|
POST | /acl/role | application/json |
The table below shows this endpoint's support for blocking queries and required ACLs.
Blocking Queries | ACL Required |
---|---|
NO | management |
Parameters
Name
(string: <required>)
- Specifies the human-readable name of the ACL Role. The name can contain alphanumeric characters and dashes. This name must be unique and must not exceed 128 characters.Description
(string: <optional>)
- A free form human-readable description of the ACL Role. It must not exceed 256 characters.Policies
(array<ACLRolePolicyLink>)
The list of policies that should be applied to the role. AnACLRolePolicyLink
is an object with a"Name"
field to specify a policy.
Sample Payload
Sample Request
Sample Response
Update Role
This endpoint updates an existing ACL Role. The request is always forwarded to the authoritative region.
Method | Path | Produces |
---|---|---|
POST | /acl/role/:role_id | application/json |
The table below shows this endpoint's support for blocking queries and required ACLs.
Blocking Queries | ACL Required |
---|---|
NO | management |
Parameters
ID
(string: <required>)
- Specifies the ACL Role, by ID, that is being updated. Must match payload body and request path.Name
(string: <required>)
- Specifies the human-readable name of the ACL Role. The name can contain alphanumeric characters and dashes. This name must be unique a must not exceed 128 characters.Description
(string: <optional>)
- A free form human-readable description of the ACL Role. It must not exceed 256 characters.Policies
(array<ACLRolePolicyLink>)
The list of policies that should be applied to the role. AnACLRolePolicyLink
is an object with a"Name"
field to specify a policy.
Sample Payload
Sample Request
Sample Response
List Roles
This endpoint lists all ACL Roles. This lists the roles that have been replicated to the region, and may lag behind the authoritative region.
Method | Path | Produces |
---|---|---|
GET | /acl/roles | application/json |
The table below shows this endpoint's support for blocking queries, consistency modes and required ACLs.
Blocking Queries | Consistency Modes | ACL Required |
---|---|---|
YES | all | management for all roles.Output when given a non-management token will be limited to the roles on the token itself |
Parameters
prefix
(string: "")
- Specifies a string to filter ACL Roles based on an ID prefix. This is specified as a query string parameter. Because the value is decoded to bytes, the prefix must have an even number of hexadecimal characters (0-9a-f
).
Sample Request
Sample Response
Read Role by ID
This endpoint reads an ACL Role with the given ID. This queries the role that has been replicated to the region, and may lag behind the authoritative region.
Method | Path | Produces |
---|---|---|
GET | /acl/role/:role_id | application/json |
The table below shows this endpoint's support for blocking queries, consistency modes and required ACLs.
Blocking Queries | Consistency Modes | ACL Required |
---|---|---|
YES | all | management or token with access to role |
Parameters
:role_id
(string: <required>)
- Specifies the ID of the ACL Role. This is specified as part of the path.
Sample Request
Sample Response
Read Role by Name
This endpoint reads an ACL Role with the given name. This queries the role that has been replicated to the region, and may lag behind the authoritative region.
Method | Path | Produces |
---|---|---|
GET | /acl/role/name/:role_name | application/json |
The table below shows this endpoint's support for blocking queries, consistency modes and required ACLs.
Blocking Queries | Consistency Modes | ACL Required |
---|---|---|
YES | all | management or token with access to role |
Parameters
:role_name
(string: <required>)
- Specifies the Name of the ACL Role. This is specified as part of the path.
Sample Request
Sample Response
Delete Role
This endpoint deletes the ACL role as identified by the ID. This request is always forwarded to the authoritative region.
Method | Path | Produces |
---|---|---|
DELETE | /acl/role/:role_id | (empty body) |
The table below shows this endpoint's support for blocking queries and required ACLs.
Blocking Queries | ACL Required |
---|---|
NO | management |
Parameters
role_id
(string: <required>)
- Specifies the ID of role to delete and is specified as part of the path.
Sample Request