ExtendedLocationsExtensions.GetCustomLocations 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
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
|
GetCustomLocations(ResourceGroupResource)
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)
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
Azure SDK for .NET