NetworkPeering Interface

Implements

public interface NetworkPeering
extends IndependentChild<NetworkManager>, HasInnerModel<VirtualNetworkPeeringInner>, Refreshable<NetworkPeering>, Updatable<Update>

An client-side representation of a network peering.

Method Summary

Modifier and Type Method and Description
abstract boolean checkAccessBetweenNetworks()
abstract NetworkPeeringGatewayUse gatewayUse()
abstract Network getRemoteNetwork()
abstract Mono<Network> getRemoteNetworkAsync()

Gets the remote network associated with this peering asynchronously.

abstract NetworkPeering getRemotePeering()
abstract Mono<NetworkPeering> getRemotePeeringAsync()

Gets the associated matching peering on the remote network if it is in the same subscription.

abstract boolean isSameSubscription()
abstract boolean isTrafficForwardingFromRemoteNetworkAllowed()
abstract String networkId()
abstract List<String> remoteAddressSpaces()
abstract String remoteNetworkId()
abstract VirtualNetworkPeeringState state()

Method Details

checkAccessBetweenNetworks

public abstract boolean checkAccessBetweenNetworks()

Returns:

true if the peering enables IP addresses within the peered networks to be accessible from both networks, otherwise false

(Note this method makes a separate call to Azure.)

gatewayUse

public abstract NetworkPeeringGatewayUse gatewayUse()

Returns:

the type of gateway use enabled for this network

getRemoteNetwork

public abstract Network getRemoteNetwork()

Returns:

the remote network if it is in the same subscription, otherwise null.

getRemoteNetworkAsync

public abstract Mono getRemoteNetworkAsync()

Gets the remote network associated with this peering asynchronously.

Returns:

a representation of the future computation of this call

getRemotePeering

public abstract NetworkPeering getRemotePeering()

Returns:

the associated matching peering on the remote network if it is in the same subscription, otherwise this future computation will evaluate to null.

getRemotePeeringAsync

public abstract Mono getRemotePeeringAsync()

Gets the associated matching peering on the remote network if it is in the same subscription.

Returns:

a representation of the future computation of this call.

isSameSubscription

public abstract boolean isSameSubscription()

Returns:

true if the peered networks are in the same subscription, otherwise false

isTrafficForwardingFromRemoteNetworkAllowed

public abstract boolean isTrafficForwardingFromRemoteNetworkAllowed()

Returns:

true if traffic forwarding from the remote network is allowed into this network

networkId

public abstract String networkId()

Returns:

the local virtual network's ID

remoteAddressSpaces

public abstract List remoteAddressSpaces()

Returns:

the reference of the remote virtual network address space

remoteNetworkId

public abstract String remoteNetworkId()

Returns:

the associated remote virtual network's ID

state

public abstract VirtualNetworkPeeringState state()

Returns:

the state of the peering between the two networks

Applies to