Share via


MockableApiManagementResourceGroupResource.GetApiGatewayAsync 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>> GetApiGatewayAsync(string gatewayName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetApiGatewayAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApiManagement.ApiGatewayResource>>
override this.GetApiGatewayAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApiManagement.ApiGatewayResource>>
Public Overridable Function GetApiGatewayAsync (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 null.

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

Applies to