共用方式為


ProjectCollection.CreateOrUpdate Method

Definition

The project resource is a nested resource representing a stored migration project. The PUT method creates a new project or updates an existing one.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}
  • Operation Id: Projects_CreateOrUpdate
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DataMigration.ProjectResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string projectName, Azure.ResourceManager.DataMigration.ProjectData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DataMigration.ProjectData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DataMigration.ProjectResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DataMigration.ProjectData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DataMigration.ProjectResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, projectName As String, data As ProjectData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of ProjectResource)

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.

projectName
String

Name of the project.

data
ProjectData

Information about the project.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

projectName or data is null.

Applies to