Subnet.DefinitionStages.WithNetworkSecurityGroup<ParentT>.withExistingNetworkSecurityGroup Method

定义

重载

withExistingNetworkSecurityGroup(NetworkSecurityGroup nsg)

Assigns an existing network security group to this subnet.

withExistingNetworkSecurityGroup(String resourceId)

Assigns an existing network security group to this subnet.

withExistingNetworkSecurityGroup(NetworkSecurityGroup nsg)

Assigns an existing network security group to this subnet.

public WithAttach<ParentT> withExistingNetworkSecurityGroup(NetworkSecurityGroup nsg)

参数

nsg
NetworkSecurityGroup

the network security group to assign

返回

the next stage of the definition

withExistingNetworkSecurityGroup(String resourceId)

Assigns an existing network security group to this subnet.

public WithAttach<ParentT> withExistingNetworkSecurityGroup(String resourceId)

参数

resourceId
String

the resource ID of the network security group

返回

the next stage of the definition

适用于