AnsweredAssumed Answered

Where do you find networkguid?

Question asked by Jonathan Anon on Jan 23, 2018
Latest reply on Feb 4, 2018 by DMFezzaReed

I want to create an Dynamic Tag for an IP in a network, using the v2 API.

 

From the API documentation I have managed to generate a succesful asset tag with the following request body;

 

HTTP post to: https://{{base_url}}/qps/rest/2.0/create/am/tag

 

Post body:

<ServiceRequest>
<data>
<Tag>
<name>API Test Tag for .11</name>
<ruleType>NETWORK_RANGE_ENHANCED</ruleType>
<ruleText>&lt;RANGES&gt;&lt;RANGE network=&quot;9c6233d9-6e3c-5e1e-83e0-11a8a3c41602&quot; type=&quot;IP&quot;&gt;192.168.11.1&lt;/RANGE&gt;&lt;/RANGES&gt;</ruleText>
</Tag>
</data>
</ServiceRequest>

 

The user specifies a network name. My question is how do I programatically lookup a network GUID, to supply to this call for an IP that has not yet been scanned? I can lookup Network ID but I dont see where I would get GUID.

Outcomes