共用方式為


StreamingJobCollection.CreateOrUpdateAsync Method

Definition

Creates a streaming job or replaces an already existing streaming job.

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

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

jobName
String

The name of the streaming job.

data
StreamingJobData

The definition of the streaming job that will be used to create a new streaming job or replace the existing one.

ifMatch
String

The ETag of the streaming job. Omit this value to always overwrite the current record set. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.

ifNoneMatch
String

Set to '*' to allow a new streaming job to be created, but to prevent updating an existing record set. Other values will result in a 412 Pre-condition Failed response.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

jobName or data is null.

Applies to