IOS-XE APIs Flashcards

1
Q

what APIs IOS-XE supports

A

NETCONF and RESTCONF

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

how is RESTCONF different from NETCONF

A

HTTPS transport and supports JSON in addition to XML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is the content-type and accept header

A

application/vnd.yang.data+json (or +xml)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what must be done after config change is made

A

exit from conf t to make it visible for RESTCONF

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is the difference between REST and RESTCONF

A

URL and content is dictated by YANG and headers are specific

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

how do you enable RESTCONF on IOS-XE

A

restconf
username cisco privilege 15 password cisco
ip http server
ip http secure-server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what HTTPS methods are supported

A

GET, POST, PUT, PATCH, DELETE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

which port is used for NETCONF on IOS-XE

A

830

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what flag might be needed to use NETCONF

A

-s netconf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly