grants.approve is used to approve a grant. This method can only be called on a grant when it's in the APPROVAL_AWAITED state. This operation can't be undone.
HTTP request
POST https://privilegedaccessmanager.googleapis.com/v1beta/{name=projects/*/locations/*/entitlements/*/grants/*}:approve
Required. Name of the grant resource which is being approved.
Request body
The request body contains data with the following structure:
JSON representation
{"reason": string}
Fields
reason
string
Optional. The reason for approving this grant. This is required if the requireApproverJustification field of the ManualApprovals workflow used in this grant is true.
Response body
If successful, the response body contains an instance of Grant.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-07 UTC."],[[["This endpoint `grants.approve` is used to approve a grant, which must be in the `APPROVAL_AWAITED` state, and this operation is irreversible."],["The HTTP request uses `POST` with a specific URL structure containing path parameters, defined by gRPC Transcoding syntax."],["The `name` path parameter is required and represents the resource name of the grant being approved."],["The request body requires a JSON structure, including the optional `reason` field, which is mandatory when `requireApproverJustification` is set to true in the used `ManualApprovals` workflow."],["The request requires the `https://www.googleapis.com/auth/cloud-platform` OAuth scope, and a successful request returns an instance of the [Grant](https://cloud.google.com/iam/docs/reference/pam/rest/v1beta/folders.locations.entitlements.grants#Grant) resource."]]],[]]