How can I convert a Group ID from the DA to the NetOps Portal ID?
search cancel

How can I convert a Group ID from the DA to the NetOps Portal ID?

book

Article ID: 225241

calendar_today

Updated On:

Products

CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

How can I convert a Group ID found in the Data Aggregator REST or OpenAPI to its equivalent NetOps Portal ID?

Environment

Release: All supported releases

Cause

In http://daHostname:8581/rest/eventprofiles I see the below entry but I cannot find the NetOps Portal equivalent of it?
 
 
<EventProfileList>
<EventProfile version="2.0.0">
<ID>22296</ID>
<OwnerID>1</OwnerID>
<Enabled>true</Enabled>
<LastModifiedUserID>1</LastModifiedUserID>
<EventRuleIDList>
<EventRuleID>22295</EventRuleID>
</EventRuleIDList>
<LastModifiedTime>Fri Oct 1 15:41:16 2021 +0000</LastModifiedTime>
<RelatesTo>
<EventProfileGroupIDList relatesURL="relatesto/eventprofilegroups" rootURL="eventprofilegroups">
<ID>19621</ID>
</EventProfileGroupIDList>
<GroupIDList relatesURL="relatesto/groups" rootURL="groups">
<ID>19794</ID>
</GroupIDList>
</RelatesTo>
<Item version="1.0.0">
<Name>BW Util</Name>
<Description/>
<CreateTime>Fri Oct 1 15:41:16 2021 +0000</CreateTime>
</Item>
</EventProfile>
</EventProfileList>

Resolution

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)