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=folders/*/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 approves a grant, which can only be done when the grant is in the `APPROVAL_AWAITED` state, and the action is irreversible."],["The HTTP request is a `POST` method to a specific URL using gRPC Transcoding syntax, with a required `name` path parameter representing the grant to be approved."],["The request body requires a JSON object, including an optional `reason` field, which becomes mandatory if the related `requireApproverJustification` workflow is set to true."],["A successful response to the request will contain an instance of the `Grant` resource."],["The required authorization scope for this operation is `https://www.googleapis.com/auth/cloud-platform`."]]],[]]