REQUIRED: The complete policy to be applied to the resource. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them.
Response body
If successful, the response body contains an instance of Policy.
[[["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-03-07 UTC."],[[["This document details the `setIamPolicy` method for the legacy Apigee Registry API, which is no longer supported and advises using the newer Apigee API hub APIs."],["The `setIamPolicy` HTTP request utilizes a `POST` method to a specific URL and requires a `resource` path parameter to identify the target."],["The request body must include a `policy` field, formatted as a JSON object, which specifies the complete access control policy for the designated resource."],["A successful request will return a `Policy` instance in the response body, while errors such as `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` are possible."],["Executing the `setIamPolicy` method requires the OAuth scope `https://www.googleapis.com/auth/cloud-platform` for authorization."]]],[]]