SecurityInsightsDataConnectorResource.ConnectAsync Method

Definition

Connects a data connector.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/dataConnectors/{dataConnectorId}/connect
  • Operation Id: DataConnectors_Connect
  • Default Api Version: 2024-01-01-preview
  • Resource: SecurityInsightsDataConnectorResource
public virtual System.Threading.Tasks.Task<Azure.Response> ConnectAsync (Azure.ResourceManager.SecurityInsights.Models.DataConnectorConnectContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member ConnectAsync : Azure.ResourceManager.SecurityInsights.Models.DataConnectorConnectContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.ConnectAsync : Azure.ResourceManager.SecurityInsights.Models.DataConnectorConnectContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function ConnectAsync (content As DataConnectorConnectContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

content
DataConnectorConnectContent

The data connector.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to