48 Commits

Author SHA1 Message Date
Lee Yarwood
71ca8578be docs: Add os-migrate_volume_completion api-ref
This admin API is only called externally by Nova at present when
finishing the migration or retype of an attached volume. However for
future reference it would be really useful to have this listed in the
official API reference guide.

Change-Id: I5fad6eb4903784870aa26fa0996a391bbbbb9276
2019-02-20 11:40:30 +00:00
Zuul
7ac5101d1d Merge "api-ref: add response body for set-image-metadata-for-a-volume" 2019-01-24 11:17:25 +00:00
zhufl
eb10e43782 api-ref: add response body for set-image-metadata-for-a-volume
https://developer.openstack.org/api-ref/block-storage/v3/index.html?expanded=set-image-metadata-for-a-volume-detail#set-image-metadata-for-a-volume
"Set image metadata for a volume" interface has response body,
so this is to add response parameter and response example for it.

Change-Id: I8139fd557cb3123dd71ab104e7e36546b862e345
2018-12-10 10:19:17 +08:00
zhufl
192da355ba api-ref: add missing volumes_links in list-volume interfaces
https://developer.openstack.org/api-ref/block-storage/v3/index.html?expanded=list-accessible-volumes-detail#list-accessible-volumes
https://developer.openstack.org/api-ref/block-storage/v3/index.html?expanded=#list-accessible-volumes-with-details

volumes_links is in the response body of list-volume and
list-volume-with-details when pagination is used. So it should
be an optional parameter.

Change-Id: If61797f9a5cb5c522ed62886f4114d43e7cbbdef
2018-11-09 10:52:18 +08:00
zhufl
5c82ba8b4b api-ref: fix some inconsistencies in snapshot API
https://developer.openstack.org/api-ref/block-storage/v3/index.html#list-snapshots-and-details

1. updated_at is missing in the response fields of show-snapshot
   and list-snapshots
2. id's description is "The UUID of the volume transfer.", which
   is incorrect.
3. volume_id's description is "The UUID of the volume.", which is
   not very accurate.
4. os-extended-snapshot-attributes:progress is something like '100%',
   so it should be string, not integer
5. response fields of show-snapshot-metadata is incorrect.
6. metadata is missing in the response example of update-snapshot
7. snapshots_links is missing in the response of list-snapshot

Change-Id: I0f6994c2d2dc27d3d594acdd460e27c338f86a2c
2018-10-16 10:20:47 +08:00
zhufl
8fec696bfd api-ref: total/free_capacity should be with postfix _gb
https://developer.openstack.org/api-ref/block-storage/v3/index.html#list-all-back-end-storage-pools
free_capacity and total_capacity in "List all back-end storage pools"
should be free_capacity_gb and total_capacity_gb

Change-Id: Ic0690d12147fa63b903f3442eccde88c1d501711
2018-09-28 15:30:37 +08:00
Matt Riedemann
76cc9bd02b api-ref: add docs for os-migrate_volume API
Adds the v2 and v3 API reference documentation for the
admin-only (by default) os-migrate_volume volume action
API. The only major difference with the v3 API is the
cluster parameter introduced in the 3.16 microversion.

Change-Id: I70f6b2cc4d25ea155ce09ddeec26b995890a2db3
Partial-Bug: #1607539
2018-08-22 20:38:22 -04:00
TommyLike
99e925a82a Update document for metadata show API
Instead of "metadata", cinder will add "meta"
into response body of show metadata API.

Change-Id: Id39e3858f860e7f705d1c6ed44307d50fa8ff4b9
2018-08-13 21:56:57 +08:00
TommyLike
902719a46e Remove extended attribute 'os-volume-replication' in Doc
'os-volume-replication:extended_status' and
'os-volume-replication:driver_date' are unavailable
since the merge of patch [1] during Liberty, remove these
from API document.

[1]: https://review.openstack.org/#/c/275797/

Change-Id: Ib319702f085930a6bf528ef95fb17a7da8451e96
2018-03-31 11:53:21 +08:00
zhangbailin
23b56315b1 Remove extra spaces of the volume creation request body
Change-Id: I7fc3ccd24cd9e95cb4fa1d70658fe064cae3a38a
2018-01-22 18:06:39 +08:00
junboli
65626f449f Fix version details API does not return 200 OK
When use version details api http://ip:8786/v2 to get api details,
it does not return 200 OK, and the return value is empty.

