🎄 Happy Holidays! 🥳
Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.
Happy Holidays!
Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.
How to export queue configuration with SEMP API
Basically developer create the queues in DEV using UI and then its moved to upper envs with automation.
I could not find a way to export specific queues configurations using SEMP, need some help.
Best Answer
-
Hi @tbueno ,
There are two SEMP API endpoints that you'll need to retrieve the queue configuration and two additional endpoints that should enable you to re-create the queue on a different event broker, in this case your UAT event broker.
If you already know the name of the queue you need to export, you can retrieve the queue configuration with the Get a Queue object endpoint. Once you've done that, you'll need to retrieve the queue subscriptions via the Get a list of Queue Subscription objects endpoint.
Once you have the queue configuration from the original environment, you can use the Create a Queue object and Create a Queue Subscription object endpoints to create the queue in the new environment.
Note that the body for both of the Create requests contain a "msgVpnName" field that needs to be updated to reflect the name of the message VPN in the new environment.
The URL below can be used to download the full SEMP OpenAPI spec for your event broker service.
http://<host>:<port>/SEMP/v2/<api>/spec
See SEMP API Reference for more details.
2
Answers
-
Hi @tbueno ,
There are two SEMP API endpoints that you'll need to retrieve the queue configuration and two additional endpoints that should enable you to re-create the queue on a different event broker, in this case your UAT event broker.
If you already know the name of the queue you need to export, you can retrieve the queue configuration with the Get a Queue object endpoint. Once you've done that, you'll need to retrieve the queue subscriptions via the Get a list of Queue Subscription objects endpoint.
Once you have the queue configuration from the original environment, you can use the Create a Queue object and Create a Queue Subscription object endpoints to create the queue in the new environment.
Note that the body for both of the Create requests contain a "msgVpnName" field that needs to be updated to reflect the name of the message VPN in the new environment.
The URL below can be used to download the full SEMP OpenAPI spec for your event broker service.
http://<host>:<port>/SEMP/v2/<api>/spec
See SEMP API Reference for more details.
2