Udostępnij za pośrednictwem


StreamingJobCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}
  • Operation Id: StreamingJobs_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.StreamAnalytics.StreamingJobResource>> GetIfExistsAsync (string jobName, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.StreamAnalytics.StreamingJobResource>>
override this.GetIfExistsAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.StreamAnalytics.StreamingJobResource>>
Public Overridable Function GetIfExistsAsync (jobName As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of StreamingJobResource))

Parameters

jobName
String

The name of the streaming job.

expand
String

The $expand OData query parameter. This is a comma-separated list of additional streaming job properties to include in the response, beyond the default set returned when this parameter is absent. The default set is all streaming job properties other than 'inputs', 'transformation', 'outputs', and 'functions'.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

jobName is null.

Applies to