Share via


ContainerServiceFleetGateCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/gates/{gateName}
  • Operation Id: Gates_Get
  • Default Api Version: 2025-04-01-preview
  • Resource: ContainerServiceFleetGateResource
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetGateResource>> GetIfExistsAsync(string gateName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetGateResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetGateResource>>
Public Overridable Function GetIfExistsAsync (gateName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of ContainerServiceFleetGateResource))

Parameters

gateName
String

The name of the Gate resource, a GUID.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

gateName is null.

Applies to