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=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-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 a `POST` method to the specified URL, which includes a dynamic `name` path parameter representing the grant resource."],["The request body requires a JSON object, optionally including a `reason` field if justification is required by the associated `ManualApprovals` workflow."],["A successful request returns a `Grant` object as the response body."],["This operation requires the `https://www.googleapis.com/auth/cloud-platform` OAuth scope for authorization."]]],[]]