IComputeNodeOperations.RebootWithHttpMessagesAsync Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Startet den angegebenen Computeknoten neu.
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))
Parameter
- poolId
- String
Die ID des Pools, der den Computeknoten enthält.
- nodeId
- String
Die ID des Computeknotens, den Sie neu starten möchten.
- nodeRebootOption
- Nullable<ComputeNodeRebootOption>
Wann der Computeknoten neu gestartet werden soll und was mit derzeit ausgeführten Tasks zu tun ist. Der Standardwert ist „requeue“. Mögliche Werte: "requeue", "terminate", "taskCompletion", "retainedData"
- computeNodeRebootOptions
- ComputeNodeRebootOptions
Zusätzliche Parameter für den Vorgang
- customHeaders
- Dictionary<String,List<String>>
Die Header, die der Anforderung hinzugefügt werden.
- cancellationToken
- CancellationToken
Das Abbruchtoken.
Gibt zurück
Ausnahmen
Wird ausgelöst, wenn der Vorgang einen ungültigen status Code zurückgegeben hat.
Wird ausgelöst, wenn ein erforderlicher Parameter NULL ist
Hinweise
Sie können einen Computeknoten nur neu starten, wenn er sich im Leerlauf- oder Ausführungszustand befindet.
Gilt für:
Azure SDK for .NET