Scripts to create/delete destinations/bridges , VPN etc.. via Jenkins pipeline
Dear All,
Please help to provide some sample scripts to create/delete destinations/bridges , VPN... via jenkins pipeline.
Thanks,
Surya |
Best Answer
-
Surya,
The recommended way to configure manageable resources on event brokers is to use SEMP (Solace Element Management Protocol), which is a RESTful API. You'll want to use the configuration part of the API to create/delete VPNs, bridges & endpoints.- Here is a link to the msgVpn section of the dev reference, but you can scroll up and down to find bridges & endpoints: https://docs.solace.com/API-Developer-Online-Ref-Documentation/swagger-ui/config/index.html#/msgVpn
- I find it useful to import the swagger spec into a tool like Postman to generate requests that you can send to your broker. You can import the spec from
http://<SOLACE_HOST>/SEMP/v2/config/spec
While I'd recommend the use of SEMP with Jenkins, depending on what you're trying to accomplish another option to consider if you're using an appliance or software broker might be creating a cli script using theshow current-config
command to capture your entire vpn. You can read more about this here: https://docs.solace.com/System-and-Software-Maintenance/Backing-Up-and-Restoring-VPNs.htm
Hope that helps!6
Answers
-
Surya,
The recommended way to configure manageable resources on event brokers is to use SEMP (Solace Element Management Protocol), which is a RESTful API. You'll want to use the configuration part of the API to create/delete VPNs, bridges & endpoints.- Here is a link to the msgVpn section of the dev reference, but you can scroll up and down to find bridges & endpoints: https://docs.solace.com/API-Developer-Online-Ref-Documentation/swagger-ui/config/index.html#/msgVpn
- I find it useful to import the swagger spec into a tool like Postman to generate requests that you can send to your broker. You can import the spec from
http://<SOLACE_HOST>/SEMP/v2/config/spec
While I'd recommend the use of SEMP with Jenkins, depending on what you're trying to accomplish another option to consider if you're using an appliance or software broker might be creating a cli script using theshow current-config
command to capture your entire vpn. You can read more about this here: https://docs.solace.com/System-and-Software-Maintenance/Backing-Up-and-Restoring-VPNs.htm
Hope that helps!6 -
Hey Surya - have a look at this: https://github.com/srajgopalan/solace-ci-cd-demo . I use Ansible scripts to automate creation of Solace configuration via SEMPv2. Jenkins provides a cool Ansible plugin that you can use in your Jenkins pipeline to call Ansible tasks.
1 -
@surya kumar were any of these able to assist? If so, please click the "Yes" on
Did this answer the question?
so that others can benefit! And if not, please let us know so we can continue to assist!0