Skip to main content
Solved

Enterprise Manager REST API


  • Not a newbie anymore
  • 1 comment

Hallo zusammen,

 

zwecks Automation des EM schaue ich mir gerade dessen REST API an.

Ich habe einen lokalen User, der im EM als “Portal Administrator” angelegt ist. Mit diesem kann ich mich problemfrei in der WebUI einloggen.

Versuche ich diesen allerdings für eine Session an der REST API zu nutzen, wird dieser abgelehnt.

Im Logfile ist Folgendes zu finden (gekürzt):

 

[14.12.2022 13:45:02] <11> Info         [Authenticated] Retrieving login sessions.
[14.12.2022 13:45:02] <11> Error        Failed to get login sessions. RequestUri: [URI template match was not found].

 

Ich habe auch mal das RESTed Addon im Firefox probiert und mir dort den Authentication Header gebaut. Mit dem gleichen Resultat.

Laut Dokumentation sehe ich nicht, was ich übersehen haben soll.
Bevor ich jetzt ein Ticket aufmache und die Mühle lostrete, hoffe ich auf einen Tipp, ob ich etwas Einfaches übersehen habe.

Best answer by mbo77

Alright, I think I fixed it now.

I was using some code snippets in PS I found for Enterprise Manager.

But that example still used the deprecated HTTP endpoint, not HTTPS.

So, as already thought, a rather simple problem. Error messages could be more helpful, though.

View original
Did this topic help you find an answer to your question?

2 comments

JMeixner
Forum|alt.badge.img+17
  • On the path to Greatness
  • 2650 comments
  • December 15, 2022

Hallo,
willkommen in der Community.

@jorge.delacruz ist unser REST API Experte.

 

Jorge, could you please have a look at this problem?


  • Author
  • Not a newbie anymore
  • 1 comment
  • Answer
  • December 16, 2022

Alright, I think I fixed it now.

I was using some code snippets in PS I found for Enterprise Manager.

But that example still used the deprecated HTTP endpoint, not HTTPS.

So, as already thought, a rather simple problem. Error messages could be more helpful, though.


Comment