cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Community Helping Community

563
Views
4
Helpful
5
Replies
Cisco Employee

I have started an API blog series...

Looking at the first 5 APIC-EM API to get started with...

includes sample scripts.

Five APIC-EM API to improve network engineer productivity – part 1

I have 5 in the series  so far:

- network-device

- interface

- license

- host

- path-trace

Any suggestions for the next ones after these 5?

Adam

5 REPLIES 5
Beginner

Re: I have started an API blog series...

Hi Adam,

I think its a very nice and educational blog. Thanks for that. I really like it. For sure i`m gonna follow your blogs.

As a beginner in the world of scripting i really think this will help me.

the Network engineer in the future should know more of this.

keep the blogs coming. for sure i`m gonna red them.

Thanks

Greetings

Palermo

Cisco Employee

Re: I have started an API blog series...

Thanks for the feedback Palermo,  I really appreciate it.

Let me know if there are specific topics you would like me to cover.

Enthusiast

Re: I have started an API blog series...

hi

I am running a JS code to access the APIC-EM API

================================

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

</head>

<script>

var url = 'https://sandboxapic.cisco.com/api/v1/ticket';

// provide username and password as body of request

var json_text = {"username" : "devnetuser","password" : "Cisco123!"};

var x = JSON.stringify(json_text);

var xmlHttp = new XMLHttpRequest();

xmlHttp.withCredentials = true;

alert("test1");

xmlHttp.open("POST", url, true);

xmlHttp.setRequestHeader("content-type", "application/json");

alert("test2");

xmlHttp.responseType = "json";

alert("test3");

// xmlHttp.send(JSON.stringify(j_data));

//var ticket_json = JSON.parse(json_text);

xmlHttp.send(x);

alert("test4");

//alert(xmlHttp.response);

var data = JSON.parse(xmlHttp.response);

//alert(data.response.serviceTicket);

</script>

</html>

============================================

But I am getting some CORS errors and not sure how to solve them. Could you advise?

Highlighted
Cisco Employee

Re: I have started an API blog series...

A topic covering APIC-EM and how it can make a Wireless engineers job more efficient. I think this would resonate.

thanks.

Cisco Employee

Re: I have started an API blog series...

great suggestion..

How about something that covers:

- PnP for wireless AP

- Path trace

- Easy QoS

Would that be useful?  I can talk about the API and how they can be used with wireless.

Content for Community-Ad
FusionCharts will render here