From c5c4be704fcc170fed79a8142c1e804df8c45a6e Mon Sep 17 00:00:00 2001 From: junboli Date: Tue, 12 Sep 2017 16:58:31 +0800 Subject: [PATCH] Add missing snapshot action in index.rst In the file api-ref/source/v3/index.rst, it missed include volumes-v3-snapshots-actions.inc, This change is to add it and fix doc format error. Change-Id: Ib6dc549f8bc8da5dfd64d0e390cd70b27cd63177 --- api-ref/source/v3/index.rst | 1 + api-ref/source/v3/volumes-v3-snapshots-actions.inc | 11 +++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api-ref/source/v3/index.rst b/api-ref/source/v3/index.rst index a61f0f8fec1..5da726f0c86 100644 --- a/api-ref/source/v3/index.rst +++ b/api-ref/source/v3/index.rst @@ -24,6 +24,7 @@ Block Storage API V3 (CURRENT) .. List the other random volume APIs in just alphabetical order. .. include:: volume-manage.inc .. include:: volumes-v3-snapshots.inc +.. include:: volumes-v3-snapshots-actions.inc .. include:: snapshot-manage.inc .. include:: os-vol-transfer-v3.inc diff --git a/api-ref/source/v3/volumes-v3-snapshots-actions.inc b/api-ref/source/v3/volumes-v3-snapshots-actions.inc index a9c3a85132d..fcf140d2c2f 100644 --- a/api-ref/source/v3/volumes-v3-snapshots-actions.inc +++ b/api-ref/source/v3/volumes-v3-snapshots-actions.inc @@ -1,6 +1,5 @@ .. -*- rst -*- -==================================== Snapshot actions (snapshots, action) ==================================== @@ -8,9 +7,9 @@ Administrator only. Resets status for a snapshot. Reset a snapshot's status -========================= +~~~~~~~~~~~~~~~~~~~~~~~~~ -.. rest_method:: POST /v3/{tenant_id}/snapshots/{snapshot_id}/action +.. rest_method:: POST /v3/{project_id}/snapshots/{snapshot_id}/action Resets the status. Specify the ``os-reset_status`` action in the request body. @@ -22,10 +21,10 @@ Request .. rest_parameters:: parameters.yaml - - status: status_2 + - project_id: project_id_path + - snapshot_id: snapshot_id_path - os-reset_status: os-reset_status - - tenant_id: tenant_id - - snapshot_id: snapshot_id + - status: status_2 Request Example ---------------