備註
此資訊適用於 Databricks CLI 版本 0.205 及以上。 Databricks CLI 處於 公開預覽狀態。
Databricks CLI 的使用受限於 Databricks 授權 和 Databricks 隱私權聲明,包括任何使用數據條款。
account custom-app-integration 內的命令群組包含管理自訂 OAuth 應用程式整合的命令。 這些整合是新增和使用自訂 OAuth 應用程式(如 Tableau Cloud for Databricks 在 AWS 雲端)的必要條件。
Databricks Account Custom-App-integration create
建立自訂的 OAuth 應用程式整合。
databricks account custom-app-integration create [flags]
選項
--name string
自訂 OAuth 應用程式名稱。
--confidential
此欄位表示是否需要 OAuth 用戶端秘密來認證此用戶端。
--json JSON
內嵌 JSON 字串或 @path 指向 JSON 檔案的要求本文
範例
以下範例使用命令列旗標建立自訂的 OAuth 應用程式整合:
databricks account custom-app-integration create --name "My Custom App" --confidential
以下範例使用 JSON 建立自訂的 OAuth 應用程式整合:
databricks account custom-app-integration create --json '{"name": "My Custom App", "redirect_urls": ["https://example.com/callback"], "confidential": true}'
以下範例使用 JSON 檔案建立自訂的 OAuth 應用程式整合:
databricks account custom-app-integration create --json @custom-app.json
Databricks Account Custom-App-integration delete
刪除現有的自訂 OAuth 應用程式整合。
databricks account custom-app-integration delete INTEGRATION_ID [flags]
Arguments
INTEGRATION_ID
OAuth 應用程式整合 ID。
選項
範例
以下範例刪除了依 ID 建立的自訂 OAuth 應用程式整合:
databricks account custom-app-integration delete integration-abc123
Databricks Account Custom-App-integration get
取得該整合 ID 的自訂 OAuth 應用程式整合。
databricks account custom-app-integration get INTEGRATION_ID [flags]
Arguments
INTEGRATION_ID
OAuth 應用程式整合 ID。
選項
範例
以下範例透過 ID 進行自訂的 OAuth 應用程式整合:
databricks account custom-app-integration get integration-abc123
Databricks Account Custom-App-integration 列表
取得指定 Databricks 帳號的自訂 OAuth 應用程式整合清單。
databricks account custom-app-integration list [flags]
選項
--include-creator-username
請在回覆中附上創作者的用戶名稱。
--page-size int
每頁要傳回的結果數。
--page-token string
用於擷取下一頁結果的令牌
範例
以下範例列出所有自訂的 OAuth 應用程式整合:
databricks account custom-app-integration list
以下範例列出了帶有分頁功能的自訂 OAuth 應用程式整合:
databricks account custom-app-integration list --page-size 10
以下範例列出了自訂的 OAuth 應用程式整合,包括創作者使用者名稱:
databricks account custom-app-integration list --include-creator-username
DataBricks 帳戶自訂應用程式整合更新
更新現有的自訂 OAuth 應用程式整合。
databricks account custom-app-integration update INTEGRATION_ID [flags]
Arguments
INTEGRATION_ID
OAuth 應用程式整合 ID。
選項
--json JSON
內嵌 JSON 字串或 @path 指向 JSON 檔案的要求本文
範例
以下範例更新了使用 JSON 的自訂 OAuth 應用程式整合:
databricks account custom-app-integration update integration-abc123 --json '{"name": "Updated App Name", "redirect_urls": ["https://example.com/new-callback"]}'
以下範例是透過 JSON 檔案更新自訂的 OAuth 應用程式整合:
databricks account custom-app-integration update integration-abc123 --json @update-custom-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 字串
如果適用,要使用的套件組合目標