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
boolThe fileter is enabled or not.
Returns
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
stringThe ID of a virtual network.
subnetName
stringThe 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
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
WithoutVirtualNetworkRule(string, string)
Removes a Virtual Network ACL Rule for the CosmosDB account.
IWithOptionals WithoutVirtualNetworkRule(string virtualNetworkId, string subnetName)
Parameters
virtualNetworkId
stringThe ID of a virtual network.
subnetName
stringThe name of the subnet within the virtual network; the subnet must have the service endpoints enabled for 'Microsoft.AzureCosmosDB'.