Поделиться через


MigrationAssessmentServerCollectorCollection.CreateOrUpdateAsync Method

Definition

Create a ServerCollector

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/servercollectors/{serverCollectorName}
  • Operation Id: ServerCollectorsOperations_Create
  • Default Api Version: 2023-03-15
  • Resource: MigrationAssessmentServerCollectorResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Migration.Assessment.MigrationAssessmentServerCollectorResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string serverCollectorName, Azure.ResourceManager.Migration.Assessment.MigrationAssessmentServerCollectorData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Migration.Assessment.MigrationAssessmentServerCollectorData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Migration.Assessment.MigrationAssessmentServerCollectorResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Migration.Assessment.MigrationAssessmentServerCollectorData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Migration.Assessment.MigrationAssessmentServerCollectorResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, serverCollectorName As String, data As MigrationAssessmentServerCollectorData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of MigrationAssessmentServerCollectorResource))

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.

serverCollectorName
String

Physical server collector ARM name.

data
MigrationAssessmentServerCollectorData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

serverCollectorName or data is null.

Applies to