[[["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\u003eThe \u003ccode\u003egrants.revoke\u003c/code\u003e method immediately revokes access for a grant that is in a non-terminal state.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request to revoke a grant is a \u003ccode\u003ePOST\u003c/code\u003e request to the specified URL, including the grant's name in the path.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should include an optional \u003ccode\u003ereason\u003c/code\u003e string field, detailing why the grant is being revoked, using a JSON format.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful revocation results in a response body containing an \u003ccode\u003eOperation\u003c/code\u003e instance, indicating the operation's status.\u003c/p\u003e\n"],["\u003cp\u003eRevoking a grant requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope and the \u003ccode\u003eprivilegedaccessmanager.grants.revoke\u003c/code\u003e IAM permission.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.entitlements.grants.revoke\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [Examples](#examples)\n- [Try it!](#try-it)\n\n`grants.revoke` is used to immediately revoke access for a grant. This method can be called when the grant is in a non-terminal state.\n\n### HTTP request\n\n`POST https://privilegedaccessmanager.googleapis.com/v1/{name=projects/*/locations/*/entitlements/*/grants/*}:revoke`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/iam/docs/reference/pam/rest/Shared.Types/ListOperationsResponse#Operation).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:\n\n- `privilegedaccessmanager.grants.revoke`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]