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/v1/{name=organizations/*/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-09-17 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, particularly a required `name` parameter indicating the grant resource."],["The request body, represented in JSON, requires an optional `reason` field, which becomes mandatory if `requireApproverJustification` is true."],["A successful response returns a `Grant` instance, providing details about the approved grant."],["Authorization for this operation requires the OAuth scope `https://www.googleapis.com/auth/cloud-platform`."]]],[]]