Skip to content

Commit 56b1304

Browse files
committed
Update with link to APIC EM docs
1 parent d50065c commit 56b1304

File tree

5 files changed

+6
-6
lines changed
  • labs
    • coding-101-rest-basics-ga
    • coding-205-writing-file-ga
    • coding-207-putting-it-together-ga

5 files changed

+6
-6
lines changed

labs/coding-101-rest-basics-ga/2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The Application Policy Infrastructure Control (APIC) Enterprise Module (EM), App
2727

2828
Using the APIC-EM APIs, you can retrieve information about devices on your network including a list of hosts, network devices, or users. You are going to use these features as examples to learn how to make REST calls from Python.
2929

30-
Look at the <a href="http://devnetapic.cisco.com/" target="_blank">APIC-EM Reference Docs</a> to see the details of the APIC-EM functions.
30+
Look at the <a href="https://developer.cisco.com/site/apic-em-rest-api//" target="_blank">APIC-EM Reference Docs</a> to see the details of the APIC-EM functions.
3131

3232

3333
### How does this work?

labs/coding-101-rest-basics-ga/6.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Now, look at the Get Hosts endpoint. A host is an end device attached to the network, such as a computer connected to a wireless device. Your goal is to find the hosts and display information about them.
66

7-
To construct a request that retrieves a list of hosts, refer to the <a href="http://devnetapic.cisco.com/" target="_blank">APIC-EM API Docs</a>. Click on Inventory under Services to find Get /host. These provide the following information:
7+
To construct a request that retrieves a list of hosts, refer to the <a href="https://developer.cisco.com/site/apic-em-rest-api//" target="_blank">APIC-EM API Docs</a>. Click on Inventory under Services to find Get /host. These provide the following information:
88

99
* Method
1010
* URL

labs/coding-101-rest-basics-ga/8.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Now, look at the Get Network Devices endpoint. A Network Device transports data to/from host devices or other network devices. A network device is typically a hub, switch, or router. It can be connected to the network by an Ethernet cable or wireless connection. Your goal is to find the network devices and display information about them.
44

5-
For details about the Get Network Device API, consult the [APIC-EM API Docs](http://devnetapic.cisco.com/).
5+
For details about the Get Network Device API, consult the [APIC-EM API Docs](https://developer.cisco.com/site/apic-em-rest-api//).
66

77
1. Set up the API Call in Postman. Use the service ticket to authorize a request to GET the network devices from the controller.
88

labs/coding-205-writing-file-ga/5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Often, when you are working with REST APIs (see [Coding 101: Rest Basics Learnin
33

44
You can combine the techniques for writing to a file with the techniques for calling REST APIs that you learned in [Coding 102 Calling REST APIs from Python](/lab/coding-102-rest-python-ga/step/1)
55

6-
Now, look at an example that retrieves some JSON from the [APIC-EM APIs](http://devnetapic.cisco.com).
6+
Now, look at an example that retrieves some JSON from the [APIC-EM APIs](https://developer.cisco.com/site/apic-em-rest-api/).
77

88
```python
99
# Import the requests library so you can use it to make REST calls (https://docs.python-requests.org/en/latest/index.html)

labs/coding-207-putting-it-together-ga/3.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ logging.debug("API response: " + json.dumps(get_devices_json, indent=4, separato
6363

6464
Now, look at what is going on in the code.
6565

66-
* Using the [APIC-EM API Reference](http://devnetapic.cisco.com), you can see that the URL `api/v1/ticket` returns the service ticket that's used to authorize calls to the APIC-EM APIs. Like the other 'post' and 'get' calls, it uses the Requests library to make a call to the APIC-EM Controller to retrieve the response data.
66+
* Using the [APIC-EM API Reference](https://developer.cisco.com/site/apic-em-rest-api/), you can see that the URL `api/v1/ticket` returns the service ticket that's used to authorize calls to the APIC-EM APIs. Like the other 'post' and 'get' calls, it uses the Requests library to make a call to the APIC-EM Controller to retrieve the response data.
6767
* `api/v1/network-device/count` returns the total count of devices.
6868
* This statement `devices_count_response = requests.get(devices_count_url, headers=header, verify=False)` makes the 'get' call to retrieve the device count.
6969
* `devices_count_response` contain the response returned from the API
@@ -78,5 +78,5 @@ Now, look at what is going on in the code.
7878

7979

8080
### Things to think about
81-
* What other APIC-EM APIs in the [APIC-EM API Reference](http://devnetapic.cisco.com) would you like to try?
81+
* What other APIC-EM APIs in the [APIC-EM API Reference](https://developer.cisco.com/site/apic-em-rest-api/) would you like to try?
8282
* For more information on using the Requests library to make API calls, see [Coding 102: Calling REST APIs from Python Learning Lab](/lab/coding-102-rest-python-ga/step/1).

0 commit comments

Comments
 (0)