Boundary controller HTTP API
Role Service
Lists all Roles.
Query Parameters
scope_id
string
recursive
boolean
filter
string
You can specify that the filter should only return items that match. Refer to filter expressions for more information.
list_token
string
An opaque token that Boundary uses to continue an existing iteration or request updated items. If you do not specify a token, pagination starts from the beginning. To learn more about list pagination in Boundary, refer to list pagination.
page_size
integer
The maximum size of a page in this iteration. If unset, the default page size configured will be used. If the page_size is greater than the default page configured, the page size will be truncated to this number..
Creates a single Role.
Body Parameters
scope_id
string
The ID of the Scope containing this Role.
name
string
Optional name for identification purposes.
description
string
Optional user-set description for identification purposes.
version
integer
Version is used in mutation requests, after the initial creation, to ensure this resource has not changed. The mutation will fail if the version does not match the latest known good version.
Gets a single Role.
Path Parameters
id
string
RequiredDeletes a Role.
Path Parameters
id
string
RequiredUpdates a Role.
Path Parameters
id
string
RequiredBody Parameters
scope_id
string
The ID of the Scope containing this Role.
name
string
Optional name for identification purposes.
description
string
Optional user-set description for identification purposes.
version
integer
Version is used in mutation requests, after the initial creation, to ensure this resource has not changed. The mutation will fail if the version does not match the latest known good version.
Adds grant scopes to a Role
Path Parameters
id
string
RequiredBody Parameters
version
integer
Version is used to ensure this resource has not changed. The mutation will fail if the version does not match the latest known good version.
grant_scope_ids
string[]
Adds grants to a Role
Path Parameters
id
string
RequiredBody Parameters
version
integer
Version is used to ensure this resource has not changed. The mutation will fail if the version does not match the latest known good version.
grant_strings
string[]
Adds Users and/or Groups to a Role.
Path Parameters
id
string
RequiredBody Parameters
version
integer
Version is used to ensure this resource has not changed. The mutation will fail if the version does not match the latest known good version.
principal_ids
string[]
Removes grant scopes from a Role.
Path Parameters
id
string
RequiredBody Parameters
version
integer
Version is used to ensure this resource has not changed. The mutation will fail if the version does not match the latest known good version.
grant_scope_ids
string[]
Removes grants from a Role.
Path Parameters
id
string
RequiredBody Parameters
version
integer
Version is used to ensure this resource has not changed. The mutation will fail if the version does not match the latest known good version.
grant_strings
string[]
Removes the specified Users and/or Groups from a Role.
Path Parameters
id
string
RequiredBody Parameters
version
integer
Version is used to ensure this resource has not changed. The mutation will fail if the version does not match the latest known good version.
principal_ids
string[]
Set grant scopes for a Role, removing any grant scopes that are not specified in the request.
Path Parameters
id
string
RequiredBody Parameters
version
integer
Version is used to ensure this resource has not changed. The mutation will fail if the version does not match the latest known good version.
grant_scope_ids
string[]
Set grants for a Role, removing any grants that are not specified in the request.
Path Parameters
id
string
RequiredBody Parameters
version
integer
Version is used to ensure this resource has not changed. The mutation will fail if the version does not match the latest known good version.
grant_strings
string[]
Set Users and/or Groups to a Role, removing any principals that are not specified in the request.
Path Parameters
id
string
RequiredBody Parameters
version
integer
Version is used to ensure this resource has not changed. The mutation will fail if the version does not match the latest known good version.
principal_ids
string[]