LoadTestProfileMappingCollection.CreateOrUpdate Method

Definition

Create a LoadTestProfileMappingResource

  • Request Path. : /{resourceUri}/providers/Microsoft.LoadTestService/loadTestProfileMappings/{loadTestProfileMappingName}.
  • Operation Id. : LoadTestProfileMappings_CreateOrUpdate.
  • Default Api Version. : 2024-12-01-preview.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.LoadTesting.LoadTestProfileMappingResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string loadTestProfileMappingName, Azure.ResourceManager.LoadTesting.LoadTestProfileMappingData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.LoadTesting.LoadTestProfileMappingData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.LoadTesting.LoadTestProfileMappingResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.LoadTesting.LoadTestProfileMappingData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.LoadTesting.LoadTestProfileMappingResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, loadTestProfileMappingName As String, data As LoadTestProfileMappingData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of LoadTestProfileMappingResource)

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.

loadTestProfileMappingName
String

Load Test Profile Mapping name.

data
LoadTestProfileMappingData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

loadTestProfileMappingName or data is null.

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

Applies to