0

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": [
      "queue=dev"
    ]

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?

avk
  • 61
  • 5

0 Answers0