HybridComputeExtensions.GetHybridComputeGateways 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
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
|
GetHybridComputeGateways(ResourceGroupResource)
- Source:
- HybridComputeExtensions.cs
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
GetHybridComputeGateways(SubscriptionResource, CancellationToken)
- Source:
- HybridComputeExtensions.cs
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
Azure SDK for .NET