Share via


ApiGatewayCollection.GetAsync(String, CancellationToken) Method

Definition

Gets an API Management gateway resource description.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateways/{gatewayName}
  • Operation Id: ApiGateway_Get
  • Default Api Version: 2024-05-01
  • Resource: ApiGatewayResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApiManagement.ApiGatewayResource>> GetAsync(string gatewayName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApiManagement.ApiGatewayResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApiManagement.ApiGatewayResource>>
Public Overridable Function GetAsync (gatewayName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ApiGatewayResource))

Parameters

gatewayName
String

The name of the API Management gateway.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

gatewayName is an empty string, and was expected to be non-empty.

gatewayName is null.

Applies to