你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
PoolOperations.GetComputeNodeExtensionAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取指定的计算节点扩展。
public System.Threading.Tasks.Task<Microsoft.Azure.Batch.NodeVMExtension> GetComputeNodeExtensionAsync (string poolId, string computeNodeId, string extensionName, Microsoft.Azure.Batch.DetailLevel detailLevel = default, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default, System.Threading.CancellationToken cancellationToken = default);
member this.GetComputeNodeExtensionAsync : string * string * string * Microsoft.Azure.Batch.DetailLevel * seq<Microsoft.Azure.Batch.BatchClientBehavior> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.NodeVMExtension>
Public Function GetComputeNodeExtensionAsync (poolId As String, computeNodeId As String, extensionName As String, Optional detailLevel As DetailLevel = Nothing, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NodeVMExtension)
参数
- poolId
- String
池的 id。
- computeNodeId
- String
具有 扩展的计算节点的 ID。
- extensionName
- String
要从池获取的扩展的名称。
- detailLevel
- DetailLevel
一个 DetailLevel ,用于控制从服务检索哪些属性。
- additionalBehaviors
- IEnumerable<BatchClientBehavior>
在 和 detailLevel
之后应用于 Batch 服务请求的CustomBehaviors实例集合BatchClientBehavior。
- cancellationToken
- CancellationToken
一个 CancellationToken ,用于控制异步操作的生存期。
返回
一个 NodeVMExtension ,包含有关指定计算节点扩展的信息。
注解
获取节点扩展操作以异步方式运行。