From 79f030f18f7570967ea4142d8d05500169344ab2 Mon Sep 17 00:00:00 2001 From: Takashi NATSUME Date: Fri, 13 May 2016 14:40:24 +0900 Subject: [PATCH] api-ref: Example verification for os-volume_attachments.inc Change-Id: I1f5ba0453b0dc964f48471e4aecaaaa800699da1 Implements: blueprint api-ref-in-rst --- api-ref/source/os-volume-attachments.inc | 26 +++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) 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 --------