Fix content and sample file for keypair, migration, networks

This fix some content and sample file path for:
-os-keypairs
-os-migrations
-os-networks

Part of bp:api-ref-in-rst

Change-Id: I6ae6d38207c5a9552bab9a42b2800449e4ad040a
This commit is contained in:
ghanshyam 2016-04-20 12:03:04 +09:00
parent 8e811ec838
commit 1d6cd1277b
3 changed files with 18 additions and 10 deletions

View File

@ -30,7 +30,7 @@ Response
**Example List Keypairs: JSON response**
.. literalinclude:: ../../doc/api_samples/os-keypairs/keypairs-list-resp.json
.. literalinclude:: ../../doc/api_samples/keypairs/keypairs-list-resp.json
:language: javascript
Create Or Import Keypair
@ -56,7 +56,7 @@ Request
**Example Create Or Import Keypair: JSON request**
.. literalinclude:: ../../doc/api_samples/os-keypairs/keypair-import-req.json
.. literalinclude:: ../../doc/api_samples/keypairs/keypairs-import-post-req.json
:language: javascript
Response
@ -64,7 +64,7 @@ Response
**Example Create Or Import Keypair: JSON response**
.. literalinclude:: ../../doc/api_samples/os-keypairs/keypair-import-resp.json
.. literalinclude:: ../../doc/api_samples/keypairs/keypairs-import-post-resp.json
:language: javascript
Delete Keypair
@ -74,7 +74,7 @@ Delete Keypair
Deletes a keypair.
Normal response codes: 204
Normal response codes: 202
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
@ -115,6 +115,6 @@ Response
**Example Show Keypair Details: JSON response**
.. literalinclude:: ../../doc/api_samples/os-keypairs/keypair-show-resp.json
.. literalinclude:: ../../doc/api_samples/keypairs/keypairs-get-resp.json
:language: javascript

View File

@ -32,6 +32,6 @@ Response
**Example List Migrations: JSON response**
.. literalinclude:: ../../doc/api_samples/os-migrations/migrations-list-resp.json
.. literalinclude:: ../../doc/api_samples/os-migrations/migrations-get.json
:language: javascript

View File

@ -165,6 +165,8 @@ Associate Host
Associates a network with a host.
Specify the ``associate_host`` 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.
Normal response codes: 202
@ -182,7 +184,7 @@ Request
**Example Associate Host: JSON request**
.. literalinclude:: ../../doc/api_samples/os-networks/network-associate-host-req.json
.. literalinclude:: ../../doc/api_samples/os-networks-associate/network-associate-host-req.json
:language: javascript
Response
@ -195,6 +197,8 @@ Disassociate Host
Disassociates a host from a network.
Specify the ``disassociate_host`` 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.
Normal response codes: 202
@ -212,7 +216,7 @@ Request
**Example Disassociate Host: JSON request**
.. literalinclude:: ../../doc/api_samples/os-networks/network-disassociate-host-req.json
.. literalinclude:: ../../doc/api_samples/os-networks-associate/network-disassociate-host-req.json
:language: javascript
Response
@ -225,6 +229,8 @@ Disassociate Network
Disassociates a network from a project. You can then reuse the network.
Specify the ``disassociate`` 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.
Normal response codes: 202
@ -242,7 +248,7 @@ Request
**Example Disassociate Network: JSON request**
.. literalinclude:: ../../doc/api_samples/os-networks/network-disassociate-req.json
.. literalinclude:: ../../doc/api_samples/os-networks/networks-disassociate-req.json
:language: javascript
Response
@ -255,6 +261,8 @@ Disassociate Project
Disassociates a project from a network.
Specify the ``disassociate_project`` 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.
Normal response codes: 202
@ -272,7 +280,7 @@ Request
**Example Disassociate Project: JSON request**
.. literalinclude:: ../../doc/api_samples/os-networks/network-disassociate-project-req.json
.. literalinclude:: ../../doc/api_samples/os-networks-associate/network-disassociate-project-req.json
:language: javascript
Response