summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorivan-zhu <bozhu@linux.vnet.ibm.com>2012-11-01 23:04:43 +0800
committerivan-zhu <bozhu@linux.vnet.ibm.com>2012-11-10 23:30:47 +0800
commit7cee40a47e3bb838fb5d22174e2774347fdb10d2 (patch)
tree5a2e63087dea2fbf3757d2a5f3ada068169b8c68 /etc
parentd9c95e4c8bb0a2d9d7f73600d82bfd32318c37a6 (diff)
Add REST API support for list/enable/disable nova services
Implements one workitem of blueprint apis-for-nova-manage This adds an extension that provides REST API for list/enable/ disable nova service. The interface ia accessed via GET /v2/{tenant_id}/os-services PUT /v2/{tenant_id}/os-services/enable PUT /v2/{tenant_id}/os-services/disable And the command:nova host-describe have implemented the functionality of nova-manage service describe_resource. So we needn't add a REST API for it. DocImpact Change-Id: I030a7e00b878d7931456e7e323db37b7c47fce48
Diffstat (limited to 'etc')
-rw-r--r--etc/nova/policy.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/nova/policy.json b/etc/nova/policy.json
index f77f733c6..c3b9dd8cd 100644
--- a/etc/nova/policy.json
+++ b/etc/nova/policy.json
@@ -58,6 +58,7 @@
"compute_extension:rescue": "",
"compute_extension:security_groups": "",
"compute_extension:server_diagnostics": "rule:admin_api",
+ "compute_extension:services": "rule:admin_api",
"compute_extension:simple_tenant_usage:show": "rule:admin_or_owner",
"compute_extension:simple_tenant_usage:list": "rule:admin_api",
"compute_extension:users": "rule:admin_api",