Share via


OrbitalContactProfileCollection.CreateOrUpdateAsync Method

Definition

Creates or updates a contact profile.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Orbital/contactProfiles/{contactProfileName}
  • Operation Id: ContactProfiles_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Orbital.OrbitalContactProfileResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string contactProfileName, Azure.ResourceManager.Orbital.OrbitalContactProfileData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Orbital.OrbitalContactProfileData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Orbital.OrbitalContactProfileResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Orbital.OrbitalContactProfileData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Orbital.OrbitalContactProfileResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, contactProfileName As String, data As OrbitalContactProfileData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of OrbitalContactProfileResource))

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.

contactProfileName
String

Contact Profile name.

data
OrbitalContactProfileData

The parameters to provide for the created Contact Profile.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

contactProfileName or data is null.

Applies to