次の方法で共有


IComputeNodeOperations.RebootWithHttpMessagesAsync メソッド

定義

指定したコンピューティング ノードを再起動します。

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<Microsoft.Azure.Batch.Protocol.Models.ComputeNodeRebootHeaders>> RebootWithHttpMessagesAsync (string poolId, string nodeId, Microsoft.Azure.Batch.Protocol.Models.ComputeNodeRebootOption? nodeRebootOption = default, Microsoft.Azure.Batch.Protocol.Models.ComputeNodeRebootOptions computeNodeRebootOptions = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member RebootWithHttpMessagesAsync : string * string * Nullable<Microsoft.Azure.Batch.Protocol.Models.ComputeNodeRebootOption> * Microsoft.Azure.Batch.Protocol.Models.ComputeNodeRebootOptions * 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.ComputeNodeRebootHeaders>>
Public Function RebootWithHttpMessagesAsync (poolId As String, nodeId As String, Optional nodeRebootOption As Nullable(Of ComputeNodeRebootOption) = Nothing, Optional computeNodeRebootOptions As ComputeNodeRebootOptions = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationHeaderResponse(Of ComputeNodeRebootHeaders))

パラメーター

poolId
String

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

nodeId
String

再起動するコンピューティング ノードの ID。

nodeRebootOption
Nullable<ComputeNodeRebootOption>

コンピューティング ノードを再起動するタイミングと、現在実行中のタスクの操作。 既定値は requeue です。 使用できる値は、'requeue'、'terminate'、'taskCompletion'、'retainedData' です。

computeNodeRebootOptions
ComputeNodeRebootOptions

操作の追加パラメーター

customHeaders
Dictionary<String,List<String>>

要求に追加されるヘッダー。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

例外

操作が無効な状態コードを返したときにスローされます

必須パラメーターが null の場合にスローされます

注釈

コンピューティング ノードは、アイドル状態または実行中の状態の場合にのみ再起動できます。

適用対象