diff --git a/api-ref/source/os-volume-attachments.inc b/api-ref/source/os-volume-attachments.inc index a82f59f741..9e201cd91e 100644 --- a/api-ref/source/os-volume-attachments.inc +++ b/api-ref/source/os-volume-attachments.inc @@ -1,5 +1,4 @@ .. -*- rst -*- -.. needs:example_verification .. needs:body_verification =================================================================== @@ -40,6 +39,11 @@ Response - serverId: server_id - volumeId: volumeId_resp +**Example List volume attachments for an instance: JSON response** + +.. literalinclude:: ../../doc/api_samples/os-volumes/list-volume-attachments-resp.json + :language: javascript + Attach a volume to an instance ============================== @@ -62,6 +66,11 @@ Request - volumeId: volumeId - device: device +**Example Attach a volume to an instance: JSON request** + +.. literalinclude:: ../../doc/api_samples/os-volumes/attach-volume-to-server-req.json + :language: javascript + Response -------- @@ -73,6 +82,11 @@ Response - serverId: server_id - volumeId: volumeId_resp +**Example Attach a volume to an instance: JSON response** + +.. literalinclude:: ../../doc/api_samples/os-volumes/attach-volume-to-server-resp.json + :language: javascript + Show a detail of a volume attachment ==================================== @@ -104,6 +118,11 @@ Response - serverId: server_id - volumeId: volumeId_resp +**Example Show a detail of a volume attachment: JSON response** + +.. literalinclude:: ../../doc/api_samples/os-volumes/volume-attachment-detail-resp.json + :language: javascript + Update a volume attachment ========================== @@ -126,6 +145,11 @@ Request - volumeAttachment: volumeAttachment - volumeId: volumeId_swap +**Example Update a volume attachment: JSON request** + +.. literalinclude:: ../../doc/api_samples/os-volumes/update-volume-req.json + :language: javascript + Response --------