Interface CosmosDBAccount.UpdateStages.WithVirtualNetworkRule

    • Method Detail

      • withVirtualNetwork

        @Beta(V1_11_0)
        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

        @Beta(V1_11_0)
        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

        @Beta(V1_11_0)
        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-