Compartir a través de


AutomationAccountResource.GetAutomationVariableAsync Método

Definición

Recupere la variable identificada por nombre de variable.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}
  • IdVariable_Get de operaciones
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationVariableResource>> GetAutomationVariableAsync (string variableName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAutomationVariableAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationVariableResource>>
override this.GetAutomationVariableAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationVariableResource>>
Public Overridable Function GetAutomationVariableAsync (variableName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AutomationVariableResource))

Parámetros

variableName
String

Nombre de la variable.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

variableName es una cadena vacía y se espera que no esté vacía.

variableName es null.

Se aplica a