Share via


EnergyServicesExtensions.GetEnergyServices Method

Definition

Overloads

GetEnergyServices(ResourceGroupResource)

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

GetEnergyServices(SubscriptionResource, CancellationToken)

Lists a collection of oep resources under the given Azure Subscription ID.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.OpenEnergyPlatform/energyServices
  • Operation Id: EnergyServices_ListBySubscription

GetEnergyServices(ResourceGroupResource)

Source:
EnergyServicesExtensions.cs

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

public static Azure.ResourceManager.EnergyServices.EnergyServiceCollection GetEnergyServices (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetEnergyServices : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.EnergyServices.EnergyServiceCollection
<Extension()>
Public Function GetEnergyServices (resourceGroupResource As ResourceGroupResource) As EnergyServiceCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of EnergyServiceResources and their operations over a EnergyServiceResource.

Exceptions

resourceGroupResource is null.

Applies to

GetEnergyServices(SubscriptionResource, CancellationToken)

Source:
EnergyServicesExtensions.cs

Lists a collection of oep resources under the given Azure Subscription ID.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.OpenEnergyPlatform/energyServices
  • Operation Id: EnergyServices_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.EnergyServices.EnergyServiceResource> GetEnergyServices (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetEnergyServices : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.EnergyServices.EnergyServiceResource>
<Extension()>
Public Function GetEnergyServices (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of EnergyServiceResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to