Stay organized with collections
Save and categorize content based on your preferences.
Gets the access control policy for a Queue. Returns an empty policy if
the resource exists and does not have a policy set. Authorization
requires the following Google IAM
permission on the specified resource parent: *
cloudtasks.queues.getIamPolicy
Arguments
Parameters
resource
string
REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.
[[["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-29 UTC."],[],[],null,["# Method: googleapis.cloudtasks.v2.projects.locations.queues.getIamPolicy\n\nGets the access control policy for a Queue. Returns an empty policy if\nthe resource exists and does not have a policy set. Authorization\nrequires the following [Google IAM](https://cloud.google.com/iam)\npermission on the specified resource parent: \\*\n`cloudtasks.queues.getIamPolicy`\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`Policy`](/workflows/docs/reference/googleapis/cloudtasks/v2/Overview#Policy).\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/tasks/docs/reference/rest/v2/projects.locations.queues/getIamPolicy). \n\n### YAML\n\n```yaml\n- getIamPolicy:\n call: googleapis.cloudtasks.v2.projects.locations.queues.getIamPolicy\n args:\n resource: ...\n body:\n options:\n requestedPolicyVersion: ...\n result: getIamPolicyResult\n```\n\n### JSON\n\n```json\n[\n {\n \"getIamPolicy\": {\n \"call\": \"googleapis.cloudtasks.v2.projects.locations.queues.getIamPolicy\",\n \"args\": {\n \"resource\": \"...\",\n \"body\": {\n \"options\": {\n \"requestedPolicyVersion\": \"...\"\n }\n }\n },\n \"result\": \"getIamPolicyResult\"\n }\n }\n]\n```"]]