Permissions Service
GetResourcePermissionsRequest
Request to query permissions on a single record by FQN.
Field | Description | Validation Rule |
fqn | string | – |
GetResourcePermissionsResponse
Response with permission rules.
Field | Description | Validation Rule |
rules | – |
Query
Query format of the resource lookup for the permission check
Field | Description | Validation Rule |
queryId | string | – |
fqn | string | – |
QueryResourcePermissionsRequest
Request to query permissions on multiple records.
Example: QueryResourcePermissionsRequest { Queries: []Query{ Query{ QueryID: "1234", Kind: Query_Fqn{ Fqn: "tetrate/tenants/default/workspaces/example" } } } }
Field | Description | Validation Rule |
queries | List of tetrateio.api.tsb.q.v2.Query | repeated = { |
QueryResourcePermissionsResponse
Response with permissions for the requested queries.
Example: QueryResourcePermissionsResponse { Results: []Result{ Result{ Request: Query{ QueryID: "1234", Kind: Query_Fqn{ Fqn: "tetrate/tenants/default/workspaces/example" } }, Rules: []Role_Rule{ { Types: []Role_ResourceType{ { ApiGroup: "api.tsb.tetrate.io/v2", Kinds: []string{"Workspace"} } }, Permissions: []Permission{"READ"} } } } } }
Field | Description | Validation Rule |
results | List of tetrateio.api.tsb.q.v2.QueryResourcePermissionsResponse.Result | – |
Result
Represents a result for the requested query
Field | Description | Validation Rule |
request | tetrateio.api.tsb.q.v2.Query | – |
rules | List of tetrateio.api.tsb.rbac.v2.Role.Rule | – |