Partager via


KustoClusterPrincipalAssignmentCollection.GetIfExistsAsync Méthode

Définition

Tente d’obtenir les détails de cette ressource à partir du service.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/principalAssignments/{principalAssignmentName}
  • IdClusterPrincipalAssignments_Get d’opération
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Kusto.KustoClusterPrincipalAssignmentResource>> GetIfExistsAsync (string principalAssignmentName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Kusto.KustoClusterPrincipalAssignmentResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Kusto.KustoClusterPrincipalAssignmentResource>>
Public Overridable Function GetIfExistsAsync (principalAssignmentName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of KustoClusterPrincipalAssignmentResource))

Paramètres

principalAssignmentName
String

Nom du principalAssignment Kusto.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

principalAssignmentName est une chaîne vide et devait être non vide.

principalAssignmentName a la valeur null.

S’applique à