Skip to content

Instantly share code, notes, and snippets.

@johanrhodin
Created June 19, 2019 21:20
Show Gist options
  • Save johanrhodin/e5256c65fa4d024ef8ce0eaf97f3993a to your computer and use it in GitHub Desktop.
Save johanrhodin/e5256c65fa4d024ef8ce0eaf97f3993a to your computer and use it in GitHub Desktop.
Use curl to create and delete a RabbitMQ shovel
curl -i -v -X PUT -H 'Content-Type: application/json' https://vhost:[email protected]/api/parameters/shovel/vhost/my-shovel2 -d '{"value":{"src-protocol": "amqp091","src-uri":"amqp://vhost@/vhost","src-queue":"q1","dest-protocol": "amqp091", "dest-uri": "amqp://vhost@/vhost","dest-queue": "q2"}}'
curl -i -v -X DELETE -H 'Content-Type: application/json' https://vhost:[email protected]/api/parameters/shovel/vhost/my-shovel2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment