你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AutomationAccountResource.GetAutomationAccountModule 方法

定义

检索由模块名称标识的模块。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}
  • 操作IdModule_Get
public virtual Azure.Response<Azure.ResourceManager.Automation.AutomationAccountModuleResource> GetAutomationAccountModule (string moduleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAutomationAccountModule : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Automation.AutomationAccountModuleResource>
override this.GetAutomationAccountModule : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Automation.AutomationAccountModuleResource>
Public Overridable Function GetAutomationAccountModule (moduleName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of AutomationAccountModuleResource)

参数

moduleName
String

模块名。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

moduleName 是一个空字符串,预期为非空。

moduleName 为 null。

适用于