From ffee1b34448333a5406d766feef85cea4f4be1dc Mon Sep 17 00:00:00 2001 From: jichenjc Date: Sat, 23 Apr 2016 01:56:55 +0800 Subject: [PATCH] Complet Method Verification of availability-zone verified the API doc for os-availability-zone, Added one description for default policy Also, remove some common error code like 500, 503 etc detail log: http://paste.openstack.org/show/495423/ Part of bp:api-ref-in-rst Change-Id: Icb898f0482e8a17289cd5047ef1c64a2481ccabb --- api-ref/source/os-availability-zone.inc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/api-ref/source/os-availability-zone.inc b/api-ref/source/os-availability-zone.inc index dd5167ec02..9dd4d20393 100644 --- a/api-ref/source/os-availability-zone.inc +++ b/api-ref/source/os-availability-zone.inc @@ -1,5 +1,4 @@ .. -*- rst -*- -.. needs:method_verification .. needs:parameter_verification .. needs:example_verification .. needs:body_verification @@ -19,8 +18,7 @@ Gets availability zone information. Normal response codes: 200 -Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400), -unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404) +Error response codes: unauthorized(401), forbidden(403) Request ------- @@ -43,11 +41,11 @@ Get Detailed Availability Zone Information .. rest_method:: GET /v2.1/{tenant_id}/os-availability-zone/detail Gets detailed availability zone information. +Policy defaults enable only users with the administrative role to perform this operation. Cloud providers can change these permissions through the ``policy.json`` file. Normal response codes: 200 -Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400), -unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404) +Error response codes: unauthorized(401), forbidden(403) Request -------