# Retrieve software metering rules Returns the list of software metering rules configured in the system, including app definition details and usage statistics. ## Endpoint `GET /dcapi/inventory/viewData/swMeteringSummary` ## Request ### Request URL `https://{server-hostname}:8383/dcapi/inventory/viewData/swMeteringSummary` ### 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/swMeteringSummary \ --header 'Accept: application/InventoryMobileAPI.v1+json' \ --header 'Authorization: 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 software metering rule objects. - `totalPages` (`string`): Total number of pages. - `Links` (`JSON Object`): Pagination links. - `status` (`string`): Response status - success. ### Sample Response: HTTP 200 Software metering rules ```json { "metadata": { "limit": 25, "page": 1 }, "totalRecords": "2", "messageResponse": [ { "original_file_name_transform": "--", "file_version": "", "comments_transform": "--", "product_name_transform": "--", "added_time": "1778827877323", "modified_time_transform": "May 15, 2026 12:21 PM", "os_platform_transform": "Windows", "swm_discovered_count": "1", "app_definition_status": "true", "modified_time": "1778827877323", "added_by": "SampleUser", "original_file_name": "", "file_version_transform": "--", "comments": "", "modified_by_transform": "SampleUser", "file_name": "sampleapp.exe", "os_platform": "1", "total_run_time": "145540", "definition_name_transform": "Sample App", "added_by_transform": "SampleUser", "product_name": "", "file_name_transform": "sampleapp.exe", "invswmeteringrulessummaryapp_definition_id": "1", "total_run_count": "726", "definition_name": "Sample App", "modified_by": "SampleUser", "app_definition_id": "1", "added_time_transform": "May 15, 2026 12:21 PM", "customer_id": "1" } ], "totalPages": 1, "Links": { "next": null, "prev": null }, "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. ### Sample Response: HTTP 500 Server error ```json { "error_description": "Internal server error", "error_code": "INTERNAL_ERROR" } ``` ## Possible Response Codes - **200**: HTTP code. - **500**: HTTP code. ## Rate Limit **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.