Bulk configuration of the IBM MQ endpoints

Dear All,

Is there a way to perform a bulk configuration of the IBM MQ endpoints?
The customer has to configure 1000+ endpoints with the different names of groups.

Regards,

Babar

Yes. As it’s an extension you can write a smalls script that utilizes the Extensions API to add Endpoints.

Hello @pahofmann

Thank you for your comments. Do you have such type of a script?

Regards,

Babar

Nothing I could share really, but it depends on the format the data is in anyway.

It’s a pretty straight forward script and should require only a few lines of code.

  1. Create a JSON/YAML with the payload data as a template that you can read as a base for the request payload (can be copied from API explorer)
  2. Read the data for the endoints (from a csv/cmdb or where ever it is)
  3. Iterate over data
    1. replace values in template
    2. send the request

we can try an sh similar like below if we support curl operation on api end points

url=“apiendpoint/?q=”

for i in  $(caturl.txt);do
content=“$(curl -s “$url/$i”)”
echo “$content” >> output.txt
done

Where caturl.txt will include all endpoints that needed to be updated in next lines.