Stay organized with collections
Save and categorize content based on your preferences.
Gets the access control policy for a resource. May be empty if no such
policy or resource exists. Caution This resource is intended for use
only by third-party partners who are creating Cloud Marketplace images.
Arguments
Parameters
project
string
Required. Project ID for this request.
resource
string
Required. Name or id of the resource for this request.
[[["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.compute.beta.licenses.getIamPolicy\n\nGets the access control policy for a resource. May be empty if no such\npolicy or resource exists. *Caution* This resource is intended for use\nonly by third-party partners who are creating Cloud Marketplace images.\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`Policy`](/workflows/docs/reference/googleapis/compute/beta/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/compute/docs/reference/rest/beta/licenses/getIamPolicy). \n\n### YAML\n\n```yaml\n- getIamPolicy:\n call: googleapis.compute.beta.licenses.getIamPolicy\n args:\n project: ...\n resource: ...\n optionsRequestedPolicyVersion: ...\n result: getIamPolicyResult\n```\n\n### JSON\n\n```json\n[\n {\n \"getIamPolicy\": {\n \"call\": \"googleapis.compute.beta.licenses.getIamPolicy\",\n \"args\": {\n \"project\": \"...\",\n \"resource\": \"...\",\n \"optionsRequestedPolicyVersion\": \"...\"\n },\n \"result\": \"getIamPolicyResult\"\n }\n }\n]\n```"]]