DatabaseAccountUpdateParameters interface

Parameters for patching Azure Cosmos DB database account properties.

Properties

analyticalStorageConfiguration

Analytical storage specific properties.

apiProperties

API specific properties. Currently, supported only for MongoDB API.

backupPolicy

The object representing the policy for taking backups on an account.

capabilities

List of Cosmos DB capabilities for the account

capacity

The object that represents all properties related to capacity enforcement on an account.

connectorOffer

The cassandra connector offer type for the Cosmos DB database C* account.

consistencyPolicy

The consistency policy for the Cosmos DB account.

cors

The CORS policy for the Cosmos DB database account.

customerManagedKeyStatus

Indicates the status of the Customer Managed Key feature on the account. In case there are errors, the property provides troubleshooting guidance.

defaultIdentity

The default identity for accessing key vault used in features like customer managed keys. The default identity needs to be explicitly set by the users. It can be "FirstPartyIdentity", "SystemAssignedIdentity" and more.

defaultPriorityLevel

Enum to indicate default Priority Level of request for Priority Based Execution.

diagnosticLogSettings

The Object representing the different Diagnostic log settings for the Cosmos DB Account.

disableKeyBasedMetadataWriteAccess

Disable write operations on metadata resources (databases, containers, throughput) via account keys

disableLocalAuth

Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.

enableAnalyticalStorage

Flag to indicate whether to enable storage analytics.

enableAutomaticFailover

Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.

enableBurstCapacity

Flag to indicate enabling/disabling of Burst Capacity Preview feature on the account

enableCassandraConnector

Enables the cassandra connector on the Cosmos DB C* account

enableFreeTier

Flag to indicate whether Free Tier is enabled.

enableMaterializedViews

Flag to indicate whether to enable MaterializedViews on the Cosmos DB account

enableMultipleWriteLocations

Enables the account to write in multiple locations

enablePartitionMerge

Flag to indicate enabling/disabling of Partition Merge feature on the account

enablePerRegionPerPartitionAutoscale

Flag to indicate enabling/disabling of Per-Region Per-partition autoscale Preview feature on the account

enablePriorityBasedExecution

Flag to indicate enabling/disabling of Priority Based Execution Preview feature on the account

identity

Identity for the resource.

ipRules

List of IpRules.

isVirtualNetworkFilterEnabled

Flag to indicate whether to enable/disable Virtual Network ACL rules.

keysMetadata

This property is ignored during the update operation, as the metadata is read-only. The object represents the metadata for the Account Keys of the Cosmos DB account. NOTE: This property will not be serialized. It can only be populated by the server.

keyVaultKeyUri

The URI of the key vault

location

The location of the resource group to which the resource belongs.

locations

An array that contains the georeplication locations enabled for the Cosmos DB account.

minimalTlsVersion

Indicates the minimum allowed Tls version. The default is Tls 1.0, except for Cassandra and Mongo API's, which only work with Tls 1.2.

networkAclBypass

Indicates what services are allowed to bypass firewall checks.

networkAclBypassResourceIds

An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.

publicNetworkAccess

Whether requests from Public Network are allowed

tags

Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".

virtualNetworkRules

List of Virtual Network ACL rules configured for the Cosmos DB account.

Property Details

analyticalStorageConfiguration

Analytical storage specific properties.

analyticalStorageConfiguration?: AnalyticalStorageConfiguration

Property Value

apiProperties

API specific properties. Currently, supported only for MongoDB API.

apiProperties?: ApiProperties

Property Value

backupPolicy

The object representing the policy for taking backups on an account.

backupPolicy?: BackupPolicyUnion

Property Value

capabilities

List of Cosmos DB capabilities for the account

capabilities?: Capability[]

Property Value

capacity

The object that represents all properties related to capacity enforcement on an account.

capacity?: Capacity

Property Value

connectorOffer

The cassandra connector offer type for the Cosmos DB database C* account.

connectorOffer?: string

Property Value

string

consistencyPolicy

The consistency policy for the Cosmos DB account.

consistencyPolicy?: ConsistencyPolicy

Property Value

cors

The CORS policy for the Cosmos DB database account.

cors?: CorsPolicy[]

Property Value

customerManagedKeyStatus

Indicates the status of the Customer Managed Key feature on the account. In case there are errors, the property provides troubleshooting guidance.

