PeeringExtensions.GetPeeringServices Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetPeeringServices(ResourceGroupResource) |
Gets a collection of PeeringServiceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetPeeringServices() instead. |
GetPeeringServices(SubscriptionResource, CancellationToken) |
Lists all of the peerings under the given subscription.
|
GetPeeringServices(ResourceGroupResource)
- Source:
- PeeringExtensions.cs
- Source:
- PeeringExtensions.cs
Gets a collection of PeeringServiceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetPeeringServices() instead.
public static Azure.ResourceManager.Peering.PeeringServiceCollection GetPeeringServices (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetPeeringServices : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Peering.PeeringServiceCollection
<Extension()>
Public Function GetPeeringServices (resourceGroupResource As ResourceGroupResource) As PeeringServiceCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of PeeringServiceResources and their operations over a PeeringServiceResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetPeeringServices(SubscriptionResource, CancellationToken)
- Source:
- PeeringExtensions.cs
- Source:
- PeeringExtensions.cs
Lists all of the peerings under the given subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Peering/peeringServices
- Operation Id: PeeringServices_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.Peering.PeeringServiceResource> GetPeeringServices (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetPeeringServices : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Peering.PeeringServiceResource>
<Extension()>
Public Function GetPeeringServices (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of PeeringServiceResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of PeeringServiceResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.