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

IComputeNodeOperations.UpdateUserWithHttpMessagesAsync 方法

定义

汇报指定计算节点上用户帐户的密码和过期时间。

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<Microsoft.Azure.Batch.Protocol.Models.ComputeNodeUpdateUserHeaders>> UpdateUserWithHttpMessagesAsync (string poolId, string nodeId, string userName, Microsoft.Azure.Batch.Protocol.Models.NodeUpdateUserParameter nodeUpdateUserParameter, Microsoft.Azure.Batch.Protocol.Models.ComputeNodeUpdateUserOptions computeNodeUpdateUserOptions = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateUserWithHttpMessagesAsync : string * string * string * Microsoft.Azure.Batch.Protocol.Models.NodeUpdateUserParameter * Microsoft.Azure.Batch.Protocol.Models.ComputeNodeUpdateUserOptions * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<Microsoft.Azure.Batch.Protocol.Models.ComputeNodeUpdateUserHeaders>>
Public Function UpdateUserWithHttpMessagesAsync (poolId As String, nodeId As String, userName As String, nodeUpdateUserParameter As NodeUpdateUserParameter, Optional computeNodeUpdateUserOptions As ComputeNodeUpdateUserOptions = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationHeaderResponse(Of ComputeNodeUpdateUserHeaders))

参数

poolId
String

包含计算节点的池的 ID。

nodeId
String

要更新用户帐户的计算机的 ID。

userName
String

要更新的用户帐户的名称。

nodeUpdateUserParameter
NodeUpdateUserParameter

请求的参数。

computeNodeUpdateUserOptions
ComputeNodeUpdateUserOptions

操作的其他参数

customHeaders
Dictionary<String,List<String>>

将添加到请求的标头。

cancellationToken
CancellationToken

取消标记。

返回

例外

当操作返回无效状态代码时引发

当所需参数为 null 时引发

注解

此操作将替换帐户的所有可更新属性。 例如,如果未指定 expiryTime 元素,则当前值将替换为默认值,而不是保持未修改状态。 仅当计算节点上的用户帐户处于空闲或运行状态时,才能更新该节点上的用户帐户。

适用于