# 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://{server-hostname}:8383/dcapi/inventory/viewData/computersBySM` ### Scope `Inventory.READ` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers | Parameter | Type | Required | Value | |---|---|---|---| | Accept | string | Mandatory | `application/InventoryMobileAPI.v1+json` | ### Sample Request ```curl curl --request GET \ --url https://appdomain/dcapi/inventory/viewData/computersBySM \ --header 'Accept: application/InventoryMobileAPI.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP Code 200 Response Body: `application/json` | Parameter | Type | Description | |---|---|---| | 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` | Parameter | Type | Description | |---|---|---| | error_code | string | INTERNAL_ERROR - unexpected exception in the service layer | | error_description | string | Internal server error message | ### Possible Response Codes | Code | Type | |---|---| | 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.