Forum Discussion

Joe_Tran's avatar
Icon for Advisor rankAdvisor
6 years ago

REST API for resources -- inheritedProperties objects should include which hostGroupId that property is inherited from

For /device/devices the inheritedProperties objects should include a key-value pair that identifies the hostGroupId that object is inherited from


    "status": 200,
    "errmsg": "OK",
    "data": {
        "total": 1,
        "items": [
                "name": "hostname",
                "inheritedProperties": [
                        "name": "keyname1",
                        "value": "value1",
                        "inheritedFromHostGroupId": 2

I'm not super tied to the name of the proposed key ?



1 Reply

Replies have been turned off for this discussion
  • Sarah_Terry's avatar
    Icon for Product Manager rankProduct Manager

    Thanks for the request @Joe Tran! The id for the group the property was inherited from is returned if you hit the properties endpoint directly - e.g. /device/devices/ID/properties (there is an object in the response called 'inheritList'). We can look into including this information in the list response as well if you think that'd be helpful.