Forum Discussion

Ye_Tao's avatar
7 years ago

how to concatenate two properties

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

  • Sarah_Terry's avatar
    Sarah_Terry
    Icon for Product Manager rankProduct Manager

    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

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

  • 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