Compartilhar via


AutomationCredentialCollection.GetAsync(String, CancellationToken) 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}
  • IdCredential_Get de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationCredentialResource>> GetAsync (string credentialName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationCredentialResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationCredentialResource>>
Public Overridable Function GetAsync (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 era esperado que não estivesse vazio.

credentialName é nulo.

Aplica-se a