Get Roles
Get list of roles.
caution
This endpoint has been deprecated and will be phased out at the end of 2023. Please update any existing usages of it to use the List Objects endpoint instead.
Endpoint
GET /v1/roles
Request
- cURL
- Go
- Java
- Node.js
- Python
- Ruby
- PHP
- CLI
curl "https://api.warrant.dev/v1/roles" \
-H "Authorization: ApiKey YOUR_KEY"
roles, err := role.ListRoles(&warrant.ListRoleParams{
ListParams: warrant.ListParams{
Limit: 10,
},
})
if err != nil {
// handle error
}
ListResult<Role> roles = client.listRoles(new ListParams().withLimit(10));
await warrantClient.Role.listRoles({ limit: 10 });
roles = warrant.Role.list({"limit": 10})
roles = Warrant::Role.list({ limit: 10 })
warrant list roles
Response
[
{
"roleId": "admin"
},
{
"roleId": "owner"
},
{
"roleId": "role2"
}
]