NetworkPeering Interface

Implements

IndependentChild<com.microsoft.azure.management.network.implementation.NetworkManager> HasInner<com.microsoft.azure.management.network.implementation.VirtualNetworkPeeringInner> Refreshable<NetworkPeering> Updatable<Update>

public interface NetworkPeering
extends IndependentChild<com.microsoft.azure.management.network.implementation.NetworkManager>, HasInner<com.microsoft.azure.management.network.implementation.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 rx.Observable<Network> getRemoteNetworkAsync()

Gets the remote network associated with this peering asynchronously.

abstract NetworkPeering getRemotePeering()
abstract rx.Observable<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 java.lang.String networkId()
abstract java.util.List<java.lang.String> remoteAddressSpaces()
abstract java.lang.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 Observable 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 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 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