Joe Tran

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

Recommended Posts

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

Example

{
    "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 😉

 

Thanks!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.