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

VirtualNetworkGateway.DefinitionStages.WithNetwork 接口

public static interface VirtualNetworkGateway.DefinitionStages.WithNetwork

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

方法摘要

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

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

abstract WithGatewayType withNewNetwork(Creatable<Network> creatable)

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

abstract WithGatewayType withNewNetwork(String addressSpaceCidr, String subnetAddressSpaceCidr)

创建要与虚拟网络网关关联的新虚拟网络。

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

创建要与虚拟网络网关关联的新虚拟网络。

方法详细信息

withExistingNetwork

public abstract VirtualNetworkGateway.DefinitionStages.WithGatewayType withExistingNetwork(Network network)

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

Parameters:

network - 现有虚拟网络

Returns:

定义的下一阶段

withNewNetwork

public abstract VirtualNetworkGateway.DefinitionStages.WithGatewayType withNewNetwork(Creatable creatable)

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

Parameters:

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

Returns:

定义的下一阶段

withNewNetwork

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

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

Parameters:

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

Returns:

定义的下一阶段

withNewNetwork

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

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

Parameters:

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

Returns:

定义的下一阶段

适用于