[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2024-04-19 UTC."],[[["\u003cp\u003eThis endpoint retrieves the IAM policy for a specified resource, using a POST request to the provided URL template.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003eresource\u003c/code\u003e path parameter, which is a string representing the resource name following the \u003ca href=\"https://cloud.google.com/apis/design/resource_names\"\u003eResource names\u003c/a\u003e convention.\u003c/p\u003e\n"],["\u003cp\u003eThe request body may include an optional \u003ccode\u003eoptions\u003c/code\u003e field of type \u003ccode\u003eGetPolicyOptions\u003c/code\u003e to specify options for the \u003ccode\u003edataExchanges.getIamPolicy\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eA successful request returns a response body containing an instance of the \u003ccode\u003ePolicy\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this endpoint requires one of the listed OAuth scopes or the specified IAM permissions on the target \u003ccode\u003eresource\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.dataExchanges.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/v1beta1/{resource=projects/*/locations/*/dataExchanges/*}: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\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]