Share via


TaskOperationsExtensions.Get Method

Definition

Gets information about the specified Task.

public static Microsoft.Azure.Batch.Protocol.Models.CloudTask Get (this Microsoft.Azure.Batch.Protocol.ITaskOperations operations, string jobId, string taskId, Microsoft.Azure.Batch.Protocol.Models.TaskGetOptions taskGetOptions = default);
static member Get : Microsoft.Azure.Batch.Protocol.ITaskOperations * string * string * Microsoft.Azure.Batch.Protocol.Models.TaskGetOptions -> Microsoft.Azure.Batch.Protocol.Models.CloudTask
<Extension()>
Public Function Get (operations As ITaskOperations, jobId As String, taskId As String, Optional taskGetOptions As TaskGetOptions = Nothing) As CloudTask

Parameters

operations
ITaskOperations

The operations group for this extension method.

jobId
String

The ID of the Job that contains the Task.

taskId
String

The ID of the Task to get information about.

taskGetOptions
TaskGetOptions

Additional parameters for the operation

Returns

Remarks

For multi-instance Tasks, information such as affinityId, executionInfo and nodeInfo refer to the primary Task. Use the list subtasks API to retrieve information about subtasks.

Applies to