# 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 ### Request URL https://[{serverurl}](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)/emsapi/osdeployer/tasks/{taskId} ### Scope `DesktopCentralCloud.OSDTask.READ` ### Header `Authorization: Zoho-oauthtoken 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 ```curl curl --request GET \ --url https://appdomains/emsapi/osdeployer/tasks/{taskId} \ --header 'Accept: application/deploymentTaskDetails.v1+json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' ``` ## Response ### 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. ### Possible Response Codes - **200**: HTTP code ### 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 } ``` ## Rate Limit ![ ](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **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.