ContainerServiceFleetGateCollection.GetIfExists 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. : 2026-02-01-preview.
public virtual Azure.NullableResponse<Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetGateResource> GetIfExists(string gateName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetGateResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetGateResource>
Public Overridable Function GetIfExists (gateName As String, Optional cancellationToken As CancellationToken = Nothing) As 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 null.

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

Applies to