SecuritySettingCollection.CreateOrUpdate Method

Definition

updating settings about different configurations in Microsoft Defender for Cloud

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/settings/{settingName}
  • Operation Id: Settings_Update
  • Default Api Version: 2022-05-01
  • Resource: SecuritySettingResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.SecuritySettingResource> CreateOrUpdate (Azure.WaitUntil waitUntil, Azure.ResourceManager.SecurityCenter.Models.SecuritySettingName settingName, Azure.ResourceManager.SecurityCenter.SecuritySettingData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * Azure.ResourceManager.SecurityCenter.Models.SecuritySettingName * Azure.ResourceManager.SecurityCenter.SecuritySettingData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.SecuritySettingResource>
override this.CreateOrUpdate : Azure.WaitUntil * Azure.ResourceManager.SecurityCenter.Models.SecuritySettingName * Azure.ResourceManager.SecurityCenter.SecuritySettingData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.SecuritySettingResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, settingName As SecuritySettingName, data As SecuritySettingData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of SecuritySettingResource)

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.

settingName
SecuritySettingName

The name of the setting.

data
SecuritySettingData

Setting object.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

data is null.

Applies to