From 4478ce8233bc34963ba96ee0552fa8e2ebb0507c Mon Sep 17 00:00:00 2001 From: jichenjc Date: Fri, 22 Apr 2016 07:45:43 +0800 Subject: [PATCH] Complet Method Verification of server diag This complete the Method Verification of server diagnostics, as this is the only method supported. http://paste.openstack.org/show/495198/ has the method call and return sample value. also, clean default policy value and correct some error return code. Part of bp:api-ref-in-rst Change-Id: I8e63cdb30e5da34522790f110ecaff79f7577eb1 --- api-ref/source/diagnostics.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/api-ref/source/diagnostics.inc b/api-ref/source/diagnostics.inc index 21bc29d863..64ae109a72 100644 --- a/api-ref/source/diagnostics.inc +++ b/api-ref/source/diagnostics.inc @@ -1,5 +1,4 @@ .. -*- rst -*- -.. needs:method_verification .. needs:parameter_verification .. needs:example_verification .. needs:body_verification @@ -17,12 +16,11 @@ Show Server Diagnostics Shows basic usage data for a server. -Policy defaults enable only users with the administrative role or the owner of the server to perform this operation. Cloud providers can change these permissions through the ``policy.json`` file. +Policy defaults enable only users with the administrative role. 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), notfound(404), conflict(409), notimplemented(501) Request -------