• 0
Ye Tao

how to concatenate two properties

Question

I am trying to use two properties in REST API call ( size  and fields). Following doesn't work. Coi;d someone help on the syntax?

Thanks,

Ye

 

curl -u USER:PASSWORD https://NameOfPortal.logicmonitor.com/santaba/rest/service/services?size=1000&?fields=name,id

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi @Ye Tao - You should remove the second ? character, so the URL looks like this:

https://NameOfPortal.logicmonitor.com/santaba/rest/service/services?size=1000&fields=name,id

Let me know if that doesn't work.

Thanks,

Sarah

Share this post


Link to post
Share on other sites
  • 0

No, it doesn't work. The "fields=name,id" part seems not taken. The "&" sign seems acting as "put into background on MAC".

Share this post


Link to post
Share on other sites
  • 0
2 minutes ago, Ye Tao said:

No, it doesn't work. The "fields=name,id" part seems not taken. The "&" sign seems acting as "put into background on MAC".

Actually. with "\&", it works. Thansk

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now