What is the parameter to use for uimapi to get a result back from inventory?
DX UIM 20.4.x / 23.4.x
The GET /uimapi/inventory API is used to display a computer system attributes by taking the computer system ID as input.
This computer system ID is available in the database table CM_COMPUTER_SYSTEM.
You can further filter down it by providing the second parameter that is origin name.
This will helpful if you have two or more computer systems with the same name in different origins.
These APIs will be useful to fetch data for that.
Below is the sample output it gives. for the given computer system id : 1 and Origin test
[
{
"status": null,
"origin": "test",
"for_computer_system": {
"id": "1",
"self": "http://test/uimapi/devices/1",
"name": "test",
"ip": "Robot_IP"
},
"attributes": [
{
"key": "Origin",
"value": "test"
},
{
"key": "RobotInstanceId",
"value": "D85DFE1A31BC0E5F92BDFD400EF044909"
},
{
"key": "DisplayAlias",
"value": "test"
},
{
"key": "PrimaryIPV4Address",
"value": "Primary_IP"
},
{
"key": "typeName",
"value": "ComputerSystem"
},
{
"key": "PrimaryRole",
"value": "Host"
},
{
"key": "Roles",
"value": "Host"
},
{
"key": "label",
"value": "test"
},
{
"key": "PrimaryOSType",
"value": "WindowsServer-2019"
},
{
"key": "RobotName",
"value": "test"
},
{
"key": "CorrelationNames",
"value": "test"
},
{
"key": "DisplayName",
"value": "test"
},
{
"key": "CorrelationId",
"value": "D85DFE1A31BC0E5F92BDFD400EF044909"
},
{
"key": "OSDescription",
"value": "Service Pack 0 Build 17763"
},
{
"key": "PrimaryOSVersion",
"value": "10.0.17763"
},
{
"key": "PrimaryMacAddress",
"value": "42-01-0A-FD-09-39"
},
{
"key": "Roles",
"value": "Device"
},
{
"key": "TargetIpAddresses",
"value": "Target_IP"
},
{
"key": "ProcessorSpeedInGHz",
"value": "2.25"
},
{
"key": "ProcessorType",
"value": "x86_64"
},
{
"key": "ProcessorDescription",
"value": "AMD EPYC 7B12"
},
{
"key": "SystemType",
"value": "Standalone_Server"
},
{
"key": "daIds",
"value": "5"
},
{
"key": "PhysSerialNumber",
"value": "Board-GoogleCloud-3D03F2F8628D4C3226E566C19974261F"
},
{
"key": "MemoryInGB",
"value": "31.999610900878906"
},
{
"key": "PrimaryDnsName",
"value": "test"
},
{
"key": "BiosSystemID",
"value": "GoogleCloud-3D03F2F8628D4C3226E566C19974261F"
},
{
"key": "NumberOfProcessorCores",
"value": "4"
},
{
"key": "NumberOfCores",
"value": "4.0"
},
{
"key": "StorageInGB",
"value": "199.65526962280273"
},
{
"key": "Vendor",
"value": "Google"
},
{
"key": "NumberOfLogicalProcessors",
"value": "8"
},
{
"key": "NumberOfPhysicalProcessors",
"value": "1"
},
{
"key": "ComputerName",
"value": "test"
},
{
"key": "Model",
"value": "Google Compute Engine"
},
{
"key": "tags",
"value": "uim machine"
},
{
"key": "NisPrimaryRole",
"value": "Host"
}
]
}
]