Table of Contents

Interface IWithVirtualNetworkRule

Namespace
Microsoft.Azure.Management.CosmosDB.Fluent.CosmosDBAccount.Update
Assembly
Microsoft.Azure.Management.CosmosDB.Fluent.dll

The stage of the Cosmos DB update definition allowing the definition of a Virtual Network ACL Rule.

public interface IWithVirtualNetworkRule : IBeta

Methods

WithVirtualNetworkFilterEnabled(bool)

Specifies Virtual Network Fileter manually.

IWithOptionals WithVirtualNetworkFilterEnabled(bool enable)

Parameters

enable bool

The fileter is enabled or not.

Returns

IWithOptionals

WithVirtualNetworkRule(string, string, bool?)

Specifies a new Virtual Network ACL Rule for the CosmosDB account.

IWithOptionals WithVirtualNetworkRule(string virtualNetworkId, string subnetName, bool? ignoreMissingVNetServiceEndpoint = null)

Parameters

virtualNetworkId string

The ID of a virtual network.

subnetName string

The name of the subnet within the virtual network; the subnet must have the service endpoints enabled for 'Microsoft.AzureCosmosDB'.

ignoreMissingVNetServiceEndpoint bool?

The boolean decides to ignore missing endpoint or not.

Returns

IWithOptionals

WithVirtualNetworkRules(IList<VirtualNetworkRule>)

A Virtual Network ACL Rule for the CosmosDB account.

IWithOptionals WithVirtualNetworkRules(IList<VirtualNetworkRule> virtualNetworkRules)

Parameters

virtualNetworkRules IList<VirtualNetworkRule>

The list of Virtual Network ACL Rules (an empty list value will remove all the rules).

Returns

IWithOptionals

WithoutVirtualNetworkRule(string, string)

Removes a Virtual Network ACL Rule for the CosmosDB account.

IWithOptionals WithoutVirtualNetworkRule(string virtualNetworkId, string subnetName)

Parameters

virtualNetworkId string

The ID of a virtual network.

subnetName string

The name of the subnet within the virtual network; the subnet must have the service endpoints enabled for 'Microsoft.AzureCosmosDB'.

Returns

IWithOptionals