[[["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\u003eThis page details the \u003ccode\u003egrants.revoke\u003c/code\u003e method, which is used to immediately revoke access for a grant in a non-terminal state.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request for revoking a grant is a \u003ccode\u003ePOST\u003c/code\u003e request to a specific URL using gRPC Transcoding syntax, with the grant's name as a required path parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires a JSON structure that includes an optional \u003ccode\u003ereason\u003c/code\u003e field, which is a string, explaining the revocation of the grant.\u003c/p\u003e\n"],["\u003cp\u003eA successful response returns an \u003ccode\u003eOperation\u003c/code\u003e instance, and this action requires the \u003ccode\u003eprivilegedaccessmanager.grants.revoke\u003c/code\u003e IAM permission and the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: organizations.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=organizations/*/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)."]]