你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
VirtualNetworkGateway.DefinitionStages.WithNetwork 接口
public static interface VirtualNetworkGateway.DefinitionStages.WithNetwork
允许指定虚拟网络的虚拟网络网关定义的阶段。
方法摘要
修饰符和类型 | 方法和描述 |
---|---|
abstract
With |
withExistingNetwork(Network network)
将现有虚拟网络与虚拟网络网关相关联。 |
abstract
With |
withNewNetwork(Creatable<Network> creatable)
根据提供的定义,创建新的虚拟网络以与虚拟网络网关关联。 |
abstract
With |
withNewNetwork(String addressSpaceCidr, String subnetAddressSpaceCidr)
创建要与虚拟网络网关关联的新虚拟网络。 |
abstract
With |
withNewNetwork(String name, String addressSpace, String subnetAddressSpaceCidr)
创建要与虚拟网络网关关联的新虚拟网络。 |
方法详细信息
withExistingNetwork
public abstract VirtualNetworkGateway.DefinitionStages.WithGatewayType withExistingNetwork(Network network)
将现有虚拟网络与虚拟网络网关相关联。
Parameters:
Returns:
withNewNetwork
public abstract VirtualNetworkGateway.DefinitionStages.WithGatewayType withNewNetwork(Creatable
根据提供的定义,创建新的虚拟网络以与虚拟网络网关关联。
Parameters:
Returns:
withNewNetwork
public abstract VirtualNetworkGateway.DefinitionStages.WithGatewayType withNewNetwork(String addressSpaceCidr, String subnetAddressSpaceCidr)
创建要与虚拟网络网关关联的新虚拟网络。 虚拟网络将在与父虚拟网络网关相同的资源组和区域中创建,将使用指定的地址空间和虚拟网络网关的默认子网创建。
Parameters:
Returns:
withNewNetwork
public abstract VirtualNetworkGateway.DefinitionStages.WithGatewayType withNewNetwork(String name, String addressSpace, String subnetAddressSpaceCidr)
创建要与虚拟网络网关关联的新虚拟网络。 虚拟网络将在父虚拟网络网关所在的资源组和区域中创建,将使用指定的地址空间和虚拟网络网关的子网创建。
Parameters:
Returns:
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