cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
1097
Views
1
Helpful
2
Replies
Cristian Ruta
Beginner

GET service-policy APIC-EM

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

    }

Request URL

https://10.10.10.107:443/api/v0/interface/edbc9c9c-eef9-4f57-a6bd-4f07c902b557/service-policy-out

Response Body

{ "version": "0.0" }

Response Code

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

ruta.cristian@gmail.com

1 ACCEPTED SOLUTION

Accepted Solutions
Geevarghese Cheria
Cisco Employee

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

View solution in original post

2 REPLIES 2
Geevarghese Cheria
Cisco Employee

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

View solution in original post

Cristian Ruta
Beginner

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

Create
Recognize Your Peers
Content for Community-Ad