How can I convert a Group ID found in the Data Aggregator REST or OpenAPI to its equivalent NetOps Portal ID?
Release: All supported releases
You can use the PC proxy that I mentioned to do the translation, here is the call:
Method:
POST
URL:
http://pcHostname:8181/pc/center/webservice/datasources/dataSourceId/3/itemids
where the 3 = the Source ID of the Data Aggregator
Header:
Content-Type: application/xml
Authorization:
Basic & PC log in credentials
Body:
<LocalIDs>
<LocalID ID="19794"/>
</LocalIDs>
where 19794 is the item id obtained from ../rest/eventprofiles
Results:
<?xml version="1.0" encoding="UTF-8"?>
<ItemIDResults>
<ItemIDResult LocalID="19794" ItemID="7833"/>
</ItemIDResults>
Validation:
mysql> select itemid, itemname from t_group where itemid=7833\G
*************************** 1. row ***************************
itemid: 7833
itemname: groupName
1 row in set (0.00 sec)