Approvals

SetPolicy enables authorization policy checks for the given resource and applies any provided request or approval settings. If the resource has existing policies settings, they will be replaced. Once the policy is set, authorization checks will be performed for the given resource.

post/v2/organizations/{organization}/serviceaccounts/{serviceaccount}/approvals

Request

  • Base URL
    https://docs.tetrate.io (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Path parameters

organizationstring required

Organization name.

serviceaccountstring required

Serviceaccount name.

Request body

etagstring
mode'UNRESTRICTED' | 'ALLOW_REQUESTED' | 'REQUIRE_APPROVAL' required
  • UNRESTRICTED: Allows all subjects in the same policy class to access the resource.
  • ALLOW_REQUESTED: Allows only the subjects in the request and approved list to access the resource.
  • REQUIRE_APPROVAL: Allows only the subjects in the approved list to access the resource.

Response

A successful response.

object required

Changes

No recorded changes to this operation across all 3 revisions of this API.