cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API for List of valid tags for Maintenance Window scope

c_m_anderson
Helper

As part of the Maintenance Window API functionality, in order to set the scope of a maintenance window to filter on tags, it is necessary to pass only valid tags. Is there an API method to retrieve the valid tag list, similar to generating the list that pops up in the UI?

2 REPLIES 2

chase_hulderma1
Inactive

You could probably use the topology api and then crawl through that to pull the available tags. I'm not aware of an API endpoint that just pulls that. I'd submit an RFE.

c_m_anderson
Helper

I ended up using the Host entities feed , and then transforming that into a distinct list:

var listTags = from h in Entities
from t in h.Tags
select t.Key;
_uniqueTags = listTags.Distinct().OrderBy(x=>x).ToList();
return _uniqueTags;
}

Featured Posts