HTTP GET for /device/{device-id}/currentmodeledconfiguration

When the NSM client user requests the /device/{device-id}/currentmodeledconfiguration URI using the GET method, a copy of the current modeled configuration of the device that matches the device ID entered is returned.

Input parameters

{device-id}

Available HTTP Headers

Accept: application/json

Accept: text/xml

Sample request

http://www.example.com:16310/nsm/device/2/currentmodeledconfiguration

Sample response

XML
<device>
	<currentmodeledConfiguration>
<?xml version="1.0"?> <configuration schemaUID="201203160659"
xmlns:deviceMarkup="http://www.intelliden.com/deviceMarkup"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<service><timestamps><debug><uptime deviceMarkup:disable="true"/>
</debug><log><uptime deviceMarkup:disable="true"/>
</log></timestamps><password-encryption deviceMarkup:disable="true"/>
<compress-config/></service><hostname>
<ARG.001>bfo2610a</ARG.001></hostname><boot><system><ARG.001>
flash dummy;</ARG.001></system></boot>
<logging><buffered><ARG.001>10000</ARG.001><debugging/></buffered></logging><aaa><new-model/>
<authentication><login><default/><group><tacacs_2B/><none/></group></login><login><ARG.001>
CONSOLE</ARG.001><none/></login><enable><default><group>
<tacacs_2B/><none/></group></default></enable>
</authenticationARG.001>0</ARG.001><ARG.002>0</ARG.002>
</exec-timeout><transport><input><pad/><v120/>
<telnet/><rlogin/><udptn/></input></transport></vty></line></configuration>
	</currentmodeledConfiguration>
</device>
JSON
{
  "currentModeledConfiguration": "<?xml version="1.0"?> <configuration schemaUID="201203160659"
xmlns:deviceMarkup="http://www.intelliden.com/deviceMarkup"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<service><timestamps><debug><uptime deviceMarkup:disable="true"/>
</debug><log><uptime deviceMarkup:disable="true"/>
</log></timestamps><password-encryption deviceMarkup:disable="true"/>
<compress-config/></service><hostname>
<ARG.001>bfo2610a</ARG.001></hostname><boot><system><ARG.001>
flash dummy;</ARG.001></system></boot>
<logging><buffered><ARG.001>10000</ARG.001><debugging/></buffered></logging><aaa><new-model/>
<authentication><login><default/><group><tacacs_2B/><none/></group></login><login><ARG.001>
CONSOLE</ARG.001><none/></login><enable><default><group>
<tacacs_2B/><none/></group></default></enable>
</authenticationARG.001>0</ARG.001><ARG.002>0</ARG.002>
</exec-timeout><transport><input><pad/><v120/>
<telnet/><rlogin/><udptn/></input></transport></vty></line></configuration>”
}

XML response details

Table 1. Response details
Tag Type Description
currentmodeledConfiguration Container tag Specifies the current modeled configuration of the device in XML format. The sample response shows a sample device configuration, the full device configuration is not documented because it is large.