diff --git a/programming_fundamentals/python_part_3/api_requests_example.py b/programming_fundamentals/python_part_3/api_requests_example.py index 5cc91db..c1085ee 100644 --- a/programming_fundamentals/python_part_3/api_requests_example.py +++ b/programming_fundamentals/python_part_3/api_requests_example.py @@ -15,10 +15,15 @@ import requests from pprint import pprint +import urllib3 + +# Disable SSL Warnings +urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) + router = {"ip": "ios-xe-mgmt.cisco.com", - "port": "9443", + "port": "443", "user": "developer", - "pass": "C1sco12345"} + "pass": "lastorangerestoreball8876"} headers = {"Accept": "application/yang-data+json"} diff --git a/programming_fundamentals/rest_part_1/README.md b/programming_fundamentals/rest_part_1/README.md index 0e9aef6..a5b808a 100644 --- a/programming_fundamentals/rest_part_1/README.md +++ b/programming_fundamentals/rest_part_1/README.md @@ -24,10 +24,10 @@ This lesson leverages the [IOS XE on CSR Recommended Code Always On](https://dev ***Note: In the video, a different DevNet Sandbox is used*** -When running the `curl` for the RESTCONF example, leverage `https://ios-xe-mgmt.cisco.com:9443` as the URL instead of `https://10.10.20.21`. +When running the `curl` for the RESTCONF example, leverage `https://ios-xe-mgmt.cisco.com:443` as the URL instead of `https://10.10.20.21`. ## Download Slides You can download the slides for this lesson [here](https://developer.cisco.com/fileMedia/download/c5942bff-3499-3e11-829a-fa90ebeb5fd1). -> *Suggestion: Right click, "Open in new tab"* \ No newline at end of file +> *Suggestion: Right click, "Open in new tab"* diff --git a/programming_fundamentals/rest_part_1/curl_examples.sh b/programming_fundamentals/rest_part_1/curl_examples.sh index c5558bd..19fce31 100644 --- a/programming_fundamentals/rest_part_1/curl_examples.sh +++ b/programming_fundamentals/rest_part_1/curl_examples.sh @@ -16,6 +16,6 @@ curl https://api.icndb.com/jokes/random?limitTo=nerdy # Example 3: Network Programmability with RESTCONF curl -vk \ - -u developer:C1sco12345 \ + -u developer:lastorangerestoreball8876 \ -H 'accept: application/yang-data+json' \ - https://ios-xe-mgmt.cisco.com:9443/restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet2 + https://ios-xe-mgmt.cisco.com:443/restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet2