I am working on testing Restconf on a catalyst 9200 switch. So I wanna get the interface configuration via REST API. I send following request:
curl -k https://sw02/restconf/data/Cisco-IOS-XE-native:native/interface/GigabitEthernet=1%2F0%2F2 -u "cis:co"
I get following Reply:
<GigabitEthernet xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native" xmlns:ios="http://cisco.com/ns/yang/Cisco-IOS-XE-native">
<name>1/0/2</name>
<source>
<template>
<template-name>
<template-name>LAN</template-name>
</template-name>
</template>
</source>
</GigabitEthernet>
But if i show the running configuration, i can see that there are PoE configurations on the interface that are not shown in the API output:
interface GigabitEthernet1/0/2
power inline port 2x-mode
source template LAN
end
Is this part of the configuration found on some other path? Can we fully switch to API for managing our devices, or do we have to expect that some percentage of configuration cannot be done via API? IOS-XE version 16.09.06 in use here.