Compartir a través de


AutomationAccountResource.GetAutomationVariable 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 Azure.Response<Azure.ResourceManager.Automation.AutomationVariableResource> GetAutomationVariable (string variableName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAutomationVariable : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Automation.AutomationVariableResource>
override this.GetAutomationVariable : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Automation.AutomationVariableResource>
Public Overridable Function GetAutomationVariable (variableName As String, Optional cancellationToken As CancellationToken = Nothing) As 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 esperaba que no estuviera vacía.

variableName es null.

Se aplica a