HybridComputeExtensions.GetHybridComputeMachines Method

Definition

Overloads

GetHybridComputeMachines(SubscriptionResource, CancellationToken)

Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/machines
  • Operation Id: Machines_ListBySubscription
  • Default Api Version: 2024-03-31-preview
  • Resource: HybridComputeMachineResource
GetHybridComputeMachines(ResourceGroupResource)

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

GetHybridComputeMachines(SubscriptionResource, CancellationToken)

Source:
HybridComputeExtensions.cs

Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/machines
  • Operation Id: Machines_ListBySubscription
  • Default Api Version: 2024-03-31-preview
  • Resource: HybridComputeMachineResource
public static Azure.Pageable<Azure.ResourceManager.HybridCompute.HybridComputeMachineResource> GetHybridComputeMachines (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetHybridComputeMachines : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.HybridCompute.HybridComputeMachineResource>
<Extension()>
Public Function GetHybridComputeMachines (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of HybridComputeMachineResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to

GetHybridComputeMachines(ResourceGroupResource)

Source:
HybridComputeExtensions.cs

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

public static Azure.ResourceManager.HybridCompute.HybridComputeMachineCollection GetHybridComputeMachines (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetHybridComputeMachines : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.HybridCompute.HybridComputeMachineCollection
<Extension()>
Public Function GetHybridComputeMachines (resourceGroupResource As ResourceGroupResource) As HybridComputeMachineCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of HybridComputeMachineResources and their operations over a HybridComputeMachineResource.

Exceptions

resourceGroupResource is null.

Applies to