接続を共有する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
接続の IAM ポリシーを設定して、ユーザーまたはグループと接続を共有します。
さらに詳しい情報
このコードサンプルを含む詳細なドキュメントについては、以下をご覧ください。
コードサンプル
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],[],[[["This page details how to set the IAM policy on a connection to share it with specific users or groups."],["The provided Java code sample demonstrates how to share a connection by setting its IAM policy using the `ConnectionServiceClient`."],["The code requires specifying the project ID, location, and connection ID to identify the connection being shared."],["Sharing a connection involves creating a `Binding` to define the members (users or groups) and the role they should have (e.g., `roles/bigquery.connectionUser`)."],["The sample shows that you can set the IAM policy on a connection and after the code is executed, it outputs \"Connection shared successfully\"."]]],[]]