共用方式為


StreamingJobOutputCollection.CreateOrUpdateAsync Method

Definition

Creates an output or replaces an already existing output under an existing streaming job.

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

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.

outputName
String

The name of the output.

data
StreamingJobOutputData

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

ifMatch
String

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

ifNoneMatch
String

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

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

outputName or data is null.

Applies to