SecurityInsightsSentinelOnboardingStateCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/onboardingStates/{sentinelOnboardingStateName}
  • Operation Id: SentinelOnboardingStates_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.SecurityInsights.SecurityInsightsSentinelOnboardingStateResource>> GetIfExistsAsync (string sentinelOnboardingStateName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.SecurityInsights.SecurityInsightsSentinelOnboardingStateResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.SecurityInsights.SecurityInsightsSentinelOnboardingStateResource>>
Public Overridable Function GetIfExistsAsync (sentinelOnboardingStateName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of SecurityInsightsSentinelOnboardingStateResource))

Parameters

sentinelOnboardingStateName
String

The Sentinel onboarding state name. Supports - default.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

sentinelOnboardingStateName is null.

Applies to