次の方法で共有


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()

Checks whether the peering enables IP addresses within the peered networks to be accessible from both networks.

abstract NetworkPeeringGatewayUse gatewayUse()

Gets the type of gateway use enabled for this network.

abstract Network getRemoteNetwork()

Gets the remote network.

abstract Mono<Network> getRemoteNetworkAsync()

Gets the remote network associated with this peering asynchronously.

abstract NetworkPeering getRemotePeering()

Gets the associated matching peering on the remote network.

abstract Mono<NetworkPeering> getRemotePeeringAsync()

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

abstract boolean isSameSubscription()

Checks whether the peered networks are in the same subscription.

abstract boolean isTrafficForwardingFromRemoteNetworkAllowed()

Checks whether traffic forwarding from the remote network is allowed into this network.

abstract String networkId()

Gets the local virtual network's ID.

abstract List<String> remoteAddressSpaces()

Gets the reference of the remote virtual network address space.

abstract String remoteNetworkId()

Gets the associated remote virtual network's ID.

abstract VirtualNetworkPeeringState state()

Gets the state of the peering between the two networks.

Method Details

checkAccessBetweenNetworks

public abstract boolean checkAccessBetweenNetworks()

Checks whether the peering enables IP addresses within the peered networks to be accessible from both networks.

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()

Gets the type of gateway use enabled for this network.

Returns:

the type of gateway use enabled for this network

getRemoteNetwork

public abstract Network getRemoteNetwork()

Gets the remote network.

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()

Gets the associated matching peering on the remote network.

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()

Checks whether the peered networks are in the same subscription.

Returns:

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

isTrafficForwardingFromRemoteNetworkAllowed

public abstract boolean isTrafficForwardingFromRemoteNetworkAllowed()

Checks whether traffic forwarding from the remote network is allowed into this network.

Returns:

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

networkId

public abstract String networkId()

Gets the local virtual network's ID.

Returns:

the local virtual network's ID

remoteAddressSpaces

public abstract List remoteAddressSpaces()

Gets the reference of the remote virtual network address space.

Returns:

the reference of the remote virtual network address space

remoteNetworkId

public abstract String remoteNetworkId()

Gets the associated remote virtual network's ID.

Returns:

the associated remote virtual network's ID

state

public abstract VirtualNetworkPeeringState state()

Gets the state of the peering between the two networks.

Returns:

the state of the peering between the two networks

Applies to