460c345298
A new endpoint /v2/queues/myqueue/purge is added to support purge a queue, which accepts a POST body like: {"resource_types": ["messages", "subscriptions"]} to allow user purge particular resource of the queue. Test cases are added as well. APIImpact DocImpact Partially Implements: blueprint purge-queue Change-Id: Ie82713fce7cb0db6612693cee81be8c3170d292a
49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
{
|
|
"context_is_admin": "role:admin",
|
|
"admin_or_owner": "is_admin:True or project_id:%(project_id)s",
|
|
"default": "rule:admin_or_owner",
|
|
|
|
"queues:get_all": "",
|
|
"queues:create": "",
|
|
"queues:get": "",
|
|
"queues:delete": "",
|
|
"queues:update": "",
|
|
"queues:stats": "",
|
|
"queues:share": "",
|
|
"queues:purge": "",
|
|
|
|
"messages:get_all": "",
|
|
"messages:create": "",
|
|
"messages:get": "",
|
|
"messages:delete": "",
|
|
"messages:delete_all": "",
|
|
|
|
"claims:get_all": "",
|
|
"claims:create": "",
|
|
"claims:get": "",
|
|
"claims:delete": "",
|
|
"claims:update": "",
|
|
|
|
"subscription:get_all": "",
|
|
"subscription:create": "",
|
|
"subscription:get": "",
|
|
"subscription:delete": "",
|
|
"subscription:update": "",
|
|
"subscription:confirm": "",
|
|
|
|
"pools:get_all": "rule:context_is_admin",
|
|
"pools:create": "rule:context_is_admin",
|
|
"pools:get": "rule:context_is_admin",
|
|
"pools:delete": "rule:context_is_admin",
|
|
"pools:update": "rule:context_is_admin",
|
|
|
|
"flavors:get_all": "",
|
|
"flavors:create": "rule:context_is_admin",
|
|
"flavors:get": "",
|
|
"flavors:delete": "rule:context_is_admin",
|
|
"flavors:update": "rule:context_is_admin",
|
|
|
|
"ping:get": "",
|
|
"health:get": "rule:context_is_admin"
|
|
}
|