Microsoft.DocumentDB databaseAccounts/apis/databases/graphs

The databaseAccounts/apis/databases/graphs resource type can be deployed to: Resource groups.

To learn about resource group deployments, see Bicep or ARM template.

Template format

To create a Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs@2016-03-31' = {
  name: 'string'
  properties: {
    options: {}
    resource: {
      conflictResolutionPolicy: {
        conflictResolutionPath: 'string'
        conflictResolutionProcedure: 'string'
        mode: 'string'
      }
      defaultTtl: int
      id: 'string'
      indexingPolicy: {
        automatic: bool
        excludedPaths: [
          {
            path: 'string'
          }
        ]
        includedPaths: [
          {
            indexes: [
              {
                dataType: 'string'
                kind: 'string'
                precision: int
              }
            ]
            path: 'string'
          }
        ]
        indexingMode: 'string'
      }
      partitionKey: {
        kind: 'string'
        paths: [ 'string' ]
      }
      uniqueKeyPolicy: {
        uniqueKeys: [
          {
            paths: [ 'string' ]
          }
        ]
      }
    }
  }
}

Property values

databaseAccounts/apis/databases/graphs

Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
'Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs'
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
'2016-03-31'
name The resource name

See how to set names and types for child resources in Bicep or JSON ARM templates.
string (required)
properties The properties of an Azure Cosmos DB Gremlin graph GremlinGraphCreateUpdateProperties (required)

GremlinGraphCreateUpdateProperties

Name Description Value
options object (required)
resource GremlinGraphResource (required)

GremlinGraphResource

Name Description Value
conflictResolutionPolicy ConflictResolutionPolicy
defaultTtl int
id string (required)
indexingPolicy IndexingPolicy
partitionKey ContainerPartitionKey
uniqueKeyPolicy UniqueKeyPolicy

ConflictResolutionPolicy

Name Description Value
conflictResolutionPath string
conflictResolutionProcedure string
mode 'Custom'
'LastWriterWins'

IndexingPolicy

Name Description Value
automatic bool
excludedPaths ExcludedPath[]
includedPaths IncludedPath[]
indexingMode 'Consistent'
'Lazy'
'None'

ExcludedPath

Name Description Value
path string

IncludedPath

Name Description Value
indexes Indexes[]
path string

Indexes

Name Description Value
dataType 'LineString'
'MultiPolygon'
'Number'
'Point'
'Polygon'
'String'
kind 'Hash'
'Range'
'Spatial'
precision int

ContainerPartitionKey

Name Description Value
kind 'Hash'
'Range'
paths string[]

UniqueKeyPolicy

Name Description Value
uniqueKeys UniqueKey[]

UniqueKey

Name Description Value
paths string[]