[[["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 webpage details how to create a subscription to a Data Clean Room, which is a long-running operation involving the creation of linked datasets.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request is a POST operation to a specific URL utilizing gRPC Transcoding syntax, requiring a resource name of the Data Exchange as a path parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body, in JSON format, requires a destination, a subscription name, and a subscriber contact email, as fields to complete the creation.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests return an instance of Operation, and authorization requires specific OAuth scopes or IAM permissions related to creating subscriptions and subscribing to data exchanges.\u003c/p\u003e\n"],["\u003cp\u003eThe required IAM Permissions are \u003ccode\u003eanalyticshub.subscriptions.create\u003c/code\u003e on the destination resource, and \u003ccode\u003eanalyticshub.dataExchanges.subscribe\u003c/code\u003e on the name resource.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.dataExchanges.subscribe\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\nCreates a Subscription to a Data Clean Room. This is a long-running operation as it will create one or more linked datasets. Throws a Bad Request error if the Data Exchange does not contain any listings.\n\n### HTTP request\n\n`POST https://analyticshub.googleapis.com/v1/{name=projects/*/locations/*/dataExchanges/*}:subscribe`\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 [Operation](/bigquery/docs/reference/analytics-hub/rest/v1/Operation).\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 `destination` resource:\n\n- `analyticshub.subscriptions.create`\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:\n\n- `analyticshub.dataExchanges.subscribe`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]