This change is to correct the version details API URL and its
sample response.

Change-Id: I547dca649db22b31051b490c2b230322d3c9d479
2018-01-12 08:52:09 +08:00
zhangbailin
234a0784bf Replace http with https for doc links in cinder
1) Update doc links according to OpenStack document migration
2) Use https instead of http for docs links
For example:
(1)http://docs.openstack.org/admin-guide/blockstorage_nfs_backend.html
->https://docs.openstack.org/cinder/latest/admin/blockstorage-nfs-backend.html
(2)http://docs.openstack.org/oslo.i18n/latest/user/index.html
->https://docs.openstack.org/oslo.i18n/latest/user/index.html
(3)http://docs.openstack.org/ --> https://docs.openstack.org/
(4)http://docs.openstack.org/admin-guide/blockstorage_multi_backend.html
->https://docs.openstack.org/cinder/latest/admin/blockstorage-multi-backend.html

Change-Id: I7fcdc4453cb3bad713c7d770012411701cca742b
Closes-Bug:#1710054
2017-10-17 11:14:01 +08:00
Jenkins
aeb8619935 Merge "Update provider parameter in sample json files" 2017-10-05 05:11:31 +00:00
Chiawei Xie
68c668cfc8 Fix Reset a snapshot's status API Request Example
Reset a snapshot's status API Request Example was syntax error with comma, so
remove comma to syntax correct.

Change-Id: I8b2c249aaf0f9729bc35b80ecd6cd28bb34835c0
Close-bug: #1720487
2017-09-30 14:07:48 +00:00
Kaitlin Farr
ddeb1d14c4 Update provider parameter in sample json files
In the sample json files, some examples of the provider value were
wrong and showed a key manager class instead of an encryptor name.
Other samples showed the legacy encryptor classes where the newer
os-brick encryptor shorthand names should be used instead.
I3eec91e221692177833909e0378116cea4966807 removes support for the
legacy provider class names, so it is important that the samples
reflect the updated shorthand names.

Change-Id: I1c3879a5d12a8c9802deeac1c6e24b57310588d5
2017-09-27 14:24:13 -04:00
lihaijing
4403ed17ca Api-ref: change 'tenant' to 'project' in v2 doc
Since 'tenant' is the old term, all things should now refer to 'project'.

Change-Id: I3a255df758583a3c4301041c8ebffb90b8263fef
2017-09-27 18:14:25 +08:00
Sean McGinnis
3e91de956e Remove API v1
The v1 API has been deprecated for many releases now. We have not
been able to remove it due to SDKs and tooling being slow to
update. This is the latest attempt to see if it has been long
enough.

Change-Id: I03bf2db5bd7e2fdfb4f6032758ccaf2b348a82ba
2017-09-06 07:39:10 -05:00
Jenkins
cf8cf05ed9 Merge "Api-ref: Reorganize volumes versions" 2017-08-24 21:06:16 +00:00
Jenkins
0e5f7a1175 Merge "Clean up repl v1 volume creation from replication" 2017-08-18 16:49:40 +00:00
Felipe Monteiro
6932f2a841 [api-ref] Add api-ref for os-quota-class-sets APIs
This commit adds the api documentation for the
GET/PUT os-quota-class-set APIs (v2 and v3).

Change-Id: Idb51b7b90a081775d2d836bf6d9ec8b9c0399f1b
Closes-Bug: #1602400
2017-08-08 13:02:36 +00:00
Sean McGinnis
f7187d7fd5 Clean up repl v1 volume creation from replication
There is still some cruft left over from the repl v1 implmentation
that should be removed.

Change-Id: Ia98fff46505a8474dbb28d3ffdd67e66f556eddc
2017-08-07 11:09:22 -05:00
Jenkins
0469cc052c Merge "Correct 'os-show_image_metadata' API document" 2017-08-02 20:45:18 +00:00
TommyLike
663c4e383f Correct 'os-show_image_metadata' API document
The 'os-show_image_metadata' API is outdated.
Rewrite the document, also correct the response
codes for image metadata's create/delete APIs.

Change-Id: I50a5b3571973564b8b5010b412d94303866e8dcd
2017-08-02 08:55:46 +08:00
Jenkins
f639c1f785 Merge "[api-ref] Update volume metadata for a specific key (v2)" 2017-08-01 19:20:50 +00:00
jeremy.zhang
49dce5e87b [api-ref] Update volume metadata for a specific key (v2)
This patch is to add api-ref for cinder v2 api: update volume metadata
for a specific key.

