ComputeExtensions.GetProximityPlacementGroups Method

Definition

Overloads

GetProximityPlacementGroups(ResourceGroupResource)

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

GetProximityPlacementGroups(SubscriptionResource, CancellationToken)

Lists all proximity placement groups in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Compute/proximityPlacementGroups
  • Operation Id: ProximityPlacementGroups_ListBySubscription
  • Default Api Version: 2024-07-01
  • Resource: ProximityPlacementGroupResource

GetProximityPlacementGroups(ResourceGroupResource)

Source:
ComputeExtensions.cs
Source:
ComputeExtensions.cs

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

C#
public static Azure.ResourceManager.Compute.ProximityPlacementGroupCollection GetProximityPlacementGroups(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of ProximityPlacementGroupResources and their operations over a ProximityPlacementGroupResource.

Exceptions

resourceGroupResource is null.

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

GetProximityPlacementGroups(SubscriptionResource, CancellationToken)

Source:
ComputeExtensions.cs
Source:
ComputeExtensions.cs

Lists all proximity placement groups in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Compute/proximityPlacementGroups
  • Operation Id: ProximityPlacementGroups_ListBySubscription
  • Default Api Version: 2024-07-01
  • Resource: ProximityPlacementGroupResource
C#
public static Azure.Pageable<Azure.ResourceManager.Compute.ProximityPlacementGroupResource> GetProximityPlacementGroups(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview