HybridComputeExtensions.GetHybridComputeGateways Method

Definition

Overloads

GetHybridComputeGateways(SubscriptionResource, CancellationToken)

The operation to get all gateways of a non-Azure machine

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/gateways
  • Operation Id: Gateways_ListBySubscription
  • Default Api Version: 2024-05-20-preview
  • Resource: HybridComputeGatewayResource
GetHybridComputeGateways(ResourceGroupResource)

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

GetHybridComputeGateways(SubscriptionResource, CancellationToken)

The operation to get all gateways of a non-Azure machine

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to

GetHybridComputeGateways(ResourceGroupResource)

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

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of HybridComputeGatewayResources and their operations over a HybridComputeGatewayResource.

Exceptions

resourceGroupResource is null.

Applies to