04-29-2015 09:52 AM - edited 03-01-2019 04:25 AM
Hello,
I have a problem getting a result with the method getServicePolicyOutByInterfaceId
here is the interface:
ISR4451X-B#sh run int gi 0/0/1
Building configuration...
Current configuration : 194 bytes
!
interface GigabitEthernet0/0/1
description P2P link to 3560-X
ip address 10.10.30.65 255.255.255.252
speed 1000
no negotiation auto
service-policy input PM
service-policy output PM
end
result is: {
"version": "0.0",
"response": {
"ipv4Address": "10.10.30.1",
"macAddress": "FC:5B:39:D4:4C:01",
"vendor": "Cisco",
"ipv4Mask": "30",
"duplex": true,
"serialNo": "FGL183710LP",
"pid": "ISR4451-X/K9",
"lastUpdated": "2015-04-27 15:30:12.629034+00",
"status": "up",
"numUpdates": 534,
"interfaceType": "Physical",
"deviceId": "5a89d2c4-9613-4a2e-900a-4122a900788a",
"portName": "GigabitEthernet0/0/1",
"portType": "ISR4451-X-4x1GE",
"ospfSupport": true,
"connectorType": "RJ-45",
"id": "edbc9c9c-eef9-4f57-a6bd-4f07c902b557",
"speed": 1000000,
"avgUpdateFrequency": 181
}
https://10.10.10.107:443/api/v0/interface/edbc9c9c-eef9-4f57-a6bd-4f07c902b557/service-policy-out
{ "version": "0.0" }
200
How it really works, can someone give me an example?
I am trying to get the rate on an interface. Is there another way?
Thank you,
Cristian Ruta
Solved! Go to Solution.
04-29-2015 10:11 PM
Hi Cristian,
The result what you got is correct only as the response code is 200. Did you had chance to try
https://10.10.10.107/swagger#!//api/v0/interface/<interface id>
I would request you to refer the https://developer.cisco.com/site/apic-em/discover/videos/ for further information.
Thanks and Regards,
Geevarghese
04-29-2015 10:11 PM
Hi Cristian,
The result what you got is correct only as the response code is 200. Did you had chance to try
https://10.10.10.107/swagger#!//api/v0/interface/<interface id>
I would request you to refer the https://developer.cisco.com/site/apic-em/discover/videos/ for further information.
Thanks and Regards,
Geevarghese
05-04-2015 01:00 AM
hi Geevarghese!
I already seen the tutorials and also tested get interface method that you specified but I don't find something related to get service-policy or traffic rate information on the interface.
Thank you,
Cristian
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:
This community is intended for developer topics around Data Center technology and products. If you are looking for a non-developer topic about Data Center, you might find additional information in the Data Center and Cloud community