@Beta(value=V1_11_0)
public static interface CosmosDBAccount.DefinitionStages.WithVirtualNetworkRule
| Modifier and Type | Method and Description |
|---|---|
CosmosDBAccount.DefinitionStages.WithCreate |
withVirtualNetwork(String virtualNetworkId,
String subnetName)
Specifies a Virtual Network ACL Rule for the CosmosDB account.
|
CosmosDBAccount.DefinitionStages.WithCreate |
withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules)
Specifies the list of Virtual Network ACL Rules for the CosmosDB account.
|
@Beta(value=V1_11_0) CosmosDBAccount.DefinitionStages.WithCreate withVirtualNetwork(String virtualNetworkId, String subnetName)
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'.@Beta(value=V1_11_0) CosmosDBAccount.DefinitionStages.WithCreate withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules)
virtualNetworkRules - the list of Virtual Network ACL Rules./**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/