Partilhar via


AutomationAccountResource.GetAutomationConnectionAsync Método

Definição

Recupere a conexão identificada pelo nome da conexão.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}
  • IdConnection_Get de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationConnectionResource>> GetAutomationConnectionAsync (string connectionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAutomationConnectionAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationConnectionResource>>
override this.GetAutomationConnectionAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationConnectionResource>>
Public Overridable Function GetAutomationConnectionAsync (connectionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AutomationConnectionResource))

Parâmetros

connectionName
String

O nome da conexão.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

connectionName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

connectionName é nulo.

Aplica-se a