customerManagedKeyStatus?: string

Property Value

string

defaultIdentity

The default identity for accessing key vault used in features like customer managed keys. The default identity needs to be explicitly set by the users. It can be "FirstPartyIdentity", "SystemAssignedIdentity" and more.

defaultIdentity?: string

Property Value

string

defaultPriorityLevel

Enum to indicate default Priority Level of request for Priority Based Execution.

defaultPriorityLevel?: string

Property Value

string

diagnosticLogSettings

The Object representing the different Diagnostic log settings for the Cosmos DB Account.

diagnosticLogSettings?: DiagnosticLogSettings

Property Value

disableKeyBasedMetadataWriteAccess

Disable write operations on metadata resources (databases, containers, throughput) via account keys

disableKeyBasedMetadataWriteAccess?: boolean

Property Value

boolean

disableLocalAuth

Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.

disableLocalAuth?: boolean

Property Value

boolean

enableAnalyticalStorage

Flag to indicate whether to enable storage analytics.

enableAnalyticalStorage?: boolean

Property Value

boolean

enableAutomaticFailover

Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.

enableAutomaticFailover?: boolean

Property Value

boolean

enableBurstCapacity

Flag to indicate enabling/disabling of Burst Capacity Preview feature on the account

enableBurstCapacity?: boolean

Property Value

boolean

enableCassandraConnector

Enables the cassandra connector on the Cosmos DB C* account

enableCassandraConnector?: boolean

Property Value

boolean

enableFreeTier

Flag to indicate whether Free Tier is enabled.

enableFreeTier?: boolean

Property Value

boolean

enableMaterializedViews

Flag to indicate whether to enable MaterializedViews on the Cosmos DB account

enableMaterializedViews?: boolean

Property Value

boolean

enableMultipleWriteLocations

Enables the account to write in multiple locations

enableMultipleWriteLocations?: boolean

Property Value

boolean

enablePartitionMerge

Flag to indicate enabling/disabling of Partition Merge feature on the account

enablePartitionMerge?: boolean

Property Value

boolean

enablePerRegionPerPartitionAutoscale

Flag to indicate enabling/disabling of Per-Region Per-partition autoscale Preview feature on the account

enablePerRegionPerPartitionAutoscale?: boolean

Property Value

boolean

enablePriorityBasedExecution

Flag to indicate enabling/disabling of Priority Based Execution Preview feature on the account

enablePriorityBasedExecution?: boolean

Property Value

boolean

identity

Identity for the resource.

identity?: ManagedServiceIdentity

Property Value

ipRules

List of IpRules.

ipRules?: IpAddressOrRange[]

Property Value

isVirtualNetworkFilterEnabled

Flag to indicate whether to enable/disable Virtual Network ACL rules.

isVirtualNetworkFilterEnabled?: boolean

Property Value

boolean

keysMetadata

This property is ignored during the update operation, as the metadata is read-only. The object represents the metadata for the Account Keys of the Cosmos DB account. NOTE: This property will not be serialized. It can only be populated by the server.

keysMetadata?: DatabaseAccountKeysMetadata

Property Value

keyVaultKeyUri

The URI of the key vault

keyVaultKeyUri?: string

Property Value

string

location

The location of the resource group to which the resource belongs.

location?: string

Property Value

string

locations

An array that contains the georeplication locations enabled for the Cosmos DB account.

locations?: Location_2[]

Property Value

minimalTlsVersion

Indicates the minimum allowed Tls version. The default is Tls 1.0, except for Cassandra and Mongo API's, which only work with Tls 1.2.

minimalTlsVersion?: string

Property Value

string

networkAclBypass

Indicates what services are allowed to bypass firewall checks.

networkAclBypass?: NetworkAclBypass

Property Value

networkAclBypassResourceIds

An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.

networkAclBypassResourceIds?: string[]

Property Value

string[]

publicNetworkAccess

Whether requests from Public Network are allowed

publicNetworkAccess?: string

Property Value

string

tags

Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".

tags?: {[propertyName: string]: string}

Property Value

{[propertyName: string]: string}

virtualNetworkRules

List of Virtual Network ACL rules configured for the Cosmos DB account.

virtualNetworkRules?: VirtualNetworkRule[]

Property Value