영어로 읽기

다음을 통해 공유


SecuritySettingCollection.CreateOrUpdateAsync 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 System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.SecuritySettingResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.SecurityCenter.Models.SecuritySettingName settingName, Azure.ResourceManager.SecurityCenter.SecuritySettingData data, System.Threading.CancellationToken cancellationToken = default);

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