Commit Graph

25 Commits

Author SHA1 Message Date
Stephen Finucane b6c38c3001 api-ref: Fix indentation, case
A bullet list shouldn't be indented in rST and doing so causes it to be
rendered inside a blockquote, which is not what we want.

In addition, indicating versions as vXXX is more prevalent than VXXX so
correct this.

Change-Id: I3ea8e0a8ae58d5b7da9aae85b41162b2458020d5
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-07-17 11:21:56 +01:00
Stephen Finucane 1074e2c0e7 api-ref: Add docs for clusters
This API is currently undocumented, as I noticed while working on OSC
changes. There isn't anything too unusual going on here. The API was
first introduced in microversion 3.7 and was then extended with
replication-related information in 3.36. Both are accounted for here.

Change-Id: I86dc774c8d203839f4dadb13e93a416d112fc7b5
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Co-authored-by: Lucas de Oliveira <lucasmoliveira059@gmail.com>
Closes-Bug: 1885544
2022-08-31 10:02:20 +01:00
Alan Bishop 31b34e91e0 Remove the need for project_id from API endpoints
Inclusion of a project_id in API URLs is now optional, and no longer
required. Removing the project_id requirement facilitates supporting
Secure RBAC's notion of system scope, in which an API method is not
associated with a specific project.

The API v3 routing is enhanced to provide duplicate routes for API
methods that traditionally required a project_id in the URL:
- The existing route for which a project_id is in the URL
- A new route for when the URL does not include a project_id

To test both routes and ensure there are no regresssions, the "API
samples" functional tests include a project_id in the URLs, and the
rest of the functional tests do not include the project_id. This is
handled by changing the 'noauth' WSGI middleware to no longer add the
project_id, and adding a new 'noauth_include_project_id' middleware
filter that implements the legacy behavior.

A new microversion V3.67 is introduced, but it only serves to inform
clients whether the project_id is optional or required. When an API
node supports mv 3.67, the project_id is optional in all API requests,
even when the request specifies a earlier microversion. See the spec
Ia44f199243be8f862520d7923007e7182b32f67d for more details on this
behavior.

Note: Much of the groundwork for this is based on manila's patch
I5127e150e8a71e621890f30dba6720b3932cf583.

DocImpact
APIImpact

Implements: blueprint project-id-optional-in-urls
Change-Id: I3729cbe1902ab4dc335451d13ed921ec236fb8fd
2022-02-08 08:32:23 -08:00
Rajat Dhasmana e63cb8548a Default type overrides
This patch adds a feature by which we allow setting default volume types
for projects.
The following changes are made to achieve the feature:

1) Add 4 set of APIs, set, get, get_all, unset volume type
2) All policies (except get_all) default to system/domain/project admin
3) Preference order: project default, conf default
4) Logic to not allow deletion of default type

We validate set, get and unset APIs with keystone to verify a valid
project id is passed in the request and user has proper authorization
rights to show the project.

The policies are system/domain/project admin by default except get_all
policy which defaults to system admin.

Implements: Blueprint multiple-default-volume-types

Change-Id: Idcc949ed6adbaea0c2337fac83014998b81ff1f8
2020-09-16 14:05:31 +00:00
Sean McGinnis 9a8d738aa3 Add api-ref for mv 3.55 volume transfer
Adds the api-ref information for the the 3.55 version of the volume
transfer API.

Change-Id: Ib91c2f7018184821437da41bc0f7b0c0b2e69f0c
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-08-17 14:53:07 +00:00
Jay S. Bryant 285fbc6447 Remove the CoprHD driver
The CoprHD driver was marked unsupported
in Rocky and the vendor has indicated that
the driver is deprecated.  Given the feedback
I am removing the driver.

Change-Id: I978315402edeb0c5dd6aee28315973fa502b0e20
2018-08-09 21:34:25 +00:00
Neha Alhat d98dbf4da8 Update api-ref and release notes for schema validation
This patch adds a reno for validate boolean parameters with spaces.
Also adds valid values in api-ref for boolean parameters that user
can pass in request body.

Implements: bp/json-schema-validation
Change-Id: Iff4b2906dba93a238d720a218fcf7a9f78b96a37
2018-07-17 15:05:54 +05:30
junboli c5c4be704f 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
2017-09-13 02:37:56 +00:00
Sean McGinnis 127c8b5ab5 api-ref: Add group replication APIs
Add APIs introduced for group replication.

Also corrected a few incorrectly referenced group ID
body parameters while I was at it.

