Share via


SecurityWorkspaceSettingCollection.CreateOrUpdate Method

Definition

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

data
SecurityWorkspaceSettingData

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