ExtendedLocationExtensions.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. |
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)
Gets a collection of CustomLocationResources in the ResourceGroupResource.
public static Azure.ResourceManager.ExtendedLocation.CustomLocationCollection GetCustomLocations (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetCustomLocations : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.ExtendedLocation.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.
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.ExtendedLocation.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.ExtendedLocation.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.