Udostępnij za pośrednictwem


PeeringExtensions.GetPeerings Method

Definition

Overloads

GetPeerings(ResourceGroupResource)

Gets a collection of PeeringResources in the ResourceGroupResource. MockingTo mock this method, please mock GetPeerings() instead.

GetPeerings(SubscriptionResource, CancellationToken)

Lists all of the peerings under the given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerings
  • Operation Id: Peerings_ListBySubscription

GetPeerings(ResourceGroupResource)

Source:
PeeringExtensions.cs
Source:
PeeringExtensions.cs

Gets a collection of PeeringResources in the ResourceGroupResource. MockingTo mock this method, please mock GetPeerings() instead.

public static Azure.ResourceManager.Peering.PeeringCollection GetPeerings (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetPeerings : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Peering.PeeringCollection
<Extension()>
Public Function GetPeerings (resourceGroupResource As ResourceGroupResource) As PeeringCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of PeeringResources and their operations over a PeeringResource.

Exceptions

resourceGroupResource is null.

Applies to

GetPeerings(SubscriptionResource, CancellationToken)

Source:
PeeringExtensions.cs
Source:
PeeringExtensions.cs

Lists all of the peerings under the given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerings
  • Operation Id: Peerings_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.Peering.PeeringResource> GetPeerings (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetPeerings : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Peering.PeeringResource>
<Extension()>
Public Function GetPeerings (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of PeeringResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of PeeringResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to