Stay organized with collections
Save and categorize content based on your preferences.
Gets the effective Policy on a resource. This is the result of merging
Policies in the resource hierarchy. The returned Policy will not
have an etagset because it is a computed Policy across multiple
resources. Subtrees of Resource Manager resource hierarchy with 'under:'
prefix will not be expanded.
Arguments
Parameters
resource
string
Required. The name of the resource to start computing the effective 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-08-28 UTC."],[],[],null,["# Method: googleapis.cloudresourcemanager.v1.projects.getEffectiveOrgPolicy\n\nGets the effective `Policy` on a resource. This is the result of merging\n`Policies` in the resource hierarchy. The returned `Policy` will not\nhave an `etag`set because it is a computed `Policy` across multiple\nresources. Subtrees of Resource Manager resource hierarchy with 'under:'\nprefix will not be expanded.\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`OrgPolicy`](https://cloud.google.com/workflows/docs/reference/googleapis/cloudresourcemanager/v1/Overview#OrgPolicy).\n\nSubworkflow snippet\n-------------------\n\nSome fields might be optional or required.\nTo identify required fields, refer to the [API documentation](https://cloud.google.com/resource-manager/reference/rest/v1/projects/getEffectiveOrgPolicy). \n\n### YAML\n\n```yaml\n- getEffectiveOrgPolicy:\n call: googleapis.cloudresourcemanager.v1.projects.getEffectiveOrgPolicy\n args:\n resource: ...\n body:\n constraint: ...\n result: getEffectiveOrgPolicyResult\n```\n\n### JSON\n\n```json\n[\n {\n \"getEffectiveOrgPolicy\": {\n \"call\": \"googleapis.cloudresourcemanager.v1.projects.getEffectiveOrgPolicy\",\n \"args\": {\n \"resource\": \"...\",\n \"body\": {\n \"constraint\": \"...\"\n }\n },\n \"result\": \"getEffectiveOrgPolicyResult\"\n }\n }\n]\n```"]]