Interface CosmosDBAccount.UpdateStages.WithVirtualNetworkRule

All Known Subinterfaces:
CosmosDBAccount.Update, CosmosDBAccount.UpdateStages.WithOptionals
Enclosing interface:
CosmosDBAccount.UpdateStages

public static interface CosmosDBAccount.UpdateStages.WithVirtualNetworkRule
The stage of the Cosmos DB update definition allowing the definition of a Virtual Network ACL Rule.
  • Method Details

    • withVirtualNetwork

      CosmosDBAccount.UpdateStages.WithOptionals withVirtualNetwork(String virtualNetworkId, String subnetName)
      Specifies a new Virtual Network ACL Rule for the CosmosDB account.
      Parameters:
      virtualNetworkId - the ID of a virtual network
      subnetName - the name of the subnet within the virtual network; the subnet must have the service endpoints enabled for 'Microsoft.AzureCosmosDB'.
      Returns:
      the next stage of the update definition
    • withoutVirtualNetwork

      CosmosDBAccount.UpdateStages.WithOptionals withoutVirtualNetwork(String virtualNetworkId, String subnetName)
      Removes a Virtual Network ACL Rule for the CosmosDB account.
      Parameters:
      virtualNetworkId - the ID of a virtual network
      subnetName - the name of the subnet within the virtual network; the subnet must have the service endpoints enabled for 'Microsoft.AzureCosmosDB'.
      Returns:
      the next stage of the update definition
    • withVirtualNetworkRules

      CosmosDBAccount.UpdateStages.WithOptionals withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules)
      A Virtual Network ACL Rule for the CosmosDB account.
      Parameters:
      virtualNetworkRules - the list of Virtual Network ACL Rules (an empty list value will remove all the rules)
      Returns:
      the next stage of the update definition-