NetworkPeering Interface

public interface NetworkPeering extends IndependentChild,HasInner,Refreshable,Updatable<NetworkPeering.Update>

An client-side representation of a network peering.

Method Summary

Modifier and Type Method and Description
boolean checkAccessBetweenNetworks()

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

NetworkPeeringGatewayUse gatewayUse()
Network getRemoteNetwork()
Observable<Network> getRemoteNetworkAsync()

Gets the remote network associated with this peering asynchronously.

NetworkPeering getRemotePeering()
Observable<NetworkPeering> getRemotePeeringAsync()

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

boolean isSameSubscription()
boolean isTrafficForwardingFromRemoteNetworkAllowed()
String networkId()
String remoteNetworkId()
VirtualNetworkPeeringState state()

Inherited Members

Method Details

checkAccessBetweenNetworks

public boolean checkAccessBetweenNetworks()

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

Returns:

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

gatewayUse

public NetworkPeeringGatewayUse gatewayUse()

Returns:

the type of gateway use enabled for this network

getRemoteNetwork

public Network getRemoteNetwork()

Returns:

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

getRemoteNetworkAsync

public Observable getRemoteNetworkAsync()

Gets the remote network associated with this peering asynchronously.

Returns:

a representation of the future computation of this call

getRemotePeering

public 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 Observable 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 boolean isSameSubscription()

Returns:

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

isTrafficForwardingFromRemoteNetworkAllowed

public boolean isTrafficForwardingFromRemoteNetworkAllowed()

Returns:

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

networkId

public String networkId()

Returns:

the local virtual network's ID

remoteNetworkId

public String remoteNetworkId()

Returns:

the associated remote virtual network's ID

state

public VirtualNetworkPeeringState state()

Returns:

the state of the peering between the two networks

Applies to