Interface CosmosDBAccount.UpdateStages.WithVirtualNetworkRule
-
- All Known Subinterfaces:
CosmosDBAccount.Update,CosmosDBAccount.UpdateStages.WithOptionals
- Enclosing interface:
- CosmosDBAccount.UpdateStages
@Beta(V1_11_0) public static interface CosmosDBAccount.UpdateStages.WithVirtualNetworkRuleThe stage of the Cosmos DB update definition allowing the definition of a Virtual Network ACL Rule.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CosmosDBAccount.UpdateStages.WithOptionalswithoutVirtualNetwork(String virtualNetworkId, String subnetName)Removes a Virtual Network ACL Rule for the CosmosDB account.CosmosDBAccount.UpdateStages.WithOptionalswithVirtualNetwork(String virtualNetworkId, String subnetName)Specifies a new Virtual Network ACL Rule for the CosmosDB account.CosmosDBAccount.UpdateStages.WithOptionalswithVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules)A Virtual Network ACL Rule for the CosmosDB account.
-
-
-
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 networksubnetName- 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 networksubnetName- 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-
-
-