Interface CosmosDBAccount.DefinitionStages.WithVirtualNetworkRule
-
- All Known Subinterfaces:
CosmosDBAccount.Definition,CosmosDBAccount.DefinitionStages.WithCreate
- Enclosing interface:
- CosmosDBAccount.DefinitionStages
@Beta(V1_11_0) public static interface CosmosDBAccount.DefinitionStages.WithVirtualNetworkRuleThe stage of the cosmos db definition allowing the definition of a Virtual Network ACL Rule.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CosmosDBAccount.DefinitionStages.WithCreatewithVirtualNetwork(String virtualNetworkId, String subnetName)Specifies a Virtual Network ACL Rule for the CosmosDB account.CosmosDBAccount.DefinitionStages.WithCreatewithVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules)Specifies the list of Virtual Network ACL Rules for the CosmosDB account.
-
-
-
Method Detail
-
withVirtualNetwork
@Beta(V1_11_0) CosmosDBAccount.DefinitionStages.WithCreate withVirtualNetwork(String virtualNetworkId, String subnetName)
Specifies 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
-
withVirtualNetworkRules
@Beta(V1_11_0) CosmosDBAccount.DefinitionStages.WithCreate withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules)
Specifies the list of Virtual Network ACL Rules for the CosmosDB account.- Parameters:
virtualNetworkRules- the list of Virtual Network ACL Rules.- Returns:
- the next stage
-
-