From ef2dfbf717d5e44e1b95f510fe49f78718cc2399 Mon Sep 17 00:00:00 2001 From: jichenjc Date: Fri, 22 Apr 2016 17:13:10 +0800 Subject: [PATCH] Complet Method Verification of os-services This complete the Method Verification of os-services, http://paste.openstack.org/show/495349/ has the method call and return sample value. also, clean and correct some error return code. Part of bp:api-ref-in-rst Change-Id: Ie4662e033b3b2235e62fd95ea50291ae91362d21 --- api-ref/source/os-services.inc | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/api-ref/source/os-services.inc b/api-ref/source/os-services.inc index 35317a7c6de7..c18ae56bbc8d 100644 --- a/api-ref/source/os-services.inc +++ b/api-ref/source/os-services.inc @@ -1,5 +1,4 @@ .. -*- rst -*- -.. needs:method_verification .. needs:parameter_verification .. needs:example_verification .. needs:body_verification @@ -20,14 +19,13 @@ List Compute Services .. rest_method:: GET /v2.1/{tenant_id}/os-services -Lists all running Compute services for a tenant. +Lists all running Compute services. Includes reasons, if available, for why any services were disabled. 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 ------- @@ -68,8 +66,7 @@ Specify the service by its host name and binary name. 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: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404) Request ------- @@ -111,8 +108,7 @@ Specify the service by its host name and binary name. 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: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404) Request ------- @@ -154,8 +150,7 @@ Specify the service by its host name and binary name. 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: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404) Request ------- @@ -197,8 +192,7 @@ Deletes a Compute service. Normal response codes: 204 -Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400), -unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404) +Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404) Request -------