Compartilhar via


AutomationAccountResource.GetAutomationCredential 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 Azure.Response<Azure.ResourceManager.Automation.AutomationCredentialResource> GetAutomationCredential (string credentialName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAutomationCredential : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Automation.AutomationCredentialResource>
override this.GetAutomationCredential : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Automation.AutomationCredentialResource>
Public Overridable Function GetAutomationCredential (credentialName As String, Optional cancellationToken As CancellationToken = Nothing) As 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