[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2024-05-23 (UTC)."],[[["\u003cp\u003eThis page details how to retrieve the IAM policy for a specified resource using a POST request to the \u003ccode\u003egetIamPolicy\u003c/code\u003e endpoint.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003eresource\u003c/code\u003e path parameter indicating the target resource and an optional \u003ccode\u003eoptions\u003c/code\u003e field within the request body for specifying policy retrieval options.\u003c/p\u003e\n"],["\u003cp\u003eA successful request returns a \u003ccode\u003ePolicy\u003c/code\u003e object in the response body, detailing the IAM policy associated with the resource.\u003c/p\u003e\n"],["\u003cp\u003eTo authorize the request, users must possess either \u003ccode\u003ehttps://www.googleapis.com/auth/bigquery\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scopes, and the correct IAM permission for the resource.\u003c/p\u003e\n"],["\u003cp\u003eThe required IAM permissions to call this API are one of \u003ccode\u003eanalyticshub.dataExchanges.getIamPolicy\u003c/code\u003e, \u003ccode\u003eanalyticshub.listings.getIamPolicy\u003c/code\u003e, or \u003ccode\u003eanalyticshub.subscriptions.getIamPolicy\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.dataExchanges.listings.getIamPolicy\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [Try it!](#try-it)\n\nGets the IAM policy.\n\n### HTTP request\n\n`POST https://analyticshub.googleapis.com/v1/{resource=projects/*/locations/*/dataExchanges/*/listings/*}:getIamPolicy`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [Policy](/bigquery/docs/reference/analytics-hub/rest/Shared.Types/Policy).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/bigquery`\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\n### IAM Permissions\n\nRequires **one of** the following [IAM](https://cloud.google.com/iam/docs) permissions on the `resource` resource, depending on the resource type:\n\n- `analyticshub.dataExchanges.getIamPolicy`\n- `analyticshub.listings.getIamPolicy`\n- `analyticshub.subscriptions.getIamPolicy`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]