Share via


SynapseWorkloadClassifierCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}
  • Operation Id: SqlPoolWorkloadClassifier_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.Synapse.SynapseWorkloadClassifierResource> GetIfExists (string workloadClassifierName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Synapse.SynapseWorkloadClassifierResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Synapse.SynapseWorkloadClassifierResource>
Public Overridable Function GetIfExists (workloadClassifierName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of SynapseWorkloadClassifierResource)

Parameters

workloadClassifierName
String

The name of the workload classifier.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

workloadClassifierName is null.

Applies to