Share via


AdvancedThreatProtectionSettingResource.CreateOrUpdateAsync Method

Definition

Creates or updates the Advanced Threat Protection settings on a specified resource.

  • Request Path: /{resourceId}/providers/Microsoft.Security/advancedThreatProtectionSettings/{settingName}
  • Operation Id: AdvancedThreatProtection_Create
  • Default Api Version: 2019-01-01
  • Resource: AdvancedThreatProtectionSettingResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.AdvancedThreatProtectionSettingResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.SecurityCenter.AdvancedThreatProtectionSettingData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * Azure.ResourceManager.SecurityCenter.AdvancedThreatProtectionSettingData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.AdvancedThreatProtectionSettingResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * Azure.ResourceManager.SecurityCenter.AdvancedThreatProtectionSettingData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.AdvancedThreatProtectionSettingResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, data As AdvancedThreatProtectionSettingData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of AdvancedThreatProtectionSettingResource))

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.

data
AdvancedThreatProtectionSettingData

Advanced Threat Protection Settings.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

data is null.

Applies to