你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

VirtualNetworkGateway.DefinitionStages.WithNetwork 接口

public interface WithNetwork

允许指定虚拟网络的虚拟网络网关定义的阶段。

方法摘要

修饰符和类型 方法和描述
VirtualNetworkGateway.DefinitionStages.WithGatewayType withExistingNetwork(Network network)

将现有虚拟网络与虚拟网络网关 相关联。

VirtualNetworkGateway.DefinitionStages.WithGatewayType withNewNetwork(Creatable<Network> creatable)

根据提供的定义创建新的虚拟网络以与虚拟网络网关关联。

VirtualNetworkGateway.DefinitionStages.WithGatewayType withNewNetwork(String addressSpaceCidr, String subnetAddressSpaceCidr)

创建要与虚拟网络网关关联的新虚拟网络。 将在父虚拟网络网关所在的资源组和区域中创建虚拟网络,将使用指定的地址空间和虚拟网络网关的默认子网创建虚拟网络。

VirtualNetworkGateway.DefinitionStages.WithGatewayType withNewNetwork(String name, String addressSpace, String subnetAddressSpaceCidr)

创建要与虚拟网络网关关联的新虚拟网络。 虚拟网络将在父虚拟网络网关所在的资源组和区域中创建,将使用指定的地址空间和虚拟网络网关的子网创建。

方法详细信息

withExistingNetwork

public WithGatewayType withExistingNetwork(Network network)

将现有虚拟网络与虚拟网络网关 相关联。

Parameters:

network - 现有虚拟网络

Returns:

定义的下一阶段

withNewNetwork

public WithGatewayType withNewNetwork(Creatable creatable)

根据提供的定义创建新的虚拟网络以与虚拟网络网关关联。

Parameters:

creatable - 新虚拟网络的可创建定义

Returns:

定义的下一阶段

withNewNetwork

public WithGatewayType withNewNetwork(String addressSpaceCidr, String subnetAddressSpaceCidr)

创建要与虚拟网络网关关联的新虚拟网络。 将在父虚拟网络网关所在的资源组和区域中创建虚拟网络,将使用指定的地址空间和虚拟网络网关的默认子网创建虚拟网络。

Parameters:

addressSpaceCidr - 虚拟网络的地址空间
subnetAddressSpaceCidr

Returns:

定义的下一阶段

withNewNetwork

public WithGatewayType withNewNetwork(String name, String addressSpace, String subnetAddressSpaceCidr)

创建要与虚拟网络网关关联的新虚拟网络。 虚拟网络将在父虚拟网络网关所在的资源组和区域中创建,将使用指定的地址空间和虚拟网络网关的子网创建。

Parameters:

name - 新虚拟网络的名称
addressSpace - rhe 虚拟网络的地址空间
subnetAddressSpaceCidr

Returns:

定义的下一阶段

适用于