다음을 통해 공유


EdgeWorkflowCollection.CreateOrUpdate Method

Definition

Create or update a Workflow resource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/contexts/{contextName}/workflows/{workflowName}
  • Operation Id: Workflow_CreateOrUpdate
  • Default Api Version: 2025-06-01
  • Resource: EdgeWorkflowResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.WorkloadOrchestration.EdgeWorkflowResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string workflowName, Azure.ResourceManager.WorkloadOrchestration.EdgeWorkflowData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.WorkloadOrchestration.EdgeWorkflowData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.WorkloadOrchestration.EdgeWorkflowResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.WorkloadOrchestration.EdgeWorkflowData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.WorkloadOrchestration.EdgeWorkflowResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, workflowName As String, data As EdgeWorkflowData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of EdgeWorkflowResource)

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.

workflowName
String

Name of the workflow.

data
EdgeWorkflowData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

workflowName or data is null.

Applies to