BatchClient.RebootNodeAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Restarts the specified Compute Node.
public virtual System.Threading.Tasks.Task<Azure.Compute.Batch.RebootNodeOperation> RebootNodeAsync(string poolId, string nodeId, Azure.Compute.Batch.BatchNodeRebootOptions parameters = default, TimeSpan? timeOutInSeconds = default, DateTimeOffset? ocpDate = default, System.Threading.CancellationToken cancellationToken = default);
abstract member RebootNodeAsync : string * string * Azure.Compute.Batch.BatchNodeRebootOptions * Nullable<TimeSpan> * Nullable<DateTimeOffset> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Compute.Batch.RebootNodeOperation>
override this.RebootNodeAsync : string * string * Azure.Compute.Batch.BatchNodeRebootOptions * Nullable<TimeSpan> * Nullable<DateTimeOffset> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Compute.Batch.RebootNodeOperation>
Public Overridable Function RebootNodeAsync (poolId As String, nodeId As String, Optional parameters As BatchNodeRebootOptions = Nothing, Optional timeOutInSeconds As Nullable(Of TimeSpan) = Nothing, Optional ocpDate As Nullable(Of DateTimeOffset) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RebootNodeOperation)
Parameters
- poolId
- String
The ID of the Pool that contains the Compute Node.
- nodeId
- String
The ID of the Compute Node that you want to restart.
- parameters
- BatchNodeRebootOptions
The options to use for rebooting the Compute Node.
The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".
- ocpDate
- Nullable<DateTimeOffset>
The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
The RebootNodeOperation object to allow for polling of operation status.
Exceptions
poolId
or nodeId
is null.
poolId
or nodeId
is an empty string, and was expected to be non-empty.
Remarks
You can restart a Compute Node only if it is in an idle or running state.