Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit 8c0fa3d

Browse files
Merge pull request #670 from rabbitmq/rabbitmq-management-666-docs
Clarify /api/vhost-limits/vhost/name PUT request
2 parents 47dbbe7 + fce084e commit 8c0fa3d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

priv/www/api/index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -969,9 +969,11 @@ <h2>Reference</h2>
969969
<td></td>
970970
<td class="path">/api/vhost-limits/<i>vhost</i>/<i>name</i></td>
971971
<td>
972-
Set or delete per-vost limit for <code>vhost</code> with <code>name</code>.
973-
Limits are set using a JSON document in the body:
974-
<pre>{"max-connections": 100, "max-queues": 200}</pre>
972+
Set or delete per-vhost limit for <code>vhost</code>. The <code>name</code> URL path element
973+
refers to the name of the limit (<code>max-connections</code>, <code>max-queues</code>).
974+
Limits are set using a JSON document in the body: <pre>{"value": 100}</pre>. Example
975+
request:</br>
976+
<pre>curl -4u 'guest:guest' -H 'content-type:application/json' -X PUT localhost:15672/api/vhost-limits/my-vhost/max-connections -d '{"value": 50}'</pre>
975977
</td>
976978
</tr>
977979
</table>

0 commit comments

Comments
 (0)