From f6ac9f325737f3caceca0bcb8f923f73fba804a1 Mon Sep 17 00:00:00 2001 From: Pushkar Umaranikar Date: Tue, 10 May 2016 19:56:35 +0000 Subject: [PATCH] method verification for servers-action-fixed-ip Verify and Update the response codes for the methods based on what is in the code. part of blueprint: api-ref-in-rst Change-Id: I08d4cbf17fdc0efa42efe9beaa0012ca92320b09 --- api-ref/source/servers-action-fixed-ip.inc | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/api-ref/source/servers-action-fixed-ip.inc b/api-ref/source/servers-action-fixed-ip.inc index 62c1e26b32..418ff1ddd4 100644 --- a/api-ref/source/servers-action-fixed-ip.inc +++ b/api-ref/source/servers-action-fixed-ip.inc @@ -1,5 +1,4 @@ .. -*- rst -*- -.. needs:method_verification .. needs:parameter_verification .. needs:example_verification .. needs:body_verification @@ -9,16 +8,19 @@ Add (Associate) Fixed Ip (Addfixedip Action) .. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action -Adds a fixed IP address to a server instance, which associates that address with the server. The fixed IP address is retrieved from the network that you specify in the request. +Adds a fixed IP address to a server instance, which associates that +address with the server. The fixed IP address is retrieved from the +network that you specify in the request. Specify the ``addFixedIp`` action and the network ID in the request body. -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 or +the owner of the server to perform this operation. Cloud providers +can change these permissions through the ``policy.json`` file. Normal response codes: 202 -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 ------- @@ -46,12 +48,13 @@ Removes, or disassociates, a fixed IP address from a server. Specify the ``removeFixedIp`` action in the request body. -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 or +the owner of the server to perform this operation. Cloud providers +can change these permissions through the ``policy.json`` file. Normal response codes: 202 -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 -------