• 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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.