Tags & Device Attributes
GET /api/public/v1/hostcfg
apiKey: {your-api-key}
Each device in the response has a hostcfg_id which equals the item_id.
GET /api/public/v1/tags/categories
apiKey: {your-api-key}
Returns:
{
"statusCode": 200,
"data": [
{ "category_id": "cat-uuid-1", "label": "location" },
{ "category_id": "cat-uuid-2", "label": "environment" }
]
}
GET /api/public/v1/tags
apiKey: {your-api-key}
Returns all tags. Some may belong to a category, others may be standalone.
GET /api/public/v1/tags/{tag_id}/items
apiKey: {your-api-key}
Returns the list of items (item_id = hostcfg_id), or just filter out for subsystem device) assigned to that tag.
GET /api/public/v1/tags/search-items?tag=production
apiKey: {your-api-key}
GET /api/public/v1/tags/search-items?tag=production&category=environment
apiKey: {your-api-key}
POST /api/public/v1/tags/categories
{ "category_label": "environment" }
POST /api/public/v1/tags
{ "label": "production", "category_label": "environment" }
POST /api/public/v1/tags
{ "label": "critical" }
POST /api/public/v1/tags/{tag_id}/items
{ "item_ids": ["hostcfg-id-1", "hostcfg-id-2"] }
GET /api/public/v1/hostcfg -> list devices
GET /api/public/v1/tags -> list all tags
GET /api/public/v1/tags/categories -> list all categories
GET /api/public/v1/tags/{tag_id}/items -> items assigned to a tag
GET /api/public/v1/tags/search-items?tag= -> search by tag label
GET /api/public/v1/tags/search-items?tag=&category= -> search by tag + category
POST /api/public/v1/tags -> create a tag
POST /api/public/v1/tags/categories -> create a category
POST /api/public/v1/tags/{tag_id}/items -> assign items to a tag
All endpoints require the apiKey header.