• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by Larye P. · Apr 29, 2015 at 10:13 PM · appmon

AppMon API - anyone have a simple CURL example

I'm trying to use a CURL to pull an XML file down from AppMon. I keep getting a 401 - I'm pretty sure it's that I'm not doing the base64 auth part correctly - does anyone have a working script that I could model?

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

3 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Larye P. · Apr 30, 2015 at 12:20 AM

Found the issue - tweaked the setup &  your script was solid - thank you

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Dave M. · Apr 30, 2015 at 01:25 AM 0
Share

Good deal!  You might also find this post of interest:

Example powershell script for using the REST API for automated recording?

avatar image

Answer by Dave M. · Apr 29, 2015 at 10:56 PM

I am using the admin user in my example.  Did you replace the admin user with your user and password?

Comment

People who like this

0 Show 4 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Larye P. · Apr 29, 2015 at 10:56 PM 0
Share

Yes - with an ID/pass that has access via the web

avatar image Dave M. Larye P. · Apr 29, 2015 at 11:04 PM 0
Share

You mean you can access the same URL in the browser, but not in curl?  

I just tested this out running locally on a server that has admin/admin still defined and on one that does not and it works as expected (list of sessions on the first one and Access Denied/Web service login failed for user 'admin': user name or password is incorrect on the second.

In either case, I get back HTML.  Do you get HTML output?  Can you cut and paste your command and output?

Are you changing "localhost" to your DT server host name or IP if not running on the DT Server?

 

avatar image Dave M. Larye P. · Apr 29, 2015 at 11:07 PM 0
Share

Does the user have the "Web Service Interface Access" permission?

avatar image Larye P. Dave M. · Apr 29, 2015 at 11:08 PM 0
Share

I did a verbose on the CURL - I think it's something before the server... I'll write again once I get that jump

avatar image

Answer by Dave M. · Apr 29, 2015 at 10:18 PM

curl -G 'http://admin:admin@localhost:8020/rest/management/sessions'

wget http://admin:admin@localhost:8020/rest/management/sessions

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Larye P. · Apr 29, 2015 at 10:39 PM 0
Share

Still get a 401 

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

Memory Dump not properly triggerred

Dynatrace Foreign Language pack or plugins?

PurePaths lacks detail when using Java Futures coding technique

[EasyTravel] Client connected to Dynatrace server but can't see any data or agents

Where to get web services' latency in Appmon?

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A