Approvals Service
Access
Access is an access request for a subject with a set of permission.
Field | Description | Validation Rule |
subject | string | string = { |
permissions | List of string | repeated = { |
AccessRequest
AccessRequest is a request used for requesting or approving access to a resource.
Field | Description | Validation Rule |
resource | string | string = { |
access | tetrateio.api.tsb.q.v2.Access | – |
ApprovalPolicy
ApprovalPolicy is a set of authorization rules that define access to a resource. When applied to a resource, the rules enforce access to the resource based on the permission set.
Field | Description | Validation Rule |
mode | tetrateio.api.tsb.q.v2.ApprovalPolicy.Mode | enum = { |
resource | string | string = { |
requested | List of tetrateio.api.tsb.q.v2.Access | – |
approved | List of tetrateio.api.tsb.q.v2.Access | – |
Mode
Name | Number | Description |
UNRESTRICTED | 0 | Allows all subjects in the same policy class to access the target resource. |
ALLOW_REQUESTED | 1 | Allows only the subjects in the request and approved list to access the resource. |
REQUIRE_APPROVAL | 2 | Allows only the subjects in the approved list to access the resource. |
Resource
Resource is a resource that can be accessed by a subject.
Field | Description | Validation Rule |
name | string | string = { |
ResourceAndSubject
ResourceAndSubject is a resource and subject pair used for approval and deletion operations.
Field | Description | Validation Rule |
resource | string | string = { |
subject | string | string = { |