Dela via


OperationalInsightsWorkspaceResource.RegenerateSharedKey Method

Definition

Regenerates the shared keys for a Log Analytics Workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/regenerateSharedKey
  • Operation Id: SharedKeys_Regenerate
  • Default Api Version: 2020-08-01
public virtual Azure.Response<Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsWorkspaceSharedKeys> RegenerateSharedKey (System.Threading.CancellationToken cancellationToken = default);
abstract member RegenerateSharedKey : System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsWorkspaceSharedKeys>
override this.RegenerateSharedKey : System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsWorkspaceSharedKeys>
Public Overridable Function RegenerateSharedKey (Optional cancellationToken As CancellationToken = Nothing) As Response(Of OperationalInsightsWorkspaceSharedKeys)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to