Dela via


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.

public static Azure.ResourceManager.Compute.ProximityPlacementGroupCollection GetProximityPlacementGroups (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetProximityPlacementGroups : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Compute.ProximityPlacementGroupCollection
<Extension()>
Public Function GetProximityPlacementGroups (resourceGroupResource As ResourceGroupResource) As ProximityPlacementGroupCollection

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

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
public static Azure.Pageable<Azure.ResourceManager.Compute.ProximityPlacementGroupResource> GetProximityPlacementGroups (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetProximityPlacementGroups : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.ProximityPlacementGroupResource>
<Extension()>
Public Function GetProximityPlacementGroups (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ProximityPlacementGroupResource)

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