Query grantable roles
Lists the roles that can be granted on a resource, in the order that listing roles returns them. The answer follows from the resource's type alone, so the resource is not looked up, and whether it exists is not told.
Lists the roles that can be granted on a resource, in the order that listing roles returns them.
The answer follows from the resource's type alone, so the resource is not looked up, and whether it exists is not told.
bearerAuthorizationBearer <token>An access token, or an API key.
resource*stringName of a resource with an IAM policy, such as projects/prj_… or projects/prj_…/agents/ags_….
1 <= lengthpageSize?integerMaximum number of roles to return. Defaults to 50; values above 500 are treated as 500.
int320 <= valuepageToken?stringPage token from a previous response for the same resource.
OK
application/json- response
nextPageToken*stringToken for the next page; empty on the last page.
roles*array<>Roles, the basic ones first, then by service.
curl -X GET 'https://api.kosem.ai/v1/roles/grantable?resource=string'{
"nextPageToken": "string",
"roles": [
{
"description": "string",
"grantableOn": [
"string"
],
"includedPermissions": [
"string"
],
"name": "string",
"title": "string"
}
]
}