# Retrieve disk usage details of a computer Returns the overall disk utilization of a computer including total size, used space, free space, and their percentages. ## Endpoint `GET /dcapi/inventory/computers/{resourceID}/diskUsageSummary` ## Request ### Request URL `https://{server-hostname}:8383/dcapi/inventory/computers/{resourceID}/diskUsageSummary` ### Scope `Inventory.READ` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers | Name | Type | Required | Value | |---|---|---|---| | Accept | string | Mandatory | application/diskUsageSummary.v1+json | #### Path Parameters | Name | Type | Required | Description | |---|---|---|---| | resourceID | string | Mandatory | Resource identifier of the computer. Obtain from the response of the [Get Computers List](https://www.manageengine.com/products/desktop-central/help/api/onpremise/computers-getcomputers.html) API. | ### Sample Request ```curl curl --request GET \ --url https://appdomain/dcapi/inventory/computers/{resourceID}/diskUsageSummary \ --header 'Accept: application/diskUsageSummary.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP Code 200 Response Body: `application/json` | Name | Type | Description | |---|---|---| | diskSize | string | Total disk size in GB | | diskUsedSize | string | Used disk space in GB | | diskFreeSize | string | Free disk space in GB | | diskUsedPercentage | string | Percentage of disk space used | | diskFreePercentage | string | Percentage of disk space free | #### Sample Response: HTTP 200 Disk usage details ```json { "diskFreePercentage": 63.06, "diskSize": 953, "diskUsedPercentage": 36.94, "diskUsedSize": 352, "diskFreeSize": 601 } ``` ### HTTP Code 401 Response Body: `application/json` | Name | Type | Description | |---|---|---| | error_code | string | UAC_UNAUTHORIZED - user lacks the required uem-roles or credentials are missing | | error_description | string | Authentication or authorization failure reason | #### Sample Response: HTTP 401 Missing credentials ```json { "error_description": "Unauthorized access", "error_code": "UAC_UNAUTHORIZED" } ``` ### HTTP Code 404 Response Body: `application/json` | Name | Type | Description | |---|---|---| | error_code | string | RESOURCE_NOT_AVAILABLE - the specified resourceID does not exist or is not accessible | | error_description | string | Resource not found message | #### Sample Response: HTTP 404 Resource not found ```json { "error_description": "The specified resource was not found", "error_code": "RESOURCE_NOT_AVAILABLE" } ``` ### HTTP Code 500 Response Body: `application/json` | Name | Type | Description | |---|---|---| | error_code | string | INTERNAL_ERROR - unexpected exception in the service layer | | error_description | string | Internal server error message | #### Sample Response: HTTP 500 Server error ```json { "error_description": "Internal server error", "error_code": "INTERNAL_ERROR" } ``` ## Possible Response Codes - `200` — HTTP code - `401` — HTTP code - `404` — HTTP code - `500` — HTTP code **Duration:** 1 minute | **Threshold:** 120 | **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.