Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
使用 gcloud CLI
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本頁說明如何開始使用 Google Cloud CLI,以便您用來管理 Datastream 中的私人連線設定、連線設定檔和串流。
Google Cloud CLI 提供 Google Cloud CLI,可用於與 Datastream 和其他 Google Cloud 服務互動。gcloud CLI 會使用 API 存取 Datastream,因此您必須先啟用 API,才能使用該工具。
您可以在 Datastream 說明文件的以下頁面中查看 gcloud 範例:
開始使用 Google Cloud CLI
如要開始使用 gcloud CLI,請參閱 Google Cloud CLI 說明文件。您可以使用 --help 標記取得工具、資源和指令的相關說明:
gcloud datastream --help
gcloud datastream private-connections create --help
gcloud datastream connection-profiles create --help
gcloud datastream streams create --help
最後,使用兩個指令將專案設為預設專案。下方的首個指令會列出 gcloud CLI 的設定,包括已設定的任何預設專案。第二個指令會設定預設專案。
gcloud config list
gcloud config set project [PROJECT_ID]
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-05-16 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2026-05-16 (世界標準時間)。"],[],[]]