Get desktop application:
View/edit binary Protocol Buffers messages
The service that performs authorization checks based on the stored Access Control Lists. This service is part of the [read-APIs](../concepts/25_api-overview.mdx#read-apis).
Performs an authorization check.
The request for a CheckService.Check RPC. Checks whether a specific subject is related to an object.
The namespace to evaluate the check. Note: If you use the expand-API and the check evaluates a RelationTuple specifying a SubjectSet as subject or due to a rewrite rule in a namespace config this check request may involve other namespaces automatically.
The related object in this check.
The relation between the Object and the Subject.
The related subject in this check.
This field is not implemented yet and has no effect. <!-- Set this field to `true` in case your application needs to authorize depending on up to date ACLs, also called a "content-change check". If set to `true` the `snaptoken` field is ignored, the check is evaluated at the latest snapshot (globally consistent) and the response includes a snaptoken for clients to store along with object contents that can be used for subsequent checks of the same content version. Example use case: - You need to authorize a user to modify/delete some resource and it is unacceptable that if the permission to do that had just been revoked some seconds ago so that the change had not yet been fully replicated to all availability zones. -->
This field is not implemented yet and has no effect. <!-- Optional. Like reads, a check is always evaluated at a consistent snapshot no earlier than the given snaptoken. Leave this field blank if you want to evaluate the check based on eventually consistent ACLs, benefiting from very low latency, but possibly slightly stale results. If the specified token is too old and no longer known, the server falls back as if no snaptoken had been specified. If not specified the server tries to evaluate the check on the best snapshot version where it is very likely that ACLs had already been replicated to all availability zones. -->
The maximum depth to search for a relation. If the value is less than 1 or greater than the global max-depth then the global max-depth will be used instead.
The response for a CheckService.Check rpc.
Whether the specified subject (id) is related to the requested object. It is false by default if no ACL matches.
This field is not implemented yet and has no effect. <!-- The last known snapshot token ONLY specified if the request had not specified a snaptoken, since this performed a "content-change request" and consistently fetched the last known snapshot token. This field is not set if the request had specified a snaptoken! If set, clients should cache and use this token for subsequent requests to have minimal latency, but allow slightly stale responses (only some milliseconds or seconds). -->
The request for a CheckService.BatchCheck RPC. Checks a batch of relations.
This field is not implemented yet and has no effect. <!-- Set this field to `true` in case your application needs to authorize depending on up to date ACLs, also called a "content-change check". If set to `true` the `snaptoken` field is ignored, the check is evaluated at the latest snapshot (globally consistent) and the response includes a snaptoken for clients to store along with object contents that can be used for subsequent checks of the same content version. Example use case: - You need to authorize a user to modify/delete some resource and it is unacceptable that if the permission to do that had just been revoked some seconds ago so that the change had not yet been fully replicated to all availability zones. -->
This field is not implemented yet and has no effect. <!-- Optional. Like reads, a check is always evaluated at a consistent snapshot no earlier than the given snaptoken. Leave this field blank if you want to evaluate the check based on eventually consistent ACLs, benefiting from very low latency, but possibly slightly stale results. If the specified token is too old and no longer known, the server falls back as if no snaptoken had been specified. If not specified the server tries to evaluate the check on the best snapshot version where it is very likely that ACLs had already been replicated to all availability zones. -->
The maximum depth to search for a relation. If the value is less than 1 or greater than the global max-depth then the global max-depth will be used instead.
The response for a CheckService.BatchCheck rpc.
The results of the batch check. The order of these results will match the order of the input.
The service that performs subject set expansion based on the stored Access Control Lists. This service is part of the [read-APIs](../concepts/25_api-overview.mdx#read-apis).
Expands the subject set into a tree of subjects.
The request for an ExpandService.Expand RPC. Expands the given subject set.
The subject to expand.
The maximum depth of tree to build. If the value is less than 1 or greater than the global max-depth then the global max-depth will be used instead. It is important to set this parameter to a meaningful value. Ponder how deep you really want to display this.
This field is not implemented yet and has no effect. <!-- Optional. Like reads, a expand is always evaluated at a consistent snapshot no earlier than the given snaptoken. Leave this field blank if you want to expand based on eventually consistent ACLs, benefiting from very low latency, but possibly slightly stale results. If the specified token is too old and no longer known, the server falls back as if no snaptoken had been specified. If not specified the server tries to build the tree on the best snapshot version where it is very likely that ACLs had already been replicated to all availability zones. -->
The response for a ExpandService.Expand RPC.
The tree the requested subject set expands to. The requested subject set is the subject of the root. This field can be nil in some circumstances.
The service to query namespaces. This service is part of the [read-APIs](../concepts/25_api-overview.mdx#read-apis).
Lists Namespaces
Request for ReadService.ListNamespaces RPC.
(message has no fields)
The service to query relationships. This service is part of the [read-APIs](../concepts/25_api-overview.mdx#read-apis).
Lists ACL relationships.
Request for ReadService.ListRelationTuples RPC. See `ListRelationTuplesRequest_Query` for how to filter the query.
All query constraints are concatenated with a logical AND operator. The RelationTuple list from ListRelationTuplesResponse is ordered from the newest RelationTuple to the oldest.
This field is not implemented yet and has no effect. <!-- Optional. The list of fields to be expanded in the RelationTuple list returned in `ListRelationTuplesResponse`. Leaving this field unspecified means all fields are expanded. Available fields: "object", "relation", "subject", "namespace", "subject.id", "subject.namespace", "subject.object", "subject.relation" -->
This field is not implemented yet and has no effect. <!-- Optional. The snapshot token for this read. -->
Optional. The maximum number of RelationTuples to return in the response. Default: 100
Optional. An opaque pagination token returned from a previous call to `ListRelationTuples` that indicates where the page should start at. An empty token denotes the first page. All successive pages require the token from the previous page.
The response of a ReadService.ListRelationTuples RPC.
The relationships matching the list request.
The token required to get the next page. If this is the last page, the token will be the empty string.
The service returning the specific Ory Keto instance version. This service is part of the [read-APIs](../concepts/25_api-overview.mdx#read-apis) and [write-APIs](../concepts/25_api-overview.mdx#write-apis).
Returns the version of the Ory Keto instance.
Request for the VersionService.GetVersion RPC.
(message has no fields)
Response of the VersionService.GetVersion RPC.
The version string of the Ory Keto instance.
The write service to create and delete Access Control Lists. This service is part of the [write-APIs](../concepts/25_api-overview.mdx#write-apis).
Writes one or more relationships in a single transaction.
The request of a WriteService.TransactRelationTuples RPC.
The write delta for the relationships operated in one single transaction. Either all actions succeed or no change takes effect on error.
The response of a WriteService.TransactRelationTuples rpc.
This field is not implemented yet and has no effect. <!-- The list of the new latest snapshot tokens of the affected RelationTuple, with the same index as specified in the `relation_tuple_deltas` field of the TransactRelationTuplesRequest request. If the RelationTupleDelta_Action was DELETE the snaptoken is empty at the same index. -->
Deletes relationships based on relation query
(message has no fields)
The response for an individual check in the CheckService.BatchCheck rpc.
Used in:
Whether the specified subject (id) is related to the requested object. It is false by default if no ACL matches.
If there was an error checking the tuple, this will contain the error message. If the check was performed successfully, this will be empty.
This field is not implemented yet and has no effect. <!-- The last known snapshot token ONLY specified if the request had not specified a snaptoken, since this performed a "content-change request" and consistently fetched the last known snapshot token. This field is not set if the request had specified a snaptoken! If set, clients should cache and use this token for subsequent requests to have minimal latency, but allow slightly stale responses (only some milliseconds or seconds). -->
The query for deleting relationships
Used in:
Optional. The namespace to query.
Optional. The object to query for.
Optional. The relation to query for.
Optional. The subject to query for.
The query for listing relationships. Clients can specify any optional field to partially filter for specific relationships. Example use cases (namespace is always required): - object only: display a list of all permissions referring to a specific object - relation only: get all groups that have members; get all directories that have content - object & relation: display all subjects that have a specific permission relation - subject & relation: display all groups a subject belongs to; display all objects a subject has access to - object & relation & subject: check whether the relation tuple already exists
Used in:
Required. The namespace to query.
Optional. The object to query for.
Optional. The relation to query for.
Optional. The subject to query for.
Used in:
Used in:
This node expands to a union of all children.
Not implemented yet.
Not implemented yet.
This node is a leaf and contains no children. Its subject is a `SubjectID` unless `max_depth` was reached.
The query for listing relationships. Clients can specify any optional field to partially filter for specific relationships. Example use cases (namespace is always required): - object only: display a list of all permissions referring to a specific object - relation only: get all groups that have members; get all directories that have content - object & relation: display all subjects that have a specific permission relation - subject & relation: display all groups a subject belongs to; display all objects a subject has access to - object & relation & subject: check whether the relation tuple already exists
Used in:
,The namespace this relation tuple lives in.
The object related by this tuple. It is an object in the namespace of the tuple.
The relation between an Object and a Subject.
The subject related by this tuple. A Subject either represents a concrete subject id or a `SubjectSet` that expands to more Subjects.
RelationTuple defines a relation between an Object and a Subject.
Used in:
, , , ,The namespace this relation tuple lives in.
The object related by this tuple. It is an object in the namespace of the tuple.
The relation between an Object and a Subject.
The subject related by this tuple. A Subject either represents a concrete subject id or a `SubjectSet` that expands to more Subjects.
Write-delta for a TransactRelationTuplesRequest.
Used in:
The action to do on the RelationTuple.
The target RelationTuple.
Used in:
Unspecified. The `TransactRelationTuples` RPC ignores this RelationTupleDelta if an action was unspecified.
Insertion of a new RelationTuple. It is ignored if already existing.
Deletion of the RelationTuple. It is ignored if it does not exist.
Subject is either a concrete subject id or a `SubjectSet` expanding to more Subjects.
Used in:
, , , , , ,The reference of this abstract subject.
A concrete id of the subject.
A subject set that expands to more Subjects. More information are available under [concepts](../concepts/15_subjects.mdx).
SubjectSet refers to all subjects who have the same `relation` on an `object`.
Used in:
The namespace of the object and relation referenced in this subject set.
The object related by this subject set.
The relation between the object and the subjects.
Used in:
The type of the node.
The subject this node represents. Deprecated: More information is now available in the tuple field.
The relation tuple this node represents.
The children of this node. This is never set if `node_type` == `NODE_TYPE_LEAF`.