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
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
| name | 
 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 | 
 Optional. The reason for approving this grant. This is required if the  | 
Response body
If successful, the response body contains an instance of Grant.
Authorization scopes
Requires the following OAuth scope:
- https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.