Closes-bug: 1700882
Change-Id: I253099072dba9fb6b03f562466aad0ff36b4052f
2017-08-27 09:49:19 -05:00
lihaijing b6f495b61d Api-ref: add 'os-services' v3 api doc
There is no document about v3 'os-services' api.
So add the missing content.

Change-Id: I104915cdb0486ab8f4482f0034f58a03c3f72b77
2017-08-23 13:34:52 +08:00
Jenkins 873e7a2f17 Merge "[Api-ref] Add worker cleanup for service docs api" 2017-08-23 02:18:14 +00:00
junboli 046b85fb89 [Api-ref] Add worker cleanup for service docs api
Allow triggering cleanup from API was introduced in cinder[1], but it's
not documented in the API docs. This change is to add it in the API docs.
[1] https://review.openstack.org/#/c/363010/

Closes-bug: #1708809
Change-Id: Iadec39e8411a598372bc19bb566627a143faa0d8
2017-08-16 03:21:48 +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
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
TommyLike 4a1d7cc17f Add missing api-ref documents for group type specs
Added the missing api-ref documents for group specs APIs.

Change-Id: I6c04ec9c073bc227a34a502b42ffd615e689a241
2017-07-18 01:07:09 +00:00
wangxiyuan 95115ae7ab api-ref: add list manageable resource API
This patch did:
1. Add list manageable volumes API doc.
2. Add create and list manageable snapshots API doc.

Change-Id: Iccffb69b0ffb220f43258ee4c47d5d8964ae7836
Closes-bug: #1590977
2017-05-23 09:51:28 +08:00
TommyLike 8fcb809509 Add 'resource_filters' API to support generalized filtering
This patch adds ``resource_filters`` API to retrieve
configured resource filters.

APIImpact

Partial: blueprint generalized-filtering-for-cinder-list-resource
Depends-On: ff3d41b15a

Change-Id: I387268b277c46c72624a3d3b5eabf03724a7a847
2017-05-20 10:33:21 +08:00
Matt Riedemann e13256469d Re-arrange v3 API reference
This applies an order to the v3 API reference documents.

The idea being how does a new user come into and use the API
and what APIs should they see first when getting started.
Naturally they need to know about versions and microversions
that are avaible. Then they might need to know about volume
types before creating a volume. Once they create a volume
and know the basics of working with volumes, they can start
to take some actions on volumes. After that it's just kind
of a random free for all of APIs and the only order applied
to the rest is sorting alphabetically by title.

Change-Id: I8956de3e6907582f7115430eb959813a13e87a49
2017-05-03 09:32:06 -05:00
Jenkins ae1df67883 Merge "Add attachment API doc" 2017-05-03 00:31:04 +00:00
TommyLike 5c19a66950 Add attachment API doc
Add attachment API related Docs, please note we
use 'instance_uuid' in the request and 'instance' in
the response to represent the same thing 'server_id'.

DocImpact

Change-Id: I8bd5a9061af2b47fd227e8cf2f48f80f271bde14
2017-04-21 10:30:41 +08:00
Jenkins 0842264377 Merge "Adds API documentation for list and show hosts." 2017-04-11 04:16:03 +00:00
TommyLike 5545524142 [Doc] Add documentation for messages API.
Add documentation in v3 for messages API.

Change-Id: I6f9886c98eec4bb33fa1b4ad5b51a35a36762bfe
2017-03-23 20:22:49 +08: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
xing-yang 0e8ebbdf82 Add API Reference for groups
This patch adds API reference for group types,
groups, and group snapshots.

Change-Id: Ia42b4a036fc6396cca37c03092c089cc5df1170a
2016-08-02 18:04:58 -04:00
Mark T. Voelker 931e2f8161 Create v3 API Reference
The Cinder v3 API was marked CURRENT in Mitaka, but there no API ref
was ever created.  This is problematic for end users and would hinder
the v3 API from being included in DefCore Interoperability Guidelines
somewhere down the line (since one of DefCore's Criteria[1] is that a
Capability be well documented).  This patch creates an API ref for v3.
It also adds a header to the v2 index to show that it is SUPPORTED,
whereas v3 is CURRENT.

[1]
http://git.openstack.org/cgit/openstack/defcore/tree/doc/source/process/CoreCriteria.rst#n77

Change-Id: Ia3a8050cd04ad3a487a79d80acf9691feee6182e
Closes-Bug: #1616072
2016-09-19 14:33:01 -04:00