From 3b6b74c13ebd0490ccfe85e7a1c25d22bd1dd598 Mon Sep 17 00:00:00 2001 From: Emile Joubert Date: Tue, 9 Oct 2012 15:44:47 +0100 Subject: Simpler policy interface --- docs/rabbitmqctl.1.xml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'docs/rabbitmqctl.1.xml') diff --git a/docs/rabbitmqctl.1.xml b/docs/rabbitmqctl.1.xml index eea42484..564af9fd 100644 --- a/docs/rabbitmqctl.1.xml +++ b/docs/rabbitmqctl.1.xml @@ -905,7 +905,7 @@ - set_policy -p vhostpath key value + set_policy -p vhostpath key pattern definition priority Sets a policy. @@ -918,17 +918,28 @@ - value + pattern + + The regular expression, which when matches on a given resources causes the policy to apply. + + + + definition The definition of the policy, as a JSON string. In most shells you are very likely to need to quote this. + + priority + + The priority of the policy as an integer, defaulting to 0. Higher numbers indicate greater precedence. + + For example: - rabbitmqctl set_policy federate-me '{"pattern":"^amq.",\ - "policy":{"federation-upstream-set":"all"}}' + rabbitmqctl set_policy federate-me "^amq." '{"federation-upstream-set":"all"}' This command sets the policy federate-me in the default virtual host so that built-in exchanges are federated. -- cgit v1.2.1