備註
此資訊適用於 Databricks CLI 版本 0.205 及以上。 Databricks CLI 處於 公開預覽狀態。
Databricks CLI 的使用受限於 Databricks 授權 和 Databricks 隱私權聲明,包括任何使用數據條款。
account published-app-integration 內的命令群組包含管理已發佈 OAuth 應用程式整合的命令。 這些整合是新增及使用已發佈的 OAuth 應用程式(如 Tableau Desktop for Databricks 在 AWS 雲端)所必需的。
Databricks Account published-app-integration create
建立已發佈的 OAuth 應用程式整合。
databricks account published-app-integration create [flags]
選項
--app-id string
OAuth 已發佈的應用程式整合的應用程式 ID。
--json JSON
內嵌 JSON 字串或 @path 指向 JSON 檔案的要求本文
範例
以下範例使用命令列旗標建立已發佈的 OAuth 應用程式整合:
databricks account published-app-integration create --app-id "tableau-desktop"
以下範例使用 JSON 建立已發佈的 OAuth 應用程式整合:
databricks account published-app-integration create --json '{"app_id": "tableau-desktop"}'
以下範例透過 JSON 檔案建立已發佈的 OAuth 應用程式整合:
databricks account published-app-integration create --json @published-app.json
Databricks account published-app-integration delete
刪除已發佈的 OAuth 應用程式整合。
databricks account published-app-integration delete INTEGRATION_ID [flags]
Arguments
INTEGRATION_ID
OAuth 應用程式整合 ID。
選項
範例
以下範例刪除了以 ID 發佈的 OAuth 應用程式整合:
databricks account published-app-integration delete integration-abc123
Databricks account published-app-integration get
取得該整合 ID 的已發佈 OAuth 應用程式整合。
databricks account published-app-integration get INTEGRATION_ID [flags]
Arguments
INTEGRATION_ID
OAuth 應用程式整合 ID。
選項
範例
以下範例透過 ID 獲得已發佈的 OAuth 應用整合:
databricks account published-app-integration get integration-abc123
Databricks Account published-app-integration list
取得指定 Databricks 帳號已發佈的 OAuth 應用程式整合清單。
databricks account published-app-integration list [flags]
選項
--page-size int
每頁要傳回的結果數。
--page-token string
用於擷取下一頁結果的令牌
範例
以下範例列出所有已發佈的 OAuth 應用程式整合:
databricks account published-app-integration list
以下範例列出已發佈的 OAuth 應用程式整合與分頁功能:
databricks account published-app-integration list --page-size 10
以下範例列出下一頁已發佈的 OAuth 應用程式整合:
databricks account published-app-integration list --page-token "next_page_token"
Databricks 帳號發佈-應用程式整合更新
更新已發佈的 OAuth 應用程式整合。
databricks account published-app-integration update INTEGRATION_ID [flags]
Arguments
INTEGRATION_ID
OAuth 應用程式整合 ID。
選項
--json JSON
內嵌 JSON 字串或 @path 指向 JSON 檔案的要求本文
範例
以下範例更新已發佈的 OAuth 應用程式整合,使用 JSON:
databricks account published-app-integration update integration-abc123 --json '{"app_id": "tableau-desktop"}'
以下範例是透過 JSON 檔案更新已發佈的 OAuth 應用程式整合:
databricks account published-app-integration update integration-abc123 --json @update-published-app.json
全域旗標
--debug
是否要啟用偵錯記錄。
-h 或 --help
顯示 Databricks CLI、相關命令群組或相關命令的幫助說明。
--log-file 字串
字串,表示要寫入輸出記錄檔的檔案。 若未指定此旗標,則預設值是將輸出記錄寫入 stderr。
--log-format 格式
記錄格式類型,text 或 json。 預設值是 text。
--log-level 字串
表示日誌格式層級的字串。 若未指定,則日誌的格式層級功能將被停用。
-o, --output 類型
指令輸出類型,text 或 json。 預設值是 text。
-p, --profile 字串
用於執行命令的~/.databrickscfg檔案中的配置檔名稱。 如果未指定此旗標,則如果存在,則會使用名為 DEFAULT 的配置檔。
--progress-format 格式
顯示進度記錄的格式:default、、appendinplace、 或json
-t, --target 字串
如果適用,要使用的套件組合目標