Condividi tramite


MockableNetworkSubscriptionResource.GetServiceGatewaysAsync Method

Definition

Gets all the service gateways in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/serviceGateways
  • Operation Id: ServiceGateways_ListAll
  • Default Api Version: 2025-05-01
  • Resource: ServiceGatewayResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.Network.ServiceGatewayResource> GetServiceGatewaysAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetServiceGatewaysAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.ServiceGatewayResource>
override this.GetServiceGatewaysAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.ServiceGatewayResource>
Public Overridable Function GetServiceGatewaysAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ServiceGatewayResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of ServiceGatewayResource that may take multiple service requests to iterate over.

Applies to