在现有数据 API 生成器配置文件中配置非实体运行时和数据源属性。 未指定的选项使现有值保持不变。 如果提供的任何选项无效,则整个更新将失败(全无)。
Syntax
dab configure [options]
注释
此命令不会更改节 entities 。 用于 dab update 实体更改。
快速浏览
| 选项 | 概要 |
|---|---|
-c, --config |
配置文件的路径(默认值 dab-config.json)。 |
Azure Key Vault
| 选项 | 概要 |
|---|---|
--azure-key-vault.endpoint |
Azure Key Vault 基本终结点。 |
--azure-key-vault.retry-policy.delay-seconds |
重试之间的延迟。 |
--azure-key-vault.retry-policy.max-count |
最大重试尝试次数。 |
--azure-key-vault.retry-policy.max-delay-seconds |
指数重试的最大延迟。 |
--azure-key-vault.retry-policy.mode |
重试策略模式(固定或指数)。 |
--azure-key-vault.retry-policy.network-timeout-seconds |
网络调用超时。 |
缓存
| 选项 | 概要 |
|---|---|
--runtime.cache.enabled |
启用或禁用全局缓存。 |
--runtime.cache.ttl-seconds |
全局缓存 TTL(以秒为单位)。 |
数据源
| 选项 | 概要 |
|---|---|
--data-source.connection-string |
设置数据库连接字符串。 |
--data-source.database-type |
设置数据库类型(mssql、mysql、postgresql、cosmosdb_postgresql、cosmosdb_nosql)。 |
--data-source.options.container |
容器名称(Cosmos DB)。 |
--data-source.options.database |
数据库名称(Cosmos DB、PostgreSQL)。 |
--data-source.options.schema |
架构名称(SQL Server、PostgreSQL)。 |
--data-source.options.set-session-context |
启用 SQL Server 会话上下文(仅限 mssql)。 |
GraphQL
| 选项 | 概要 |
|---|---|
--runtime.graphql.allow-introspection |
启用或禁用 GraphQL 反省。 |
--runtime.graphql.depth-limit |
限制最大查询深度。 |
--runtime.graphql.enabled |
启用或禁用 GraphQL 终结点。 |
--runtime.graphql.multiple-mutations.create.enabled |
启用多个创建突变。 |
--runtime.graphql.path |
GraphQL 终结点的路径前缀。 |
Host
| 选项 | 概要 |
|---|---|
--runtime.host.authentication.jwt.audience |
JWT 受众声明。 |
--runtime.host.authentication.jwt.issuer |
JWT 颁发者声明。 |
--runtime.host.authentication.provider |
身份验证提供程序。 |
--runtime.host.cors.allow-credentials |
CORS 是否允许凭据。 |
--runtime.host.cors.origins |
允许的 CORS 源。 |
--runtime.host.mode |
设置主机模式:开发或生产。 |
MCP
| 选项 | 概要 |
|---|---|
--runtime.mcp.enabled |
启用或禁用 MCP 终结点。 |
--runtime.mcp.path |
MCP 终结点的路径前缀。 |
MCP DML 工具
| 选项 | 概要 |
|---|---|
--runtime.mcp.dml-tools.create-record.enabled |
启用或禁用创建记录工具。 |
--runtime.mcp.dml-tools.delete-record.enabled |
启用或禁用删除记录工具。 |
--runtime.mcp.dml-tools.describe-entities.enabled |
启用或禁用描述实体工具。 |
--runtime.mcp.dml-tools.enabled |
启用或禁用所有 MCP DML 工具。 |
--runtime.mcp.dml-tools.execute-entity.enabled |
启用或禁用执行实体工具。 |
--runtime.mcp.dml-tools.read-records.enabled |
启用或禁用读取记录工具。 |
--runtime.mcp.dml-tools.update-record.enabled |
启用或禁用更新记录工具。 |
REST
| 选项 | 概要 |
|---|---|
--runtime.rest.enabled |
启用或禁用 REST 终结点。 |
--runtime.rest.path |
REST 终结点的路径前缀。 |
--runtime.rest.request-body-strict |
强制实施严格的请求正文验证。 |
遥测 - Azure Log Analytics
| 选项 | 概要 |
|---|---|
--runtime.telemetry.azure-log-analytics.auth.custom-table-name |
自定义表名称。 |
--runtime.telemetry.azure-log-analytics.auth.dce-endpoint |
数据收集终结点。 |
--runtime.telemetry.azure-log-analytics.auth.dcr-immutable-id |
数据收集规则 ID。 |
--runtime.telemetry.azure-log-analytics.dab-identifier |
区分日志源。 |
--runtime.telemetry.azure-log-analytics.enabled |
启用 Azure Log Analytics 遥测。 |
--runtime.telemetry.azure-log-analytics.flush-interval-seconds |
以秒为单位刷新节奏。 |
遥测 - 文件接收器
| 选项 | 概要 |
|---|---|
--runtime.telemetry.file.enabled |
启用文件接收器遥测。 |
--runtime.telemetry.file.file-size-limit-bytes |
滚动之前每个文件的最大大小。 |
--runtime.telemetry.file.path |
日志文件的路径。 |
--runtime.telemetry.file.retained-file-count-limit |
保留的最大文件数。 |
--runtime.telemetry.file.rolling-interval |
滚动间隔(分钟、小时、日、月、年、无限)。 |