So let's say we're unfamiliar with net comp or rest comp and we just want to go
through and test a little bit of this API integration to be able to get some
practice under our belts.
Well, that's why we still have our simulation here open up inside of DevNet for
our sandbox and we're again we're using the let me go back here and show you
real quick the open NX OS sandbox open up to be able to go through and access
the actual API calls or rest comp and net comp.
Now in here you're going to see that there's a lot of different things that WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
Now in here you're going to see that there's a lot of different things that
could go have could happen inside of our command request in our post.
Now let me zoom in for you real quick and I have the NX API references link and
if you click on that you get all the basic commands that you can actually call
up inside of the actual Cisco device going back we're going to see show called
home.
We're going to use that one first and I'm going to go back to the actual WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
We're going to use that one first and I'm going to go back to the actual
sandbox and in our first section up here where it says inner CLI commands here
meaning command line interface which is the actual device itself.
Let's so that would represent if you were on the actual singular network device
like a switch and you enter show call home.
You notice that it starts filling in inside of our request right here and let
me zoom in for you real quick the command is show call home and we're going to WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
me zoom in for you real quick the command is show call home and we're going to
actually send the request.
The response coming back is is that it's telling us what's configured inside me
zoom in for you right there that actual device that we're trying to configure
through CLI.
That's the advantage of net comp and rest comp is that we can work on these
devices in mass if we want to or singular if we needed to remotely across of
our cloud infrastructure as a service.
And if you'll notice on the right as well to we have the actual method message WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
And if you'll notice on the right as well to we have the actual method message
format command type and error action now where this comes in at is is that
under method we can use CLI to be able to do this or we can go to rest or rest
comp which is the young model.
And we can actually change the kind of input method or message format from
Jason RPC to XML or Jason to get more familiar with how those commands would
transmit from point eight to point E.
And the command type is CLI or any other CLI model we're just taking away CLI I WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
And the command type is CLI or any other CLI model we're just taking away CLI I
'm just showing you the different options here real quick.
And you can click on the different languages as well. So if you wanted to see
what you request would look like inside a python there's the actual python
script Python Python three and so on we're just going to stand a request to see
what's actually going on inside of the CLI.
And one thing I wanted to point out too is I want to copy the response and make
sure make sure that I can copy that will show you inside of no pad real quick. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
sure make sure that I can copy that will show you inside of no pad real quick.
And what we have here is is what needs to be actually sent or this is the
response to the from the actual singular device if we wanted to be able to have
more detailed information for what our call home command is we can actually
fill this out with details.
Significant to our organization to be able to go through and configure multiple
devices within our infrastructure as a service environment.
So using the API calls allows us to be able to go through and configure those WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
So using the API calls allows us to be able to go through and configure those
multiple devices without being able to have to go touch them individually.
And when we're in that side of that cloud environment that's perfect and it
even works inside of those hybrid environments hybrid you say well I'll be
getting into that very shortly.