Is there a REST field for Data Collector name, and IP domain

Document ID : KB000121319
Last Modified Date : 16/11/2018
Show Technical Document Details
Question:
How to reference a devices IP Domain and Data Collector using the Data Aggregator rest interface.
Answer:
When looking at a device in the Data Aggregator Rest interface: 

http://dahost:8581/rest/devices/DEVICEID 

You will see: 

<IPDomainMember version="1.0.0"> 
    <IPDomainID>DOMIDNUMBER</IPDomainID> 
</IPDomainMember> 

You can use that to reference the IP Domain at: 

http://dahost:8581/rest/ipdomains/DOMIDNUMBER 

You will also see: 

<MDRItemID>DCIDNUMBER</MDRItemID> 

Which can be used to reference the DC at: 

http://dahost:8581/rest/dcms/DCIDNUMBER