Share via


ExtendedLocationsExtensions.GetCustomLocations Method

Definition

Overloads

GetCustomLocations(ResourceGroupResource)

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

GetCustomLocations(SubscriptionResource, CancellationToken)

Gets a list of Custom Locations in the specified subscription. The operation returns properties of each Custom Location

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ExtendedLocation/customLocations
  • Operation Id: CustomLocations_ListBySubscription

GetCustomLocations(ResourceGroupResource)

Source:
ExtendedLocationsExtensions.cs
Source:
ExtendedLocationsExtensions.cs

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

public static Azure.ResourceManager.ExtendedLocations.CustomLocationCollection GetCustomLocations (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetCustomLocations : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.ExtendedLocations.CustomLocationCollection
<Extension()>
Public Function GetCustomLocations (resourceGroupResource As ResourceGroupResource) As CustomLocationCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of CustomLocationResources and their operations over a CustomLocationResource.

Exceptions

resourceGroupResource is null.

Applies to

GetCustomLocations(SubscriptionResource, CancellationToken)

Source:
ExtendedLocationsExtensions.cs
Source:
ExtendedLocationsExtensions.cs

Gets a list of Custom Locations in the specified subscription. The operation returns properties of each Custom Location

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to