[
https://issues.apache.org/jira/browse/QPID-6036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14107371#comment-14107371
]
Rob Godfrey commented on QPID-6036:
-----------------------------------
The configuration for an existing virtualhost can be extracted as so:
{noformat}
curl --output initialVhostConfig.json
https://<user>:<pass>@<host>:<port>/api/latest/virtualhost/<nodename>/<vhostname>?extractInitialConfig=true
{noformat}
this can then be pushed into a new broker with
{noformat}
curl -X PUT -F"[email protected]"
-F"data={ \"type\" : \"JSON\", \"durable\" : true, \"desiredState\" :
\"ACTIVE\" };type=application/json"
https://<user>:<password>@<host>:<port>/api/latest/virtualhostnode/<nodename>
{noformat}
In general before uploading a small amount of editing may be desired to change
any hardcoded store paths (if context values are not being used to populate the
store path), and change the name if necessary.
> [Java Broker] Allow extract of vhost configuration from one broker to
> another, or the use of virtualhost templates (incl. queues, exchanges and
> bindings)
> ---------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: QPID-6036
> URL: https://issues.apache.org/jira/browse/QPID-6036
> Project: Qpid
> Issue Type: Improvement
> Components: Java Broker
> Reporter: Rob Godfrey
> Assignee: Rob Godfrey
>
> The current blueprint mechanism allows the creation of virtual hosts with a
> blueprint for the vhost settings, but cannot be used to prepopulate
> exchanges/queues/etc.
> We can expand this to allow the extract of configuration from one instance to
> be used as a template for a new vhost
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]