次の方法で共有


ComputeNodeOperationsExtensions.UpdateUserAsync メソッド

定義

指定したコンピューティング ノードのユーザー アカウントのパスワードと有効期限を更新します。

public static System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.ComputeNodeUpdateUserHeaders> UpdateUserAsync (this Microsoft.Azure.Batch.Protocol.IComputeNodeOperations operations, string poolId, string nodeId, string userName, Microsoft.Azure.Batch.Protocol.Models.NodeUpdateUserParameter nodeUpdateUserParameter, Microsoft.Azure.Batch.Protocol.Models.ComputeNodeUpdateUserOptions computeNodeUpdateUserOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member UpdateUserAsync : Microsoft.Azure.Batch.Protocol.IComputeNodeOperations * string * string * string * Microsoft.Azure.Batch.Protocol.Models.NodeUpdateUserParameter * Microsoft.Azure.Batch.Protocol.Models.ComputeNodeUpdateUserOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.ComputeNodeUpdateUserHeaders>
<Extension()>
Public Function UpdateUserAsync (operations As IComputeNodeOperations, poolId As String, nodeId As String, userName As String, nodeUpdateUserParameter As NodeUpdateUserParameter, Optional computeNodeUpdateUserOptions As ComputeNodeUpdateUserOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ComputeNodeUpdateUserHeaders)

パラメーター

operations
IComputeNodeOperations

この拡張メソッドの操作グループ。

poolId
String

コンピューティング ノードを含むプールの ID。

nodeId
String

ユーザー アカウントを更新するコンピューターの ID。

userName
String

更新するユーザー アカウントの名前。

nodeUpdateUserParameter
NodeUpdateUserParameter

要求のパラメーター。

computeNodeUpdateUserOptions
ComputeNodeUpdateUserOptions

操作の追加パラメーター

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

注釈

この操作により、Account のすべての更新可能なプロパティが置き換えられます。 たとえば、expiryTime 要素が指定されていない場合、現在の値は変更されずに既定値に置き換えられます。 コンピューティング ノードのユーザー アカウントは、アイドル状態または実行中の状態の場合にのみ更新できます。

適用対象