KustoScriptCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scripts/{scriptName}
  • Operation Id: Scripts_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.Kusto.KustoScriptResource> GetIfExists (string scriptName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Kusto.KustoScriptResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Kusto.KustoScriptResource>
Public Overridable Function GetIfExists (scriptName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of KustoScriptResource)

Parameters

scriptName
String

The name of the Kusto database script.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

scriptName is null.

Applies to