次の方法で共有


IComputeNodeOperations.EnableSchedulingWithHttpMessagesAsync メソッド

定義

指定したコンピューティング ノードでタスク スケジュールを有効にします。

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

パラメーター

poolId
String

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

nodeId
String

タスクのスケジュール設定を有効にするコンピューティング ノードの ID。

computeNodeEnableSchedulingOptions
ComputeNodeEnableSchedulingOptions

操作の追加パラメーター

customHeaders
Dictionary<String,List<String>>

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

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

例外

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

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

注釈

コンピューティング ノードでタスク スケジューリングを有効にできるのは、現在のスケジュール状態が無効になっている場合のみです

適用対象