Azure CosmosDBGremlinAPI binding spec

Detailed documentation on the Azure CosmosDBGremlinAPI binding component

Component format

To setup Azure CosmosDBGremlinAPI binding create a component of type bindings.azure.cosmosdb.gremlinapi. See this guide on how to create and apply a binding configuration.

  1. apiVersion: dapr.io/v1alpha1
  2. kind: Component
  3. metadata:
  4. name: <NAME>
  5. namespace: <NAMESPACE>
  6. spec:
  7. type: bindings.azure.cosmosdb.gremlinapi
  8. version: v1
  9. metadata:
  10. - name: url
  11. value: wss://******.gremlin.cosmos.azure.com:443/
  12. - name: masterKey
  13. value: *****
  14. - name: username
  15. value: *****

Warning

The above example uses secrets as plain strings. It is recommended to use a secret store for the secrets as described here.

Spec metadata fields

FieldRequiredBinding supportDetailsExample
urlYOutputThe CosmosDBGremlinAPI url“wss://**.gremlin.cosmos.azure.com:443/“
masterKeyYOutputThe CosmosDBGremlinAPI account master key“masterKey”
usernameYOutputThe username of the CosmosDBGremlinAPI database“/dbs/<database_name>/colls/<graph_name>”

For more information see Quickstart: Azure Cosmos Graph DB using Gremlin.

Binding support

This component supports output binding with the following operations:

  • query

Request payload sample

  1. {
  2. "data": {
  3. "gremlin": "g.V().count()"
  4. },
  5. "operation": "query"
  6. }

Last modified February 18, 2022: Update setup-jetstream.md (#2200) (428d8c2)