Change-Id: I6aa92c3b56ed08830c82f7adbbf8dcb36e980162
2017-07-19 16:57:09 +00:00
junboli
cca970b322 Api-ref: Reorganize volumes versions
In v2 sample path, there are redundant files version-v2-show-response.json,
in v3 sample path, there are redundant files version-v2-show-response.json
and version-v3-show-response.json, This patch is to remove the redundant
JSON file and reorganize volumes versions of v2 and v3

Change-Id: I3d9337cc94ad02138459742a7b84fe97bd09bb90
2017-07-10 17:28:40 +08:00
lihaijing
57330a12a8 Api-ref: add documentation for v2/v3 backup 'os-reset_status' action
There is no document about v2/v3 backup 'os-reset_status' action. This
action explicitly updates the backup state. So add the missing content.

Change-Id: Ie0dd2b4e184d09e957c4ba296544f5019d05fda3
Partial-Bug: #1607539
2017-06-26 17:05:43 +08:00
luqitao
e9acdab687 [api-ref]Adds API documentation for 'os-set_bootable' action
There is no document about update a volume's bootable status,
so add the missing doc.

Change-Id: If706205678cfd7a803e2d7733bec34494b47fc66
Partial-Bug: #1607539
2017-06-04 07:44:47 -04:00
liuyamin
238a16a8a6 Add API documentation for force-delete volume in v2 and v3.
There is no API doc found for force-delete volume in cinder.
We need to add the API doc for the operation with its description,
request and response parameters.

Change-Id: Id25b4070a3946d2d7d89f44bdc81039286a5d8fe
Closes-bug: #1673644
2017-05-19 15:52:17 +08:00
wanghao
0b675b0438 Add missing retype API documentation
Now retype is missing in v2/v3 API documentation.
Add it in doc.

Change-Id: I2ba0d7b993a5b3e21c396ed3d0862808e0daf0b3
Closes-Bug: #1603293
2017-05-18 11:47:20 +08:00
Amy Marrich (spotz)
e0e201c9a9 Volume Type Encryption added to v2 api-ref
Added volume type encryption sections to volumes v2 types and
added related parameters to parameters file.

Appropriate sample files added.

Had to add for v2 to several headings to pass tox/gates

Change-Id: I7a35551c4ebd345ce2d6c42217015b29c324d96c
Closes-Bug: #1679736
2017-04-26 08:20:05 -05:00
Jenkins
0842264377 Merge "Adds API documentation for list and show hosts." 2017-04-11 04:16:03 +00:00
Jenkins
04ad974984 Merge "Remove XML description from media-types" 2017-03-30 19:16:20 +00:00
wangxiyuan
4339f17ac5 [api-ref] Update snapshot/volume's metadata api-ref
Volume/Snapshot contains two kinds API for it's metadata: POST/PUT

POST is used for creatng or replacing the volume/snapshot's
metadata items that match keys. It doesn't modify items that
are not in the request.

PUT is used for replacing all the volume/snapshot's metadata
with the key-value pairs in the request.

Cinder's api-ref description is wrong. This patch fixed the
description and added the missing POST/PUT request.

Change-Id: I51128d32c9f70ba57d7d4cf0634a16ca566db95f
2017-03-27 14:33:05 +08:00
Ken'ichi Ohmichi
c8bfb4b8eb Remove XML description from media-types
Since the commit If98db25f1f4032725444c3959acb9aad8f869802 XML
support has been removed from Cinder API. And the version API
doesn't return XML entity on media-types.
Then this patch removes the entity from sample files.

Change-Id: I782d5cf7a152647254d9a36edcc7352000139dc3
2017-03-22 11:01:35 -07:00
luqitao
7a3d344717 Adds API documentation for list and show hosts.
Adds v2 and v3 API documentation for list all hosts and show host details.

Change-Id: I43791fded823cd931c2d77a11fa502b2cb5f0105
Closes-Bug: #1558257
2017-03-14 05:36:24 -04:00
Jenkins
e41e552f39 Merge "Adds API documentation for update snapshot status" 2017-01-31 16:19:25 +00:00
Samantha Blanco
8362202e80 Adds API documentation for update snapshot status
Adds v2 and v3 API documentation for snapshot, actions API calls.

