• Uncategorized

About linux : Passing-a-URL-with-brackets-to-curl-using-bash-script

Question Detail

I am trying to get the response from a curl url only for a particular value. For example
i am using the command

URLS=$(curl -g -H "Authorization: ${abc}" "https://api.buildkite.com/v2/organizations/org/agents?meta_data=[queue=dev]")

echo "${URLS}"

The metadata is actually as below:

"meta_data": [

The above curl command is giving the response for all agents in all queues and not able to get the required ones specific to queue=dev.

What is the correct way to pass url with brackets?

Question Answer

No answer for now.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.