SecuritySettingCollection.CreateOrUpdateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * Azure.ResourceManager.SecurityCenter.Models.SecuritySettingName * Azure.ResourceManager.SecurityCenter.SecuritySettingData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.SecuritySettingResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * Azure.ResourceManager.SecurityCenter.Models.SecuritySettingName * Azure.ResourceManager.SecurityCenter.SecuritySettingData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.SecuritySettingResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, settingName As SecuritySettingName, data As SecuritySettingData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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
Azure SDK for .NET