Required. The resource that the policy is attached to, along with the kind of policy to list. Format: policies/{attachmentPoint}/denypolicies
The attachment point is identified by its URL-encoded full resource name, which means that the forward-slash character, /, must be written as %2F. For example, policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies.
For organizations and folders, use the numeric ID in the full resource name. For projects, you can use the alphanumeric or the numeric ID.
Query parameters
Parameters
pageSize
integer
The maximum number of policies to return. IAM ignores this value and uses the value 1000.
pageToken
string
A page token received in a ListPoliciesResponse. Provide this token to retrieve the next page.
Request body
The request body must be empty.
Response body
Response message for policies.listPolicies.
If successful, the response body contains data with the following structure:
[[["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 endpoint retrieves a list of policy metadata attached to a specified resource, omitting the detailed policy rules.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request uses \u003ccode\u003eGET\u003c/code\u003e with a URL that requires a \u003ccode\u003eparent\u003c/code\u003e path parameter specifying the resource and policy type, using URL-encoded format for forward-slashes.\u003c/p\u003e\n"],["\u003cp\u003eThe request accepts optional query parameters, \u003ccode\u003epageSize\u003c/code\u003e (which is ignored, with 1000 as the default) and \u003ccode\u003epageToken\u003c/code\u003e for pagination.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, and the successful response includes a JSON structure containing an array of \u003ccode\u003epolicies\u003c/code\u003e and an optional \u003ccode\u003enextPageToken\u003c/code\u003e for further pagination.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires either the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/iam\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,[]]