SecurityInsightsDataConnectorResource.ConnectAsync 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.
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.