ERFORDERLICH: Die vollständige Richtlinie, die auf resource angewendet werden soll. Die Größe der Richtlinie ist auf einige 10 KB beschränkt. Eine leere Richtlinie ist zwar gültig, manche Google Cloud-Dienste (zum Beispiel Projekte) lehnen aber eine solche Richtlinie eventuell ab.
OPTIONAL: FieldMask, die angibt, welche Felder der Richtlinie geändert werden sollen. Dabei werden nur die Felder in der Maske geändert. Wenn keine Maske angegeben ist, wird die folgende Standardmaske verwendet:
paths: "bindings, etag"
Dies ist eine durch Kommas getrennte Liste vollständig qualifizierter Feldnamen. Beispiel: "user.displayName,photo".
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von Policy.
[[["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-04-29 (UTC)."],[[["\u003cp\u003eThis webpage details how to set the IAM policy for resources within the Analytics Hub using the \u003ccode\u003esetIamPolicy\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePOST\u003c/code\u003e HTTP request is made to a specific URL, following gRPC Transcoding syntax, and requires a resource path parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body contains a JSON representation with fields for a complete \u003ccode\u003epolicy\u003c/code\u003e object and an optional \u003ccode\u003eupdateMask\u003c/code\u003e for specifying policy modifications.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests will return a response body containing a \u003ccode\u003ePolicy\u003c/code\u003e object, and this method requires specific OAuth scopes and IAM permissions based on the targeted resource type.\u003c/p\u003e\n"],["\u003cp\u003eThere is a feature in the page to test the API using the try it! feature.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.dataExchanges.listings.setIamPolicy\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\nSets the IAM policy.\n\n### HTTP request\n\n`POST https://analyticshub.googleapis.com/v1/{resource=projects/*/locations/*/dataExchanges/*/listings/*}:setIamPolicy`\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.setIamPolicy`\n- `analyticshub.listings.setIamPolicy`\n- `analyticshub.subscriptions.setIamPolicy`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]