Share via


AdvancedThreatProtectionSettingResource.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.AdvancedThreatProtectionSettingResource> CreateOrUpdate (Azure.WaitUntil waitUntil, Azure.ResourceManager.SecurityCenter.AdvancedThreatProtectionSettingData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * Azure.ResourceManager.SecurityCenter.AdvancedThreatProtectionSettingData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.AdvancedThreatProtectionSettingResource>
override this.CreateOrUpdate : Azure.WaitUntil * Azure.ResourceManager.SecurityCenter.AdvancedThreatProtectionSettingData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.AdvancedThreatProtectionSettingResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, data As AdvancedThreatProtectionSettingData, Optional cancellationToken As CancellationToken = Nothing) As 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