Condividi tramite


ManagedClusterIdentityBindingCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/identityBindings/{identityBindingName}.
  • Operation Id. : IdentityBindings_Get.
  • Default Api Version. : 2026-01-02-preview.
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ContainerService.ManagedClusterIdentityBindingResource>> GetIfExistsAsync(string identityBindingName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ContainerService.ManagedClusterIdentityBindingResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ContainerService.ManagedClusterIdentityBindingResource>>
Public Overridable Function GetIfExistsAsync (identityBindingName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of ManagedClusterIdentityBindingResource))

Parameters

identityBindingName
String

The name of the identity binding.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

identityBindingName is null.

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

Applies to