Change-Id: I7d6d511d353d5a2acd3c2c31356c28e8ae589604
Closes-Bug: #1532645
2017-01-30 17:14:01 -05:00
Mitsuhiro Tanino
7fa8165180 [api-ref] Show more specific parameter of capabilities
Current capabilities api-ref explains that the API takes
{hostname}, but this is not accurate.
Actually this api takes hostname@volume_backend_name format.
To avoid confusion, this explanation should be updated.

Change-Id: I0d9e9925a1b011f49cefc9867f617e8b51ec7437
2016-12-14 15:34:34 -05:00
Sheel Rana
2fa79b35ba Removed extra xml api-ref files
We have already removed xml support from cinder code
in previous release.
As per previous discussions, xml references are required
to eliminate to sync code and api-ref.

Implements : blueprint eliminate-xml-references

Change-Id: I0cb7da56306e29cff8385c784bfc3f49cd9cfddd
2016-10-18 23:37:57 +05:30
Lujin
8efbf756a3 Add 'replication_targets' and 'display_name' in API docs
'replication_targets' is always returned in Response of GET/v2/
{tenant_id}/capabilities/{hostname} API, but it is not written
in either Response parameters table or JSON example.

'display_name' is listed in JSON example but not described in
Response parameter table.

This patch adds the above two missing information.

Change-Id: Ib3bf54df7c5c400cfec64dd9c7df136c87cd6376
Closes-Bug: #1603306
2016-09-28 18:05:33 +09:00
Jenkins
beea718b7a Merge "Add os-detach to api-ref" 2016-09-19 16:58:59 +00:00
scottda
2aed75f987 Add os-detach to api-ref
os-detach was missing from api-ref.

Change-Id: I1e2990178ff7fcf3c6953e35469af04a3bde6010
Closes-Bug: #1618609
2016-09-19 07:06:03 -06:00
Jenkins
37be83c58d Merge "Fixed request/response parameters in doc" 2016-09-15 20:22:34 +00:00
Justin A Wilson
f794629360 Fixed request/response parameters in doc
user_id, project_id and status were listed as request parameters when
they are actually response parameters.

Change-Id: I5ff464c6aae853929b2b10ba62898913977016b0
Closes-Bug: 1603177
2016-09-15 16:01:01 +00:00
Mark T. Voelker
442c8e8a1c Fix missing JSON response in API reference
Currently, the API reference is showing a blank sample response
for the v2 "List API Versions" call [1].  That appears to be because
the sample file it includes is "versions-resp.json" which exists, but
is 0 bytes (completely empty).  There is also a
"versions-response.json" file present in the samples directory, which
appears to contain a valid JSON reply.

This patch fixes the problem by removing the 0-byte sample file and
pointing to the correct one.

[1]
http://developer.openstack.org/api-ref/block-storage/v2/#list-api-versions

Change-Id: If2c1b486229681f68ba4ab0c13307de4599d9b72
Closes-Bug: #1623744
2016-09-14 21:48:48 -04:00
Cao Shufeng
b9ef6efa97 Remove doc for promote/reenable replica
Cinder v2 api no longer supports replication 1.0 and the apis for
os-promote-replica and os-reenable-replica [1][2].
These 2 api had been removed in this patch[3].

We should update the doc about it.
Trivial Fix

[1]: http://developer.openstack.org/api-ref-blockstorage-v2.html#promotereplicaVolume
[2]: http://developer.openstack.org/api-ref-blockstorage-v2.html#reenablereplicaVolume
[3]: https://review.openstack.org/#/c/275797/35/cinder/api/contrib/volume_replication.py

Change-Id: I6e4f0174b4ac5d7861925354ac3860b8f1c55b84
2016-09-04 03:25:20 -04:00
Sheel Rana
7f2131e3a1 Update api-ref path
api-ref path needs update to support uploading cinder api-refs to
developer.openstack.org/api-ref/block-storage

update includes
https://github.com/openstack/cinder/tree/master/api-ref/v2/source
to
https://github.com/openstack/cinder/tree/master/api-ref/source/v2

Depends-on: Id38dd0609c77b0d6bcd0d935a9312b0211134802

Implements: bp api-reference-to-rst

Change-Id: If3a058a95f1eaa8481a926183591ff0f4b23e97b
2016-08-27 16:58:10 +02:00