This post is more than 5 years old
4 Posts
0
1130
Smarts EDAA device creation payload
Hello,
I'm starting to do some automation using the Smarts 9.4 EDAA. According to the EDAA Programmer Guide, to create a device, you simply POST a device payload to /types/$device/instances. However, the only information I can find about the payload is that "Name" is required. I've tried posting various payloads to the server, but always get "DMT createInstance Name not specified" which goes back to "Name" being required. Does anybody know what the payload is supposed to look like or know of a document that has this information?
Thanks.
paul_miller3
4 Posts
0
June 11th, 2015 08:00
Got it. Looks like should have been . Thanks Paul.
PaulORourke
170 Posts
1
June 5th, 2015 02:00
Hi Paul,
Does the following KB article answer your questions regarding the EDAA:
https://support.emc.com/kb/188925 - How to post arguments through EDAA; EDAA API example
Thanks,
Kind Regards,
Paul O'Rourke
paul_miller3
4 Posts
0
June 11th, 2015 06:00
Sorry for the delay in response, I'm only now able to get back to this. Anyway, thanks for the info, I'll give it a try.
paul_miller3
4 Posts
0
June 11th, 2015 08:00
Alright, still no good.
Super simply, here is what I am doing:
var payload = " myRouter ";
var url = "http://www.blah.com:8080/smarts-edaa/msa/SAM/types/Router/instances";
var xmlHttp = new XMLHttpRequest();
xmlHttp.open("POST", url, false);
xmlHttp.setRequestHeader("Content-type", "application/xml");
xmlHttp.send(payload);
console.log(xmlHttp.responseText);
And the response I can gettting is:
Msa Internal Server Error. Reason: DMT createInstance Name not specified. Caused by: Internal MSA error
Any thoughts?