SecurityWorkspaceSettingCollection.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.
creating settings about where we should store your security data and logs
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/workspaceSettings/{workspaceSettingName}
- Operation Id: WorkspaceSettings_Create
- Default Api Version: 2017-08-01-preview
- Resource: SecurityWorkspaceSettingResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.SecurityWorkspaceSettingResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string workspaceSettingName, Azure.ResourceManager.SecurityCenter.SecurityWorkspaceSettingData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.SecurityCenter.SecurityWorkspaceSettingData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.SecurityWorkspaceSettingResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.SecurityCenter.SecurityWorkspaceSettingData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.SecurityWorkspaceSettingResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, workspaceSettingName As String, data As SecurityWorkspaceSettingData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of SecurityWorkspaceSettingResource))
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.
- workspaceSettingName
- String
Name of the security setting.
Security data setting object.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
workspaceSettingName
is an empty string, and was expected to be non-empty.
workspaceSettingName
or data
is null.
Applies to
Azure SDK for .NET