SecurityInsightsSentinelOnboardingStateCollection.CreateOrUpdateAsync Method

Definition

Create Sentinel onboarding state

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/onboardingStates/{sentinelOnboardingStateName}
  • Operation Id: SentinelOnboardingStates_Create
  • Default Api Version: 2024-01-01-preview
  • Resource: SecurityInsightsSentinelOnboardingStateResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityInsights.SecurityInsightsSentinelOnboardingStateResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string sentinelOnboardingStateName, Azure.ResourceManager.SecurityInsights.SecurityInsightsSentinelOnboardingStateData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.SecurityInsights.SecurityInsightsSentinelOnboardingStateData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityInsights.SecurityInsightsSentinelOnboardingStateResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.SecurityInsights.SecurityInsightsSentinelOnboardingStateData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityInsights.SecurityInsightsSentinelOnboardingStateResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, sentinelOnboardingStateName As String, data As SecurityInsightsSentinelOnboardingStateData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of SecurityInsightsSentinelOnboardingStateResource))

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.

sentinelOnboardingStateName
String

The Sentinel onboarding state name. Supports - default.

data
SecurityInsightsSentinelOnboardingStateData

The Sentinel onboarding state parameter.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

sentinelOnboardingStateName is an empty string, and was expected to be non-empty.

sentinelOnboardingStateName or data is null.

Applies to