# Fetch full configuration of a deployment task Returns the deployment task's template, schedule, broadcast settings, remote offices, media, and resource IDs. ## Endpoint `GET /emsapi/osdeployer/tasks/{taskId}` ## Request URL `https://{server-hostname}:8383/emsapi/osdeployer/tasks/{taskId}` ## Scope `OSDTask.READ` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** (`string`, Mandatory): `application/deploymentTaskDetails.v1+json` ### Path Parameters - **taskId** (`string`, Mandatory): ID of the OS Deployment task ### Sample Request ```bash curl --request GET \ --url https://appdomain/emsapi/osdeployer/tasks/{taskId} \ --header 'Accept: application/deploymentTaskDetails.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP Code 200 Response Body: `application/deploymentTaskDetails.v1+json` - `JSON Object` - **taskName** (`string`): Name of the deployment task. - **taskDescription** (`string`): Optional description of the task. - **templateID** (`long`): ID of the OS deployment template associated with this task. - **targetType** (`integer`): Indicates how target machines are identified (e.g., by MAC address or zero-touch). - **isScheduled** (`boolean`): True if the task is configured to run on a schedule. - **isAlwaysActive** (`boolean`): True if the task is set to remain active continuously. - **taskCreatedBy** (`string`): Username of the person who created the task. - **authCode** (`string`): Authentication code configured for the task, if any. - **taskTargets** (`JSON Array`): List of target machines added to this task. - **taskSettings** (`JSON Object`): Broadcast and schedule configuration for the task. - **status** (`string`): Current status of the task as a text code (e.g., `TASK_COMPLETED`, `TASK_RUNNING`, `TASK_STOPPED`). - **isTaskCommitted** (`boolean`): True if the task has been committed (via `PUT /tasks/{taskId}`); false if still in draft state. - **wakeOnLan** (`boolean`): True if Wake-on-LAN is enabled for this task. - **remarks** (`string`): Additional information about the current task status. - **deploymentIDs** (`array`): IDs of all deployments initiated by this task. ### Sample Response: HTTP 200 A default deployment task response ```json { "taskCreatedBy": "admin", "authCode": "9p5z", "imageID": "1", "taskDescription": "", "targetType": "1", "isScheduled": false, "templateID": "1", "taskSettings": { "bandwidth": "65000000", "waitTime": "10", "broadcastType": "2" }, "isAlwaysActive": false, "taskName": "DeploymentTask11", "remarks": "Task ended as server had stopped during deployment", "deploymentIDs": [], "status": 6 } ``` ## Possible Response Codes - **200**: HTTP code ## Rate Limit **Duration:** 1 minute | **Threshold:** 50 | **Lock period:** 5 minutes Duration - Time window for the threshold. Threshold - Number of API calls allowed within the specified duration. Lock Period - Wait time before consecutive API requests.