The documentation you are viewing is for Dapr v1.5 which is an older version of Dapr. For up-to-date documentation, see the latest version.
Azure CosmosDBGremlinAPI 绑定规范
有关 Azure CosmosDBGremlinAPI 绑定组件的详细文档
配置
要设置 Azure CosmosDBGremlinAPI 绑定,请创建一个类型为 bindings.azure.cosmosdb.gremlinapi
的组件。 请参阅本指南,了解如何创建和应用绑定配置。
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: <NAME>
namespace: <NAMESPACE>
spec:
type: bindings.azure.cosmosdb.gremlinapi
version: v1
metadata:
- name: url
value: wss://******.gremlin.cosmos.azure.com:443/
- name: masterKey
value: *****
- name: username
value: *****
Warning
以上示例将密钥明文存储, 更推荐的方式是使用 Secret 组件, 这里。元数据字段规范
字段 | 必填 | 绑定支持 | 详情 | 示例 |
---|---|---|---|---|
url | Y | 输出 | CosmosDBGremlinAPI url | "wss://******.gremlin.cosmos.azure.com:443/" |
masterKey | Y | 输出 | CosmosDBGremlinAPI 帐户 masterKey | "masterKey" |
database | Y | 输出 | CosmosDBGremlinAPI 数据库的用户名 | "username" |
更多详细信息,请参阅快速入门:在 Azure Cosmos Graph DB 中使用 Gremlin。
绑定支持
字段名为 ttlInSeconds
。
query
相关链接
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.