Dear All,
Please help to provide some sample scripts to create/delete destinations/bridges , VPN… via jenkins pipeline.
Thanks,
Surya |
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: SEMP API Reference
- 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 the `show 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!
Hey Surya - have a look at this: GitHub - srajgopalan/solace-ci-cd-demo: Integrating Solace with CI/CD Pipelines . 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.
@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!