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 2025-05-21 UTC."],[[["\u003cp\u003eThis endpoint \u003ccode\u003egrants.approve\u003c/code\u003e is used to approve a grant, which must be in the \u003ccode\u003eAPPROVAL_AWAITED\u003c/code\u003e state, and this operation is irreversible.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request uses \u003ccode\u003ePOST\u003c/code\u003e with a specific URL structure containing path parameters, defined by gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e path parameter is required and represents the resource name of the grant being approved.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires a JSON structure, including the optional \u003ccode\u003ereason\u003c/code\u003e field, which is mandatory when \u003ccode\u003erequireApproverJustification\u003c/code\u003e is set to true in the used \u003ccode\u003eManualApprovals\u003c/code\u003e workflow.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope, and a successful request returns an instance of the \u003ca href=\"https://cloud.google.com/iam/docs/reference/pam/rest/v1beta/folders.locations.entitlements.grants#Grant\"\u003eGrant\u003c/a\u003e resource.\u003c/p\u003e\n"]]],[],null,[]]