Partilhar via


AutomationAccountResource.GetAutomationCredentialAsync Método

Definição

Recupere a credencial identificada pelo nome da credencial.

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

Parâmetros

credentialName
String

O nome da credencial.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

credentialName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

credentialName é nulo.

Aplica-se a