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=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-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 is a `POST` method to a specific URL, utilizing gRPC Transcoding syntax, with a required `name` path parameter specifying the grant resource being approved."],["The request body, represented in JSON, may optionally include a `reason` field, which becomes required if the `ManualApprovals` workflow's `requireApproverJustification` field is set to true."],["A successful response will return a `Grant` instance in the response body, as described in the provided documentation."],["The endpoint requires `https://www.googleapis.com/auth/cloud-platform` OAuth scope for authorization."]]],[]]