summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorgtt116 <gtt116@126.com>2012-11-28 11:11:26 +0800
committergtt116 <gtt116@126.com>2013-02-03 08:57:20 +0000
commit0d813e44ff126640ffbc4f915be5b2fa203c7811 (patch)
tree2e5a8be0ce9d24d6a4fe1d5476d1cdde153ac4b8 /etc
parent3793b061df30e1f56094d7e579bca59b9c20de98 (diff)
downloadnova-0d813e44ff126640ffbc4f915be5b2fa203c7811.tar.gz
nova-0d813e44ff126640ffbc4f915be5b2fa203c7811.tar.xz
nova-0d813e44ff126640ffbc4f915be5b2fa203c7811.zip
Add REST API to show availability_zone of instance.
Implement one workitem for bp:show-availability-zone This show the availability zone and availability zone of its host in API: GET /servers/details, GET /server/{uuid}. When create instance if "availability_zone" doesn't specified, the "availability_zone" of the instance will be None. But actually the instance is in a zone which its host is in. So I think show both of them will be fine. Change-Id: I2d742ee2d291b514bf783fa79293785cca8ea2a5
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 1a446263f..7dc7d20f0 100644
--- a/etc/nova/policy.json
+++ b/etc/nova/policy.json
@@ -42,6 +42,7 @@
"compute_extension:disk_config": "",
"compute_extension:extended_server_attributes": "rule:admin_api",
"compute_extension:extended_status": "",
+ "compute_extension:extended_availability_zone": "",
"compute_extension:fixed_ips": "rule:admin_api",
"compute_extension:flavor_access": "",
"compute_extension:flavor_disabled": "",