# Retrieve computers associated with a metering rule Returns all computers linked to a specified software metering rule by app definition ID. ## Endpoint `GET /dcapi/inventory/viewData/computersBySM` ## Request ### Request URL https://[*{serverurl}*](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)/dcapi/inventory/viewData/computersBySM ### Scope `DesktopCentralCloud.Inventory.READ` ### Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **Accept** `string` **Mandatory**: `application/InventoryMobileAPI.v1+json` #### Query Parameters - **toolID** `string` **Mandatory**: Set value as `7774`. - **appDefID** `string` **Mandatory**: App definition ID for the software metering rule. Obtain from the response of the [Get Software Metering Rules List](https://www.manageengine.com/products/desktop-central/help/api/cloud/inventory-get-software-metering-rules-list.html) API. - **domain** `string` Optional: Domain name to filter computers. Obtain from the response of the [Get Computers List](https://www.manageengine.com/products/desktop-central/help/api/cloud/computers-getcomputers.html) API. - **branchOffice** `string` Optional: Branch office ID to filter computers. Obtain it from the response of the [Get Remote Office List](https://www.manageengine.com/products/desktop-central/help/api/cloud/remote-offices-getremoteoffices.html) API. ### Sample Request ```curl curl --request GET \ --url 'https://appdomains/dcapi/inventory/viewData/computersBySM?toolID=7774&appDefID=SOME_STRING_VALUE' \ --header 'Accept: application/InventoryMobileAPI.v1+json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP Code 200 Response Body: `application/json` - `metadata` — JSON Object: Pagination metadata - `totalRecords` `string`: Total number of records matching the query - `messageResponse` — JSON Array: Array of computer metering detail objects - `totalPages` `string`: Total number of pages - `Links` — JSON Object: Pagination links - `status` `string`: Response status - success ### HTTP Code 500 Response Body: `application/json` - `error_code` `string`: INTERNAL_ERROR - unexpected exception in the service layer - `error_description` `string`: Internal server error message ### Possible Response Codes - **200** — HTTP code - **500** — HTTP code ### Sample Response: HTTP 200 Computers by metering rule ```json { "metadata": { "limit": 25, "page": 1 }, "totalRecords": "1", "messageResponse": [ { "file_version": "", "resource_name_transform": "sample-computer", "updated_time": "1778827912158", "product_name_transform": "Sample App", "branch_office_name": "Local Office", "last_used": "1778810902000", "domain_netbios_name": "WORKGROUP", "branch_office_id": "1", "updated_time_transform": "May 15, 2026 12:21 PM", "fqdn_name": "sample-computer.example.com", "last_used_transform": "May 15, 2026 07:38 AM", "total_run_time_transform": "03 days, 05 hours, 13 minutes", "live_status_resource_id": "301", "total_run_count_transform": "598", "file_version_transform": "--", "domain_netbios_name_transform": "WORKGROUP", "product_version": "", "friendly_name": "sample-computer", "total_run_time": "278024", "resource_resource_id": "301", "fqdn_name_transform": "sample-computer.example.com", "product_version_transform": "--", "product_name": "Sample App", "total_run_count": "598", "app_definition_id": "2", "resource_id": "301", "computer_live_status": "1", "resource_name": "sample-computer", "customer_id": "1", "friendly_name_transform": "sample-computer", "computer_status_update_time": "1778767913704" } ], "totalPages": 1, "Links": { "next": null, "prev": null }, "status": "success" } ``` ### Sample Response: HTTP 500 Server error ```json { "error_description": "Internal server error", "error_code": "INTERNAL_ERROR" } ``` ## Rate Limit ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **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.