Add os-detach to api-ref

os-detach was missing from api-ref.

Change-Id: I1e2990178ff7fcf3c6953e35469af04a3bde6010
Closes-Bug: #1618609
This commit is contained in:
scottda 2016-08-30 14:38:02 -06:00
parent 03efa37383
commit 2aed75f987
3 changed files with 51 additions and 0 deletions

View File

@ -1007,6 +1007,12 @@ os-attach:
in: body
required: true
type: object
os-detach:
description: |
The ``os-detach`` action.
in: body
required: true
type: object
os-extend:
description: |
The ``os-extend`` action.

View File

@ -0,0 +1,6 @@
{
"os-detach": {
"attachment_id": "d8777f54-84cf-4809-a679-468ffed56cf1"
}
}

View File

@ -196,6 +196,45 @@ Request Example
Detach volume from a server
===========================
.. rest_method:: POST /v2/{tenant_id}/volumes/{volume_id}/action
Detaches a volume from a server. Specify the ``os-detach`` action in the request body.
Preconditions
- Volume status must be ``in-use``.
Normal response codes: 202,
Request
-------
.. rest_parameters:: parameters.yaml
- attachment_id: attachment_id
- os-detach: os-detach
- tenant_id: tenant_id
- volume_id_1: volume_id
Request Example
---------------
.. literalinclude:: ./samples/volume-detach-request.json
:language: javascript
Unmanage volume
===============