Erforderlich. Der Pfad der übergeordneten Ressource des Datenaustauschs. z.B. projects/myproject/locations/US.
Abfrageparameter
Parameter
dataExchangeId
string
Erforderlich. Die ID des Datenaustauschs. Sie darf nur Unicode-Buchstaben, Ziffern (0–9), Unterstriche (_) enthalten. Es dürfen keine Zeichen verwendet werden, die URL-Escaping erfordern, oder Zeichen außerhalb von ASCII, Leerzeichen. Maximale Länge: 100 Bytes
Anfragetext
Der Anfragetext enthält eine Instanz von DataExchange.
Antworttext
Bei Erfolg enthält der Antworttext eine neu erstellte Instanz von DataExchange.
[[["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 webpage outlines how to create a new data exchange using the Analytics Hub API.\u003c/p\u003e\n"],["\u003cp\u003eThe required HTTP request is a POST request to a specific URL that includes the parent resource path and uses gRPC Transcoding.\u003c/p\u003e\n"],["\u003cp\u003eCreating a data exchange requires specifying a \u003ccode\u003edataExchangeId\u003c/code\u003e within the query parameters, with specific character restrictions.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain an instance of the \u003ccode\u003eDataExchange\u003c/code\u003e resource, and a successful response will return a newly created instance of the same resource.\u003c/p\u003e\n"],["\u003cp\u003eCreating a data exchange also requires specific OAuth scopes (\u003ccode\u003ehttps://www.googleapis.com/auth/bigquery\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e) and the \u003ccode\u003eanalyticshub.dataExchanges.create\u003c/code\u003e IAM permission on the parent resource.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.dataExchanges.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [Try it!](#try-it)\n\nCreates a new data exchange.\n\n### HTTP request\n\n`POST https://analyticshub.googleapis.com/v1beta1/{parent=projects/*/locations/*}/dataExchanges`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [DataExchange](/bigquery/docs/reference/analytics-hub/rest/v1beta1/projects.locations.dataExchanges#DataExchange).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [DataExchange](/bigquery/docs/reference/analytics-hub/rest/v1beta1/projects.locations.dataExchanges#DataExchange).\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 the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:\n\n- `analyticshub.dataExchanges.create`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]