ssm_get_inventory function

Query inventory information