WEBVTT

1
00:00.000 --> 00:04.560
So let's say we're unfamiliar with net comp or rest comp and we just want to go

2
00:04.560 --> 00:08.630
through and test a little bit of this API integration to be able to get some

3
00:08.630 --> 00:10.000
practice under our belts.

4
00:10.000 --> 00:15.090
Well, that's why we still have our simulation here open up inside of DevNet for

5
00:15.090 --> 00:19.420
our sandbox and we're again we're using the let me go back here and show you

6
00:19.420 --> 00:25.500
real quick the open NX OS sandbox open up to be able to go through and access

7
00:25.500 --> 00:29.000
the actual API calls or rest comp and net comp.

8
00:29.000 --> 00:34.640
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

8
00:29.000 --> 00:34.640
Now in here you're going to see that there's a lot of different things that

9
00:34.640 --> 00:40.000
could go have could happen inside of our command request in our post.

10
00:40.000 --> 00:45.840
Now let me zoom in for you real quick and I have the NX API references link and

11
00:45.840 --> 00:52.070
if you click on that you get all the basic commands that you can actually call

12
00:52.070 --> 00:57.700
up inside of the actual Cisco device going back we're going to see show called

13
00:57.700 --> 00:58.000
home.

14
00:58.000 --> 01:01.860
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

14
00:58.000 --> 01:01.860
We're going to use that one first and I'm going to go back to the actual

15
01:01.860 --> 01:06.090
sandbox and in our first section up here where it says inner CLI commands here

16
01:06.090 --> 01:10.000
meaning command line interface which is the actual device itself.

17
01:10.000 --> 01:16.530
Let's so that would represent if you were on the actual singular network device

18
01:16.530 --> 01:20.000
like a switch and you enter show call home.

19
01:20.000 --> 01:25.060
You notice that it starts filling in inside of our request right here and let

20
01:25.060 --> 01:30.040
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

20
01:25.060 --> 01:30.040
me zoom in for you real quick the command is show call home and we're going to

21
01:30.040 --> 01:32.000
actually send the request.

22
01:32.000 --> 01:37.080
The response coming back is is that it's telling us what's configured inside me

23
01:37.080 --> 01:42.050
zoom in for you right there that actual device that we're trying to configure

24
01:42.050 --> 01:43.000
through CLI.

25
01:43.000 --> 01:49.260
That's the advantage of net comp and rest comp is that we can work on these

26
01:49.260 --> 01:54.790
devices in mass if we want to or singular if we needed to remotely across of

27
01:54.790 --> 01:58.000
our cloud infrastructure as a service.

28
01:58.000 --> 02:03.590
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

28
01:58.000 --> 02:03.590
And if you'll notice on the right as well to we have the actual method message

29
02:03.590 --> 02:08.680
format command type and error action now where this comes in at is is that

30
02:08.680 --> 02:13.850
under method we can use CLI to be able to do this or we can go to rest or rest

31
02:13.850 --> 02:16.000
comp which is the young model.

32
02:16.000 --> 02:20.640
And we can actually change the kind of input method or message format from

33
02:20.640 --> 02:25.340
Jason RPC to XML or Jason to get more familiar with how those commands would

34
02:25.340 --> 02:28.000
transmit from point eight to point E.

35
02:28.000 --> 02:32.410
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

35
02:28.000 --> 02:32.410
And the command type is CLI or any other CLI model we're just taking away CLI I

36
02:32.410 --> 02:36.000
'm just showing you the different options here real quick.

37
02:36.000 --> 02:40.750
And you can click on the different languages as well. So if you wanted to see

38
02:40.750 --> 02:45.810
what you request would look like inside a python there's the actual python

39
02:45.810 --> 02:50.130
script Python Python three and so on we're just going to stand a request to see

40
02:50.130 --> 02:53.000
what's actually going on inside of the CLI.

41
02:53.000 --> 02:58.650
And one thing I wanted to point out too is I want to copy the response and make

42
02:58.650 --> 03:04.000
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

42
02:58.650 --> 03:04.000
sure make sure that I can copy that will show you inside of no pad real quick.

43
03:04.000 --> 03:08.830
And what we have here is is what needs to be actually sent or this is the

44
03:08.830 --> 03:14.310
response to the from the actual singular device if we wanted to be able to have

45
03:14.310 --> 03:19.190
more detailed information for what our call home command is we can actually

46
03:19.190 --> 03:21.000
fill this out with details.

47
03:21.000 --> 03:25.480
Significant to our organization to be able to go through and configure multiple

48
03:25.480 --> 03:29.000
devices within our infrastructure as a service environment.

49
03:29.000 --> 03:34.100
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

49
03:29.000 --> 03:34.100
So using the API calls allows us to be able to go through and configure those

50
03:34.100 --> 03:39.000
multiple devices without being able to have to go touch them individually.

51
03:39.000 --> 03:43.270
And when we're in that side of that cloud environment that's perfect and it

52
03:43.270 --> 03:47.430
even works inside of those hybrid environments hybrid you say well I'll be

53
03:47.430 --> 03:49.000
getting into that very shortly.
