共用方式為


SecurityInsightsDataConnectorResource.Connect 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 Azure.Response Connect (Azure.ResourceManager.SecurityInsights.Models.DataConnectorConnectContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member Connect : Azure.ResourceManager.SecurityInsights.Models.DataConnectorConnectContent * System.Threading.CancellationToken -> Azure.Response
override this.Connect : Azure.ResourceManager.SecurityInsights.Models.DataConnectorConnectContent * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function Connect (content As DataConnectorConnectContent, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

content
DataConnectorConnectContent

The data connector.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to