Obligatorio. La ruta del recurso superior del intercambio de datos. p.ej., projects/myproject/locations/US.
Parámetros de búsqueda
Parámetros
dataExchangeId
string
Obligatorio. El ID del intercambio de datos. Debe contener solo letras Unicode, números (0-9) y guiones bajos (_). No debe usar caracteres que requieran escapes de URL ni caracteres fuera de ASCII, espacios. Longitud máxima: 100 bytes.
Cuerpo de la solicitud
El cuerpo de la solicitud contiene una instancia de DataExchange.
Cuerpo de la respuesta
Si el proceso se realiza de forma correcta, el cuerpo de la respuesta contiene una instancia recién creada de DataExchange.
Alcances de autorización
Se necesita uno de los siguientes alcances de OAuth:
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2024-05-23 (UTC)"],[[["\u003cp\u003eThis webpage outlines how to create a new data exchange using a \u003ccode\u003ePOST\u003c/code\u003e request to the specified URL endpoint: \u003ccode\u003ehttps://analyticshub.googleapis.com/v1/{parent=projects/*/locations/*}/dataExchanges\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003eparent\u003c/code\u003e path parameter and a \u003ccode\u003edataExchangeId\u003c/code\u003e query parameter to be specified for the new data exchange creation.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain an instance of the \u003ccode\u003eDataExchange\u003c/code\u003e resource, while the successful response body will include the newly created \u003ccode\u003eDataExchange\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eTo authorize the creation of a data exchange, either the \u003ccode\u003ehttps://www.googleapis.com/auth/bigquery\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope is required.\u003c/p\u003e\n"],["\u003cp\u003eCreating a data exchange requires the \u003ccode\u003eanalyticshub.dataExchanges.create\u003c/code\u003e IAM permission on the \u003ccode\u003eparent\u003c/code\u003e 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/v1/{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/v1/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/v1/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)."]]