# Retrieve computers where a hardware component is installed Returns all computers that have the specified hardware component. ## Endpoint `GET /dcapi/inventory/viewData/computersByHW` ## Request ### Request URL `https://{server-hostname}:8383/dcapi/inventory/viewData/computersByHW` ### Scope `Inventory.READ` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **Accept** `string` **Mandatory**: `application/InventoryMobileAPI.v1+json` ### Sample Request ```curl curl --request GET \ --url https://appdomain/dcapi/inventory/viewData/computersByHW \ --header 'Accept: application/InventoryMobileAPI.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP Code 200 #### Response Body — `application/json` - `JSON Object` - **metadata** `JSON Object`: Pagination metadata - **totalRecords** `string`: Total number of records matching the query - **messageResponse** `JSON Array`: Array of computer 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` - `JSON Object` - **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 hardware ```json { "metadata": { "limit": 25, "page": 1 }, "totalRecords": "1", "messageResponse": [ { "resource_name_transform": "sample-computer", "model_transform": "Sample Model", "branch_office_id": "1", "product_number": "--", "copies": "1", "warranty_expiry_date_transform": "Oct 11, 2024", "model": "Sample Model", "live_status_resource_id": "301", "domain_netbios_name_transform": "WORKGROUP", "license_status_transform": "Licensed", "asset_tag": "-", "copies_transform": "1", "branch_office_name_transform": "Local Office", "asset_tag_transform": "-", "agent_last_contact_time_transform": "May 14, 2026 04:31 PM", "agent_logged_on_users": "Administrator", "fqdn_name_transform": "SAMPLE-COMPUTER.DOMAIN.COM", "license_status": "Licensed", "computer_description": "-", "no_of_processors": "1", "system_type": "x64-based PC", "computer_status_transform": "Unknown", "friendly_name_transform": "sample-computer", "computer_description_transform": "-", "product_number_transform": "--", "computer_status_update_time": "1778756474127", "no_of_processors_transform": "1", "computer_status": "Unknown", "branch_office_name": "Local Office", "shipping_date": "1570714200000", "agent_last_contact_time": "1778756473455", "domain_netbios_name": "WORKGROUP", "fqdn_name": "SAMPLE-COMPUTER.DOMAIN.COM", "primary_owner_name": "--", "ip_address_transform": "10.0.0.1", "agent_last_bootup_time_transform": "Apr 30, 2026 01:20 PM", "boot_up_state": "Normal boot", "mac_address": "00:00:00:00:00:00", "warranty_expiry_date": "1728653399000", "boot_up_state_transform": "Normal boot", "friendly_name": "sample-computer", "agent_logged_on_users_transform": "Administrator", "ip_address": "10.0.0.1", "shipping_date_transform": "Oct 10, 2019", "system_type_transform": "x64-based PC", "mac_address_transform": "00:00:00:00:00:00", "agent_last_bootup_time": "1777535435000", "servicetag": "SAMPLE01", "total_ram_memory": "17179869184", "resource_id": "301", "computer_live_status": "1", "resource_name": "sample-computer", "servicetag_transform": "SAMPLE01" } ], "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" } ``` ## API 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.