共用方式為


ConnectorMappingResourceFormatCollection.CreateOrUpdateAsync Method

Definition

Creates a connector mapping or updates an existing connector mapping in the connector.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/connectors/{connectorName}/mappings/{mappingName}
  • Operation Id: ConnectorMappings_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CustomerInsights.ConnectorMappingResourceFormatResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string mappingName, Azure.ResourceManager.CustomerInsights.ConnectorMappingResourceFormatData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.CustomerInsights.ConnectorMappingResourceFormatData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CustomerInsights.ConnectorMappingResourceFormatResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.CustomerInsights.ConnectorMappingResourceFormatData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CustomerInsights.ConnectorMappingResourceFormatResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, mappingName As String, data As ConnectorMappingResourceFormatData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ConnectorMappingResourceFormatResource))

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.

mappingName
String

The name of the connector mapping.

data
ConnectorMappingResourceFormatData

Parameters supplied to the CreateOrUpdate Connector Mapping operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

mappingName or data is null.

Applies to