AutomationAccountResource.RegenerateKeyAgentRegistrationInformation Method

Definition

Regenerate a primary or secondary agent registration key

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/agentRegistrationInformation/regenerateKey
  • Operation Id: AgentRegistrationInformation_RegenerateKey
public virtual Azure.Response<Azure.ResourceManager.Automation.Models.AgentRegistration> RegenerateKeyAgentRegistrationInformation (Azure.ResourceManager.Automation.Models.AgentRegistrationRegenerateKeyContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member RegenerateKeyAgentRegistrationInformation : Azure.ResourceManager.Automation.Models.AgentRegistrationRegenerateKeyContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Automation.Models.AgentRegistration>
override this.RegenerateKeyAgentRegistrationInformation : Azure.ResourceManager.Automation.Models.AgentRegistrationRegenerateKeyContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Automation.Models.AgentRegistration>
Public Overridable Function RegenerateKeyAgentRegistrationInformation (content As AgentRegistrationRegenerateKeyContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of AgentRegistration)

Parameters

content
AgentRegistrationRegenerateKeyContent

The name of the agent registration key to be regenerated.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to