databricks-unity-gateway
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUnity Gateway
Unity Gateway
Use the parent skill for CLI authentication and profile selection.
databricks-coreUnity Gateway provides Unity Catalog securables for governed access to AI services. The CLI
command group keeps the earlier product name: .
databricks ai-gateway --help使用父级 skill 进行 CLI 身份验证和配置文件选择。
databricks-coreUnity Gateway 为 Unity Catalog securables 提供受治理的 AI 服务访问能力。CLI
命令组仍沿用之前的产品名称:。
databricks ai-gateway --helpChoose the Correct Gateway
选择正确的 Gateway
| Request | Use |
|---|---|
| Unity Gateway model service, MCP service, or model provider service | This skill and |
AI Gateway configuration on a Model Serving endpoint, including | |
| Lakeflow Connect ingestion gateway | |
Treat Unity AI Gateway as an earlier name for Unity Gateway when the resource is a
Unity Catalog securable. Do not translate legacy Model Serving AI Gateway resources into
Unity Gateway resources unless the user explicitly requests a migration.
| 请求 | 使用 |
|---|---|
| Unity Gateway 模型服务、MCP 服务或模型提供商服务 | 本 skill 和 |
Model Serving 端点上的 AI Gateway 配置,包括 | |
| Lakeflow Connect 摄取网关 | |
当资源是 Unity Catalog securable 时,将 Unity AI Gateway 视为 Unity Gateway 的旧名称。除非用户明确要求迁移,否则不要将旧版 Model Serving AI Gateway 资源转换为 Unity Gateway 资源。
CLI Workflow
CLI 工作流
Use the Databricks CLI for resource lifecycle and permission management. Do not substitute
direct REST calls or a Databricks SDK for those operations. Python clients are supported
for querying model and model provider services; read Query services.
An explicit request for Unity Gateway, Unity AI Gateway, or
belongs to this skill. Do not switch to
merely because the request involves a model service or a
workspace. Use that skill only for a legacy per-endpoint AI Gateway operation or when a
provisioned-throughput destination requires Model Serving endpoint details.
databricks ai-gatewaydatabricks-model-serving-
Verify the CLI meets the minimum version:bash
databricks --version -
Inspect the command and the relevant operation before constructing a payload:bash
databricks ai-gateway --help databricks ai-gateway <operation> --help -
Pass create and update configuration through. Use an explicit profile when profile-based authentication is required:
--jsonbashdatabricks ai-gateway <operation> --json @payload.json --profile <PROFILE>
Do not invent JSON fields from similarly named legacy APIs. Build the payload from the
installed CLI help and the Unity Gateway documentation for the selected service type.
使用 Databricks CLI 管理资源生命周期和权限。不要使用直接 REST 调用或 Databricks SDK 替代这些操作。查询模型服务和模型提供商服务时支持使用 Python 客户端;请阅读 查询服务。
明确提及 Unity Gateway、Unity AI Gateway 或 的请求属于本 skill 的处理范围。不要仅仅因为请求涉及模型服务或 workspace 就切换到 。仅当请求涉及旧版的单端点 AI Gateway 操作,或预配置吞吐量目的地需要 Model Serving 端点详情时,才使用该 skill。
databricks ai-gatewaydatabricks-model-serving-
验证 CLI 是否满足最低版本要求:bash
databricks --version -
在构建 payload 前,检查命令和相关操作:bash
databricks ai-gateway --help databricks ai-gateway <operation> --help -
通过传递创建和更新配置。需要基于配置文件进行身份验证时,请指定配置文件:
--jsonbashdatabricks ai-gateway <operation> --json @payload.json --profile <PROFILE>
不要根据名称相似的旧版 API 虚构 JSON 字段。请根据已安装 CLI 的帮助信息和所选服务类型的 Unity Gateway 文档构建 payload。
Service Types
服务类型
| Service type | CLI operations |
|---|---|
| Model service | |
| MCP service | |
| Model provider service | |
| 服务类型 | CLI 操作 |
|---|---|
| 模型服务 | |
| MCP 服务 | |
| 模型提供商服务 | |
Querying and permissions
查询与权限
- Before writing Python that invokes a model or model provider service, read references/querying.md.
- Before checking, granting, or revoking Unity Gateway access, read references/permissions.md.
- Before any model-service operation, read references/model-services.md. It contains the current resource-name conventions, JSON payload fields, required-input gate, and lifecycle commands.
- Before any MCP-service operation, read references/mcp-services.md for the equivalent MCP-specific contract.
- Before any model-provider-service operation, read references/model-provider-services.md.
- Before setting up a spend budget or spend alert on Unity Gateway usage, read references/budgets.md.
- Before any account-scoped operation (account groups as grant principals, account budgets), read references/account-access.md.
Do not fetch public documentation for fields already covered by these references. Consult the
authoritative documentation only when a required field is absent from the reference or the
user explicitly asks for the latest documentation. Do not assign a Beta or preview status
unless the installed CLI help or current documentation explicitly does so.
- 在编写调用模型服务或模型提供商服务的 Python 代码前,请阅读 references/querying.md。
- 在检查、授予或撤销 Unity Gateway 访问权限前,请阅读 references/permissions.md。
- 在执行任何模型服务操作前,请阅读 references/model-services.md。其中包含当前资源命名约定、JSON payload 字段、必需输入检查以及生命周期命令。
- 在执行任何 MCP 服务操作前,请阅读 references/mcp-services.md,了解对应的 MCP 专用约定。
- 在执行任何模型提供商服务操作前,请阅读 references/model-provider-services.md。
- 在为 Unity Gateway 使用量设置消费预算或消费警报前,请阅读 references/budgets.md。
- 在执行任何账户范围操作(作为授权主体的账户组、账户预算)前,请阅读 references/account-access.md。
如果这些参考资料已涵盖相关字段,请勿获取公开文档。仅当参考资料中缺少必需字段或用户明确要求获取最新文档时,才查阅权威文档。除非已安装的 CLI 帮助信息或当前文档明确说明,否则不要将功能标记为 Beta 或预览版。
Migration from Model Serving to Unity Gateway
从 Model Serving 迁移到 Unity Gateway
When migrating from workspace-scoped Model Serving endpoints to Unity Catalog-scoped Unity Gateway services, read references/model-serving-migration.md.
从 workspace 范围的 Model Serving 端点迁移到 Unity Catalog 范围的 Unity Gateway 服务时,请阅读 references/model-serving-migration.md。
Authoritative Documentation
权威文档
- Unity Gateway overview
- Unity Gateway release notes
- Unity Gateway developer documentation
- Model service API reference
- MCP service API reference
- Model provider service API reference
- Query model services
- Open Responses specification
- Open Responses provider behavior on Databricks
- Query model provider services
- Model service requirements and grants
- Model provider service governance
- Routing and fallbacks
- Rate limits
- Register an external MCP server