How to Delete Available Interface using Odata API
Release : 10.0
Component : NQRAHV - NETQOS RA HARVESTER
Delete Interface
#Get router ID from management IP (GET) (replace xxx.xxx.xxx.xxx with the correct IP address)
http://NFA:8981/odata/api/routers?$select=ID&$filter=((contains(routerAddress,'xxx.xxx.xxx.xxx')))
<d:ID m:type="Int32">1500555</d:ID>
#Get ID interfaces on the router based on router ID from previous query (GET)
http://NFA:8981/odata/api/interfaces?$select=ID,Name&$filter=(RouterId eq 1500555)&$format=json
Name "Interface 11"
ID 2112
List interface using RestClient:
http://NFA:8981/odata/api/interfaces(2112)
Delete interface using RestClient and using Method POST
http://NFA:8981/odata/api/interfaces/com.ca.nfa.odata.deleteInterfaces
We can see that the Interface 11 was removed on NetOps Portal/NFA web page and on NFA Interfaces.