Use rest_status_code for api-ref response codes

Rather than our freeform way of listing response codes in our
api-ref, we should be using the os-api-ref extension option to
get nicely formatted response code listings.

https://docs.openstack.org/os-api-ref/latest/usage.html#rest-status-code

Change-Id: Iee21f54fe7cf0ea28258966e2d0f8fa2849c83f2
This commit is contained in:
Sean McGinnis 2018-03-01 09:11:44 -06:00
parent 01bf2c385f
commit 2e5a91da72
56 changed files with 1971 additions and 425 deletions

View File

@ -0,0 +1,54 @@
200:
default: |
Request was successful.
201:
default: |
Request has been fulfilled and new resource created.
202:
default: |
Request is accepted, but processing may take some time.
203:
default: |
Returned information is not full set, but a subset.
204:
default: |
Request fulfilled but service does not return anything.
300:
default: |
The resource corresponds to more than one representation.
400:
default: |
Some content in the request was invalid.
401:
default: |
User must authenticate before making a request.
403:
default: |
Policy does not allow current user to do this operation.
404:
default: |
The requested resource could not be found.
405:
default: |
Method is not valid for this endpoint and resource.
409:
default: |
This resource has an action in progress that would conflict with this request.
413:
default: |
This operation cannot be completed.
415:
default: |
The entity of the request is in a format not supported by the requested
resource for the method.
500:
default: |
Something went wrong with the service which prevents it from fulfilling
the request.
501:
default: |
The service does not have the functionality required to fulfill this
request.
503:
default: |
The service cannot handle the request right now.

View File

@ -7,14 +7,23 @@ List Api Versions
Lists information for all Block Storage API versions. Lists information for all Block Storage API versions.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200,300 .. rest_status_code:: success ../status.yaml
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400), - 200
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404) - 300
Request .. rest_status_code:: error ../status.yaml
~~~~~~~
- 400
- 401
- 403
- 404
- 405
- 500
- 503
Response Response
~~~~~~~~ ~~~~~~~~

View File

@ -14,8 +14,12 @@ Show back-end capabilities
Shows capabilities for a storage back end on the host. Shows capabilities for a storage back end on the host.
The ``hostname`` takes the form of ``hostname@volume_backend_name``. The ``hostname`` takes the form of ``hostname@volume_backend_name``.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
------- -------

View File

@ -21,9 +21,12 @@ List consistency groups
Lists consistency groups. Lists consistency groups.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
------- -------
@ -60,8 +63,12 @@ Create consistency group
Creates a consistency group. Creates a consistency group.
Normal response codes: 202, Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
------- -------
@ -106,7 +113,12 @@ Show consistency group details
Shows details for a consistency group. Shows details for a consistency group.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
------- -------
@ -143,8 +155,12 @@ Create consistency group from source
Creates a consistency group from source. Creates a consistency group from source.
Normal response codes: 202, Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
------- -------
@ -174,7 +190,12 @@ Delete consistency group
Deletes a consistency group. Deletes a consistency group.
Normal response codes: 202, Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -200,9 +221,12 @@ List consistency groups with details
Lists consistency groups with details. Lists consistency groups with details.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
------- -------
@ -244,8 +268,12 @@ Update consistency group
Updates a consistency group. Updates a consistency group.
Normal response codes: 202, Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
------- -------

View File

@ -18,10 +18,17 @@ This operations deletes the backup and any backup data.
The backup driver returns the ``405`` status code if it does not The backup driver returns the ``405`` status code if it does not
support this operation. support this operation.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: itemNotFound(404), badMethod(405) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 404
- 405
Request Request
------- -------
@ -47,10 +54,17 @@ Reset backup's status
Reset a backup's status. Specify the ``os-reset_status`` action in the request body. Reset a backup's status. Specify the ``os-reset_status`` action in the request body.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request Request
------- -------

View File

@ -44,9 +44,12 @@ List backups with details
Lists Block Storage backups, with details, to which the project has access. Lists Block Storage backups, with details, to which the project has access.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
------- -------
@ -99,9 +102,12 @@ Show backup details
Shows details for a backup. Shows details for a backup.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
------- -------
@ -150,12 +156,16 @@ Delete backup
Deletes a backup. Deletes a backup.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: Bad Request(400) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
Request Request
------- -------
@ -176,10 +186,17 @@ Restores a Block Storage backup to an existing or new Block Storage volume.
You must specify either the UUID or name of the volume. If you You must specify either the UUID or name of the volume. If you
specify both the UUID and name, the UUID takes priority. specify both the UUID and name, the UUID takes priority.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: Bad Request(400), Request Entity Too Large(413) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 413
Request Request
------- -------
@ -221,9 +238,17 @@ Create backup
Creates a Block Storage backup from a volume. Creates a Block Storage backup from a volume.
Normal response codes: 202, Response codes
~~~~~~~~~~~~~~
Error response codes: Bad Request(400), Internal Server Error(500) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 500
Request Request
------- -------
@ -263,7 +288,12 @@ List backups
Lists Block Storage backups to which the project has access. Lists Block Storage backups to which the project has access.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
------- -------
@ -301,11 +331,17 @@ Export backup
Export information about a backup. Export information about a backup.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
Error response codes: badRequest(400), itemNotFound(404) - 200
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request Request
------- -------
@ -338,11 +374,17 @@ Import backup
Import information about a backup. Import information about a backup.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 201 .. rest_status_code:: success ../status.yaml
Error response codes: badRequest(400), serviceUnavailable(503) - 201
.. rest_status_code:: error ../status.yaml
- 400
- 503
Request Request
------- -------

View File

@ -15,9 +15,18 @@ List all hosts
Lists all hosts summary info that is not disabled. Lists all hosts summary info that is not disabled.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), unauthorized(401), forbidden(403) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
- 401
- 403
Request Request
------- -------
@ -56,9 +65,19 @@ Shows volume and snapshot details for a cinder-volume host.
It is not valid against other Cinder service hosts or hosts where the It is not valid against other Cinder service hosts or hosts where the
cinder-volume service has been disabled. cinder-volume service has been disabled.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
- 401
- 403
- 404
Request Request
------- -------

View File

@ -19,10 +19,16 @@ Shows absolute limits for a project.
An absolute limit value of ``-1`` indicates that the absolute limit An absolute limit value of ``-1`` indicates that the absolute limit
for the item is infinite. for the item is infinite.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
Error response codes: forbidden(403) - 200
.. rest_status_code:: error ../status.yaml
- 403
Request Request
------- -------

View File

@ -14,8 +14,12 @@ Delete consistency group snapshot
Deletes a consistency group snapshot. Deletes a consistency group snapshot.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
------- -------
@ -33,9 +37,12 @@ Show consistency group snapshot details
Shows details for a consistency group snapshot. Shows details for a consistency group snapshot.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
------- -------
@ -72,8 +79,12 @@ List consistency group snapshots with details
Lists all consistency group snapshots with details. Lists all consistency group snapshots with details.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
------- -------
@ -109,9 +120,12 @@ List consistency group snapshots
Lists all consistency group snapshots. Lists all consistency group snapshots.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
------- -------
@ -139,8 +153,6 @@ Response Example
:language: javascript :language: javascript
Create consistency group snapshot Create consistency group snapshot
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -148,7 +160,12 @@ Create consistency group snapshot
Creates a consistency group snapshot. Creates a consistency group snapshot.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
------- -------

View File

@ -14,8 +14,12 @@ List back-end storage pools
Lists all back-end storage pools. Lists all back-end storage pools.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
------- -------

View File

@ -13,7 +13,12 @@ Accept volume transfer
Accepts a volume transfer. Accepts a volume transfer.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -55,8 +60,12 @@ Create volume transfer
Creates a volume transfer. Creates a volume transfer.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
------- -------
@ -100,9 +109,12 @@ List volume transfers
Lists volume transfers. Lists volume transfers.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
------- -------
@ -138,9 +150,12 @@ Show volume transfer details
Shows details for a volume transfer. Shows details for a volume transfer.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
------- -------
@ -177,8 +192,12 @@ Delete volume transfer
Deletes a volume transfer. Deletes a volume transfer.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
------- -------
@ -196,8 +215,12 @@ List volume transfers, with details
Lists volume transfers, with details. Lists volume transfers, with details.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
------- -------

View File

@ -17,7 +17,12 @@ Disassociate QoS specification from all associations
Disassociates a QoS specification from all associations. Disassociates a QoS specification from all associations.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -36,8 +41,12 @@ Unset keys in QoS specification
Unsets keys in a QoS specification. Unsets keys in a QoS specification.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -72,7 +81,12 @@ Get all associations for QoS specification
Lists all associations for a QoS specification. Lists all associations for a QoS specification.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -98,7 +112,12 @@ Associate QoS specification with volume type
Associates a QoS specification with a volume type. Associates a QoS specification with a volume type.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -118,7 +137,12 @@ Disassociate QoS specification from volume type
Disassociates a QoS specification from a volume type. Disassociates a QoS specification from a volume type.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -138,13 +162,22 @@ Show QoS specification details
Shows details for a QoS specification. Shows details for a QoS specification.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
Error response codes: Request Entity Too Large(413), badMethod(405), - 200
itemNotFound(404), forbidden(403), unauthorized(401), badRequest(400),
serviceUnavailable(503)
.. rest_status_code:: error ../status.yaml
- 400
- 401
- 403
- 404
- 405
- 413
- 503
Request Request
------- -------
@ -182,9 +215,12 @@ Set keys in QoS specification
Sets keys in a QoS specification. Sets keys in a QoS specification.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
------- -------
@ -217,7 +253,12 @@ Delete QoS specification
Deletes a QoS specification. Deletes a QoS specification.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -239,7 +280,12 @@ Creates a QoS specification.
Specify one or more key and value pairs in the request body. Specify one or more key and value pairs in the request body.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -281,7 +327,12 @@ List QoS specs
Lists quality of service (QoS) specifications. Lists quality of service (QoS) specifications.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request

View File

@ -15,10 +15,17 @@ Show quota classes
Shows quota class set for a project. If no specific value for the quota class Shows quota class set for a project. If no specific value for the quota class
resource exists, then the default value will be reported. resource exists, then the default value will be reported.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: forbidden(403), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 403
- 404
Request Request
------- -------
@ -58,9 +65,18 @@ Update quota classes
Updates quota class set for a project. If the ``quota_class_name`` key does not Updates quota class set for a project. If the ``quota_class_name`` key does not
exist, then the API will create one. exist, then the API will create one.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), forbidden(403), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
- 403
- 404
Request Request

View File

@ -14,8 +14,12 @@ Show quotas
Shows quotas for a project. Shows quotas for a project.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -64,8 +68,12 @@ Update quotas
Updates quotas for a project. Updates quotas for a project.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -133,8 +141,12 @@ Delete quotas
Deletes quotas for a project so the quotas revert to default values. Deletes quotas for a project so the quotas revert to default values.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -159,7 +171,12 @@ Get default quotas
Gets default quotas for a project. Gets default quotas for a project.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request

View File

@ -23,7 +23,12 @@ or source-name element, if possible.
The API chooses the size of the volume by rounding up the size of The API chooses the size of the volume by rounding up the size of
the existing storage volume to the next gibibyte (GiB). the existing storage volume to the next gibibyte (GiB).
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request

View File

@ -20,7 +20,12 @@ Add private volume type access
Adds private volume type access to a project. Adds private volume type access to a project.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -46,7 +51,12 @@ Remove private volume type access
Removes private volume type access from a project. Removes private volume type access from a project.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -72,8 +82,12 @@ List private volume type access details
Lists project IDs that have access to private volume type. Lists project IDs that have access to private volume type.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request

View File

@ -13,8 +13,12 @@ List API extensions
Lists Block Storage API extensions. Lists Block Storage API extensions.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request

View File

@ -14,7 +14,12 @@ Reset a snapshot's status
Resets the status. Specify the ``os-reset_status`` action in the request body. Resets the status. Specify the ``os-reset_status`` action in the request body.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request

View File

@ -42,7 +42,12 @@ List snapshots with details
Lists all Block Storage snapshots, with details, that the project can access. Lists all Block Storage snapshots, with details, that the project can access.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -84,7 +89,12 @@ Create snapshot
Creates a volume snapshot, which is a point-in-time, complete copy of a volume. You can create a volume from a snapshot. Creates a volume snapshot, which is a point-in-time, complete copy of a volume. You can create a volume from a snapshot.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -128,8 +138,12 @@ List snapshots
Lists all Block Storage snapshots, with summary information, that the project can access. Lists all Block Storage snapshots, with summary information, that the project can access.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -174,8 +188,12 @@ Show snapshot metadata
Shows metadata for a snapshot. Shows metadata for a snapshot.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -222,7 +240,12 @@ Creates or replaces metadata items that match keys. Does not modify items that
are not in the request. are not in the request.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -256,7 +279,12 @@ Update snapshot metadata
Replaces all the snapshot's metadata with the key-value pairs in the request. Replaces all the snapshot's metadata with the key-value pairs in the request.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -290,7 +318,12 @@ Show snapshot details
Shows details for a snapshot. Shows details for a snapshot.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -334,7 +367,12 @@ Update snapshot
Updates a snapshot. Updates a snapshot.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -385,7 +423,12 @@ Delete snapshot
Deletes a snapshot. Deletes a snapshot.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request

View File

@ -25,7 +25,12 @@ storage back ends, see `Configure multiple-storage back ends
blockstorage-multi-backend.html>`_. blockstorage-multi-backend.html>`_.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -71,7 +76,12 @@ Update extra specs for a volume type
Updates the extra specifications that are assigned to a volume type. Updates the extra specifications that are assigned to a volume type.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -119,7 +129,12 @@ Show volume type details for v2
Shows details for a volume type. Shows details for a volume type.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
------- -------
@ -156,7 +171,12 @@ Delete volume type
Deletes a volume type. Deletes a volume type.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -176,7 +196,12 @@ List all volume types for v2
Lists volume types. Lists volume types.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -230,7 +255,12 @@ storage back ends, see `Configure multiple-storage back ends
blockstorage-multi-backend.html>`_. blockstorage-multi-backend.html>`_.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -275,7 +305,13 @@ Show an encryption type.
To show an encryption type for an existing volume type. To show an encryption type for an existing volume type.
Normal response codes: 200
Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -320,7 +356,12 @@ Delete an encryption type.
To delete an encryption type for an existing volume type. To delete an encryption type for an existing volume type.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -341,7 +382,13 @@ Creates an encryption type.
To create an encryption type for an existing volume type. To create an encryption type for an existing volume type.
Normal response codes: 200
Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -393,7 +440,13 @@ Update an encryption type.
To update an encryption type for an existing volume type. To update an encryption type for an existing volume type.
Normal response codes: 200
Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request

View File

@ -14,7 +14,12 @@ Show API v2 details
Shows details for Block Storage API v2. Shows details for Block Storage API v2.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request

View File

@ -32,7 +32,13 @@ Troubleshooting
request. If the request fails again, investigate the storage back request. If the request fails again, investigate the storage back
end. end.
Normal response codes: 202
Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -52,11 +58,6 @@ Request Example
:language: javascript :language: javascript
Reset volume statuses Reset volume statuses
~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
@ -64,7 +65,13 @@ Reset volume statuses
Administrator only. Resets the status, attach status, and migration status for a volume. Specify the ``os-reset_status`` action in the request body. Administrator only. Resets the status, attach status, and migration status for a volume. Specify the ``os-reset_status`` action in the request body.
Normal response codes: 202
Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -93,7 +100,12 @@ Set image metadata for volume
Sets the image metadata for a volume. Specify the ``os-set_image_metadata`` action in the request body. Sets the image metadata for a volume. Specify the ``os-set_image_metadata`` action in the request body.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -120,7 +132,13 @@ Remove image metadata from volume
Removes image metadata, by key, from a volume. Specify the ``os-unset_image_metadata`` action in the request body and the ``key`` for the metadata key and value pair that you want to remove. Removes image metadata, by key, from a volume. Specify the ``os-unset_image_metadata`` action in the request body and the ``key`` for the metadata key and value pair that you want to remove.
Normal response codes: 200
Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -140,9 +158,6 @@ Request Example
:language: javascript :language: javascript
Show image metadata for volume Show image metadata for volume
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -150,7 +165,12 @@ Show image metadata for volume
Shows image metadata for a volume. Shows image metadata for a volume.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -184,7 +204,6 @@ Response Example
Attach volume to server Attach volume to server
~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~
@ -198,7 +217,12 @@ Preconditions
- You should set ``instance_uuid`` or ``host_name``. - You should set ``instance_uuid`` or ``host_name``.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -231,7 +255,12 @@ Preconditions
- Volume status must be ``in-use``. - Volume status must be ``in-use``.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -252,13 +281,6 @@ Request Example
Unmanage volume Unmanage volume
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
@ -270,7 +292,12 @@ Preconditions
- Volume status must be ``available``. - Volume status must be ``available``.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -290,10 +317,6 @@ Request Example
Force detach volume Force detach volume
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
@ -309,7 +332,13 @@ perform this operation. Cloud providers can change these permissions
through the ``volume_extension:volume_admin_actions:force_detach`` rule in through the ``volume_extension:volume_admin_actions:force_detach`` rule in
the ``policy.json`` file. the ``policy.json`` file.
Normal response codes: 202
Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -331,10 +360,6 @@ Request Example
Retype volume Retype volume
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
@ -354,7 +379,12 @@ Policy defaults enable only users with the administrative role or the owner of
the volume to perform this operation. Cloud providers can change these the volume to perform this operation. Cloud providers can change these
permissions through the policy.json file. permissions through the policy.json file.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -375,11 +405,6 @@ Request Example
:language: javascript :language: javascript
Force delete volume Force delete volume
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
@ -388,8 +413,12 @@ Force delete volume
Attempts force-delete of volume, regardless of state. Specify the ``os-force_delete`` action Attempts force-delete of volume, regardless of state. Specify the ``os-force_delete`` action
in the request body. in the request body.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 202 .. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -408,11 +437,6 @@ Request Example
:language: javascript :language: javascript
Update volume bootable status Update volume bootable status
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -420,7 +444,13 @@ Update volume bootable status
Update the bootable status for a volume, mark it as a bootable volume. Specify the ``os-set_bootable`` action in the request body. Update the bootable status for a volume, mark it as a bootable volume. Specify the ``os-set_bootable`` action in the request body.
Normal response codes: 200
Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request

View File

@ -66,8 +66,12 @@ List volumes with details
Lists all Block Storage volumes, with details, that the project can access. Lists all Block Storage volumes, with details, that the project can access.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -128,7 +132,6 @@ Response Example
Create volume Create volume
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
@ -165,7 +168,12 @@ Troubleshooting
- The storage node needs enough free storage space to match the size - The storage node needs enough free storage space to match the size
of the volume creation request. of the volume creation request.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -239,7 +247,12 @@ List volumes
Lists summary information for all Block Storage volumes that the project can access. Lists summary information for all Block Storage volumes that the project can access.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -287,8 +300,12 @@ Preconditions
- The volume must exist. - The volume must exist.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -354,7 +371,12 @@ Update volume
Updates a volume. Updates a volume.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -406,7 +428,6 @@ Response Parameters
- volume_type: volume_type - volume_type: volume_type
Response Example Response Example
---------------- ----------------
@ -414,8 +435,6 @@ Response Example
:language: javascript :language: javascript
Delete volume Delete volume
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
@ -448,7 +467,13 @@ Troubleshooting
- The volume managed by OpenStack Block Storage is not deleted from - The volume managed by OpenStack Block Storage is not deleted from
the storage system. the storage system.
Normal response codes: 202
Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -462,9 +487,6 @@ Request
Create volume metadata Create volume metadata
~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
@ -473,7 +495,12 @@ Create volume metadata
Creates or replaces metadata for a volume. Does not modify items that are not Creates or replaces metadata for a volume. Does not modify items that are not
in the request. in the request.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -517,7 +544,12 @@ Show volume metadata
Shows metadata for a volume. Shows metadata for a volume.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -554,8 +586,12 @@ Update volume metadata
Replaces all the volume's metadata with the key-value pairs in the request. Replaces all the volume's metadata with the key-value pairs in the request.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -599,7 +635,12 @@ Show volume metadata for a specific key
Shows metadata for a volume for a specific key. Shows metadata for a volume for a specific key.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -620,7 +661,6 @@ Response Parameters
- metadata: metadata_3 - metadata: metadata_3
Response Example Response Example
---------------- ----------------
@ -628,8 +668,6 @@ Response Example
:language: javascript :language: javascript
Delete volume metadata Delete volume metadata
~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
@ -637,7 +675,12 @@ Delete volume metadata
Deletes metadata for a volume. Deletes metadata for a volume.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -650,8 +693,6 @@ Request
- key: key_1 - key: key_1
Update volume metadata for a specific key Update volume metadata for a specific key
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -659,7 +700,12 @@ Update volume metadata for a specific key
Update metadata for a volume for a specific key. Update metadata for a volume for a specific key.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request

View File

@ -7,11 +7,23 @@ List All Api Versions
Lists information for all Block Storage API versions. Lists information for all Block Storage API versions.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 300 .. rest_status_code:: success ../status.yaml
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400), - 300
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404), conflict(409)
.. rest_status_code:: error ../status.yaml
- 400
- 401
- 403
- 405
- 404
- 409
- 500
- 503
Request Request
~~~~~~~ ~~~~~~~

View File

@ -20,9 +20,17 @@ Deletes an attachment.
Available starting in the 3.27 microversion. Available starting in the 3.27 microversion.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request Request
@ -43,9 +51,17 @@ Shows details for an attachment.
Available starting in the 3.27 microversion. Available starting in the 3.27 microversion.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request Request
@ -88,9 +104,16 @@ users specify invalid filters in the url, API will return bad request.
Available starting in the 3.27 microversion. Available starting in the 3.27 microversion.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
Request Request
------- -------
@ -135,9 +158,16 @@ specify invalid filters in the url, API will return bad request.
Available starting in the 3.27 microversion. Available starting in the 3.27 microversion.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
Request Request
@ -180,9 +210,17 @@ Creates an attachment.
Available starting in the 3.27 microversion. Available starting in the 3.27 microversion.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request Request
@ -234,9 +272,17 @@ and set up the appropriate connection_info from the driver.
Available starting in the 3.27 microversion. Available starting in the 3.27 microversion.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request Request
------- -------
@ -285,9 +331,17 @@ Complete an attachment for a cinder volume.
Available starting in the 3.44 microversion. Available starting in the 3.44 microversion.
Normal response codes: 204 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 204
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request Request

View File

@ -14,7 +14,12 @@ Show all back-end capabilities
Shows capabilities for a storage back end on the host. Shows capabilities for a storage back end on the host.
The ``hostname`` takes the form of ``hostname@volume_backend_name``. The ``hostname`` takes the form of ``hostname@volume_backend_name``.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
------- -------

View File

@ -22,7 +22,12 @@ List project's consistency groups
Lists consistency groups. Lists consistency groups.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -60,7 +65,12 @@ Create a consistency group
Creates a consistency group. Creates a consistency group.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -108,7 +118,12 @@ Show a consistency group's details
Shows details for a consistency group. Shows details for a consistency group.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
------- -------
@ -145,7 +160,13 @@ Create a consistency group from source
Creates a consistency group from source. Creates a consistency group from source.
Normal response codes: 202
Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -177,7 +198,12 @@ Delete a consistency group
Deletes a consistency group. Deletes a consistency group.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -205,7 +231,12 @@ List consistency groups and details
Lists consistency groups with details. Lists consistency groups with details.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -248,7 +279,13 @@ Update a consistency group
Updates a consistency group. Updates a consistency group.
Normal response codes: 202
Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request

View File

@ -19,9 +19,17 @@ This operations deletes the backup and any backup data.
The backup driver returns the ``405`` status code if it does not The backup driver returns the ``405`` status code if it does not
support this operation. support this operation.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: itemNotFound(404), badMethod(405) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 404
- 405
Request Request
------- -------
@ -48,9 +56,17 @@ Reset a backup's status
Reset a backup's status. Specify the ``os-reset_status`` action in the request Reset a backup's status. Specify the ``os-reset_status`` action in the request
body. body.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request Request

View File

@ -47,9 +47,16 @@ since v3.31 if non-admin users specify invalid filters in the url,
API will return bad request. API will return bad request.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
Request Request
@ -106,8 +113,12 @@ Show backup detail
Shows details for a backup. Shows details for a backup.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -159,9 +170,16 @@ Delete a backup
Deletes a backup. Deletes a backup.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: Bad Request(400) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
Request Request
------- -------
@ -188,9 +206,17 @@ new volume matching the size and name of the originally backed up volume.
In this case, if the name parameter is provided, it will be used as the In this case, if the name parameter is provided, it will be used as the
name of the new volume. name of the new volume.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: Bad Request(400), Request Entity Too Large(413) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 413
Request Request
@ -233,9 +259,17 @@ Create a backup
Creates a Block Storage backup from a volume. Creates a Block Storage backup from a volume.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: Bad Request(400), Internal Server Error(500) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 500
Request Request
------- -------
@ -277,9 +311,16 @@ Update a backup
Update a Block Storage backup. This API is available since v3.9. Update a Block Storage backup. This API is available since v3.9.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: Bad Request(400) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
Request Request
------- -------
@ -325,9 +366,16 @@ Lists Block Storage backups to which the project has access,
since v3.31 if non-admin users specify invalid filters in the since v3.31 if non-admin users specify invalid filters in the
url, API will return bad request. url, API will return bad request.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
Request Request
------- -------
@ -367,9 +415,17 @@ Export a backup
Export information about a backup. Export information about a backup.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request Request
@ -404,9 +460,17 @@ Import a backup
Import information about a backup. Import information about a backup.
Normal response codes: 201 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), serviceUnavailable(503) .. rest_status_code:: success ../status.yaml
- 201
.. rest_status_code:: error ../status.yaml
- 400
- 503
Request Request

View File

@ -15,9 +15,17 @@ List replication targets
Lists replication targets for a group. Lists replication targets for a group.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request Request
@ -57,9 +65,17 @@ Enable group replication
Enable replication for a group. Enable replication for a group.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request Request
------- -------
@ -82,9 +98,17 @@ Disable group replication
Disable replication for a group. Disable replication for a group.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request Request
------- -------
@ -107,9 +131,17 @@ Failover replication
Failover a replicated group. Failover a replicated group.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request Request
------- -------

View File

@ -14,9 +14,18 @@ Delete group snapshot
Deletes a group snapshot. Deletes a group snapshot.
Normal response codes: 202
Error response codes: badRequest(400), itemNotFound(404) Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request Request
@ -36,9 +45,17 @@ Show group snapshot details
Shows details for a group snapshot. Shows details for a group snapshot.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request Request
@ -80,9 +97,16 @@ Lists all group snapshots with details. Since v3.31 if non-admin
users specify invalid filters in the url, API will return bad request. users specify invalid filters in the url, API will return bad request.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
Request Request
------- -------
@ -127,9 +151,16 @@ Lists all group snapshots, since v3.31 if non-admin users
specify invalid filters in the url, API will return bad request. specify invalid filters in the url, API will return bad request.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
Request Request
@ -170,9 +201,17 @@ Create group snapshot
Creates a group snapshot. Creates a group snapshot.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request Request
@ -216,9 +255,17 @@ Reset group snapshot status
Resets the status for a group snapshot. Specifies the ``reset_status`` action in the request body. Resets the status for a group snapshot. Specifies the ``reset_status`` action in the request body.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request Request

View File

@ -11,10 +11,18 @@ Create or update group specs for a group type
Create group specs for a group type, if the specification key already exists in group specs, Create group specs for a group type, if the specification key already exists in group specs,
this API will update the specification as well. this API will update the specification as well.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 202 .. rest_status_code:: success ../status.yaml
Error response codes: badRequest(400), forbidden(403), itemNotFound(404) - 202
.. rest_status_code:: error ../status.yaml
- 400
- 403
- 404
Request Request
@ -57,9 +65,17 @@ List group specs for a group type
List all the group specs for a group type, List all the group specs for a group type,
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: itemNotFound(404), forbidden(403) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 403
- 404
Request Request
@ -94,9 +110,17 @@ Show one specific group spec for a group type
Show a group spec for a group type, Show a group spec for a group type,
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: itemNotFound(404), forbidden(403) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 403
- 404
Request Request
@ -131,9 +155,17 @@ Update one specific group spec for a group type
Update a group spec for a group type, Update a group spec for a group type,
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: itemNotFound(404), forbidden(403) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 403
- 404
Request Request
@ -174,9 +206,17 @@ Delete one specific group spec for a group type
Delete a group spec for a group type, Delete a group spec for a group type,
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: itemNotFound(404), forbidden(403) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 403
- 404
Request Request

View File

@ -13,10 +13,20 @@ Update group type
Updates a group type. Updates a group type.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), forbidden(403), itemNotFound(404), .. rest_status_code:: success ../status.yaml
conflict(409), computeFault(500)
- 200
.. rest_status_code:: error ../status.yaml
- 400
- 403
- 404
- 409
- 500
Request Request
@ -64,10 +74,16 @@ Show group type details
Shows details for a group type. Shows details for a group type.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
Error response codes: itemNotFound(404) - 200
.. rest_status_code:: error ../status.yaml
- 404
Request Request
------- -------
@ -106,9 +122,16 @@ Show default group type details
Shows details for the default group type if configured. Shows details for the default group type if configured.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 404
Request Request
------- -------
@ -145,9 +168,18 @@ Delete group type
Deletes a group type. Deletes a group type.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), forbidden(403), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 403
- 404
Request Request
@ -166,8 +198,12 @@ List group types
Lists group types. Lists group types.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -206,11 +242,19 @@ Create group type
Creates a group type. Creates a group type.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 202 .. rest_status_code:: success ../status.yaml
Error response codes: badRequest(400), forbidden(403), itemNotFound(404), - 202
conflict(409)
.. rest_status_code:: error ../status.yaml
- 400
- 403
- 404
- 409
Request Request

View File

@ -25,10 +25,16 @@ List groups
Lists groups. Since v3.31 if non-admin users specify Lists groups. Since v3.31 if non-admin users specify
invalid filters in the url, API will return bad request. invalid filters in the url, API will return bad request.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
Error response codes: badRequest(400) - 200
.. rest_status_code:: error ../status.yaml
- 400
Request Request
@ -67,9 +73,17 @@ Create group
Creates a group. Creates a group.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request Request
@ -99,9 +113,16 @@ Show group details
Shows details for a group. Shows details for a group.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 404
Request Request
------- -------
@ -143,9 +164,18 @@ Create group from source
Creates a group from source. Creates a group from source.
Normal response codes: 202
Error response codes: badRequest(400), itemNotFound(404) Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request Request
@ -174,9 +204,17 @@ Delete group
Deletes a group. Deletes a group.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request Request
@ -205,9 +243,16 @@ Lists groups with details, since v3.31 if non-admin
users specify invalid filters in the url, API will return bad request. users specify invalid filters in the url, API will return bad request.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
Request Request
@ -254,9 +299,17 @@ Update group
Updates a group. Updates a group.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request Request
@ -286,9 +339,17 @@ Reset group status
Resets the status for a group. Specify the ``reset_status`` action in the request body. Resets the status for a group. Specify the ``reset_status`` action in the request body.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request Request

View File

@ -15,9 +15,18 @@ List all hosts for a project
Lists all hosts summary info that is not disabled. Lists all hosts summary info that is not disabled.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), unauthorized(401), forbidden(403) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
- 401
- 403
Request Request
------- -------
@ -57,9 +66,19 @@ Shows volume and snapshot details for a cinder-volume host.
It is not valid against other Cinder service hosts or hosts where the It is not valid against other Cinder service hosts or hosts where the
cinder-volume service has been disabled. cinder-volume service has been disabled.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
- 401
- 403
- 404
Request Request
------- -------

View File

@ -19,10 +19,16 @@ Shows absolute limits for a project.
An absolute limit value of ``-1`` indicates that the absolute limit An absolute limit value of ``-1`` indicates that the absolute limit
for the item is infinite. for the item is infinite.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
Error response codes: forbidden(403) - 200
.. rest_status_code:: error ../status.yaml
- 403
Request Request
------- -------

View File

@ -13,9 +13,17 @@ Delete message
Deletes a message. Deletes a message.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request Request
@ -35,9 +43,17 @@ Show message details
Shows details for a message. Shows details for a message.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request Request
@ -82,9 +98,16 @@ Lists all messages, since v3.31 if non-admin users
specify invalid filters in the url, API will return bad request. specify invalid filters in the url, API will return bad request.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
Request Request

View File

@ -14,7 +14,12 @@ Delete a consistency group snapshot
Deletes a consistency group snapshot. Deletes a consistency group snapshot.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -33,8 +38,12 @@ Show consistency group snapshot detail
Shows details for a consistency group snapshot. Shows details for a consistency group snapshot.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -73,8 +82,12 @@ List all consistency group snapshots with details
Lists all consistency group snapshots with details. Lists all consistency group snapshots with details.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
------- -------
@ -112,7 +125,12 @@ List all consistency group snapshots
Lists all consistency group snapshots. Lists all consistency group snapshots.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -151,7 +169,12 @@ Create a consistency group snapshot
Creates a consistency group snapshot. Creates a consistency group snapshot.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
------- -------

View File

@ -16,9 +16,18 @@ List All Cinder Services
Lists all Cinder services. Provides details why any services Lists all Cinder services. Provides details why any services
were disabled. were disabled.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), unauthorized(401), forbidden(403) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
- 401
- 403
Request Request
------- -------
@ -62,9 +71,19 @@ Disable a Cinder Service
Disables a Cinder service. Specify the service by its host name Disables a Cinder service. Specify the service by its host name
and binary name. and binary name.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
- 401
- 403
- 404
Request Request
------- -------
@ -108,9 +127,19 @@ Logs information to the Cinder service table about why a Cinder service was disa
Specify the service by its host name and binary name. Specify the service by its host name and binary name.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
- 401
- 403
- 404
Request Request
------- -------
@ -155,9 +184,19 @@ Enable a Cinder Service
Enables a Cinder service. Specify the service by its host name Enables a Cinder service. Specify the service by its host name
and binary name. and binary name.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
- 401
- 403
- 404
Request Request
------- -------
@ -201,9 +240,18 @@ Get Current Log Levels for Cinder Services
Get current log levels for services, supported since v3.32. Filter the Get current log levels for services, supported since v3.32. Filter the
services by binary, server name and prefix for the log path. services by binary, server name and prefix for the log path.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), unauthorized(401), forbidden(403) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
- 401
- 403
Request Request
------- -------
@ -246,9 +294,18 @@ Set Log Levels of Cinder Services Dynamically
Set log levels of services dynamically, supported since v3.32. Filter the Set log levels of services dynamically, supported since v3.32. Filter the
services by binary, server name and prefix for the log path. services by binary, server name and prefix for the log path.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), unauthorized(401), forbidden(403) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 401
- 403
Request Request
------- -------
@ -276,9 +333,18 @@ Freeze a Cinder Backend Host
Freeze and disable the specified cinder-volume host, and set Freeze and disable the specified cinder-volume host, and set
``Disabled Reason`` of Cinder service table to ``frozen``. ``Disabled Reason`` of Cinder service table to ``frozen``.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), unauthorized(401), forbidden(403) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
- 401
- 403
Request Request
------- -------
@ -303,9 +369,18 @@ Thaw a Cinder Backend Host
Thaw and enable the specified cinder-volume host, and clean Thaw and enable the specified cinder-volume host, and clean
``Disabled Reason`` of Cinder service table. ``Disabled Reason`` of Cinder service table.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), unauthorized(401), forbidden(403) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
- 401
- 403
Request Request
------- -------
@ -331,10 +406,19 @@ Failover a replicating cinder-volume host. Since Cinder Volume API Version
3.26, you can use ``failover`` in request URL instead of ``failover_host``, 3.26, you can use ``failover`` in request URL instead of ``failover_host``,
and the cluster name in request body is supported. and the cluster name in request body is supported.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), unauthorized(401), forbidden(403), .. rest_status_code:: success ../status.yaml
itemNotFound(404)
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 401
- 403
- 404
Request Request
------- -------

View File

@ -16,9 +16,16 @@ Lists all back-end storage pools. Since v3.31 if non-admin users
specify invalid filters in the url, API will return bad request. specify invalid filters in the url, API will return bad request.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
Request Request
------- -------

View File

@ -13,7 +13,12 @@ Accept a volume transfer
Accepts a volume transfer. Accepts a volume transfer.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -55,7 +60,12 @@ Create a volume transfer
Creates a volume transfer. Creates a volume transfer.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -101,8 +111,12 @@ List volume transfers for a project
Lists volume transfers. Lists volume transfers.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -139,8 +153,12 @@ Show volume transfer detail
Shows details for a volume transfer. Shows details for a volume transfer.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -178,7 +196,12 @@ Delete a volume transfer
Deletes a volume transfer. Deletes a volume transfer.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -197,8 +220,12 @@ List volume transfers and details
Lists volume transfers, with details. Lists volume transfers, with details.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
------- -------

View File

@ -17,7 +17,12 @@ Disassociate a QoS specification from all associations
Disassociates a QoS specification from all associations. Disassociates a QoS specification from all associations.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -36,8 +41,12 @@ Unset keys in a QoS specification
Unsets keys in a QoS specification. Unsets keys in a QoS specification.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -64,7 +73,12 @@ Get all associations for a QoS specification
Lists all associations for a QoS specification. Lists all associations for a QoS specification.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -103,7 +117,13 @@ Associate QoS specification with a volume type
Associates a QoS specification with a volume type. Associates a QoS specification with a volume type.
Normal response codes: 202
Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -123,7 +143,13 @@ Disassociate QoS specification from a volume type
Disassociates a QoS specification from a volume type. Disassociates a QoS specification from a volume type.
Normal response codes: 202
Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -143,12 +169,22 @@ Show a QoS specification details
Shows details for a QoS specification. Shows details for a QoS specification.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
Error response codes: Request Entity Too Large(413), badMethod(405), - 200
itemNotFound(404), forbidden(403), unauthorized(401), badRequest(400),
serviceUnavailable(503) .. rest_status_code:: error ../status.yaml
- 400
- 401
- 403
- 404
- 405
- 413
- 503
Request Request
@ -187,8 +223,12 @@ Set keys in a QoS specification
Sets keys in a QoS specification. Sets keys in a QoS specification.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -228,7 +268,12 @@ Delete a QoS specification
Deletes a QoS specification. Deletes a QoS specification.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -250,7 +295,13 @@ Creates a QoS specification.
Specify one or more key and value pairs in the request body. Specify one or more key and value pairs in the request body.
Normal response codes: 202
Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -269,7 +320,6 @@ Request Example
:language: javascript :language: javascript
Response Parameters Response Parameters
------------------- -------------------
@ -291,9 +341,16 @@ List QoS Specifications
Lists quality of service (QoS) specifications. Lists quality of service (QoS) specifications.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: 300 .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 300
Request Request

View File

@ -15,9 +15,17 @@ Show quota classes for a project
Shows quota class set for a project. If no specific value for the quota class Shows quota class set for a project. If no specific value for the quota class
resource exists, then the default value will be reported. resource exists, then the default value will be reported.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: forbidden(403), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 403
- 404
Request Request
@ -59,9 +67,18 @@ Update quota classes for a project
Updates quota class set for a project. If the ``quota_class_name`` key does not Updates quota class set for a project. If the ``quota_class_name`` key does not
exist, then the API will create one. exist, then the API will create one.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400), forbidden(403), itemNotFound(404) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
- 403
- 404
Request Request

View File

@ -16,7 +16,12 @@ Show quotas for a project
Shows quotas for a project. Shows quotas for a project.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -61,8 +66,12 @@ Show quota usage for a project
Shows quota usage for a project. Shows quota usage for a project.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -109,7 +118,12 @@ Update quotas for a project
Updates quotas for a project. Updates quotas for a project.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -168,8 +182,12 @@ Delete quotas for a project
Deletes quotas for a project so the quotas revert to default values. Deletes quotas for a project so the quotas revert to default values.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -190,8 +208,12 @@ Get default quotas for a project
Gets default quotas for a project. Gets default quotas for a project.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -236,9 +258,16 @@ Validate setup for nested quota
Validate setup for nested quota, administrator should ensure that Keystone v3 or greater is Validate setup for nested quota, administrator should ensure that Keystone v3 or greater is
being used. being used.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
Error response codes: badRequest(400)
- 200
.. rest_status_code:: error ../status.yaml
- 400
Request Request

View File

@ -14,7 +14,12 @@ List resource filters
List filters. List filters.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request

View File

@ -25,7 +25,12 @@ The API chooses the size of the snapshot by rounding up the size of
the existing snapshot to the next gibibyte (GiB). the existing snapshot to the next gibibyte (GiB).
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -57,7 +62,12 @@ List summary of snapshots available to manage
Search a volume backend and list summary of snapshots which are available to Search a volume backend and list summary of snapshots which are available to
manage. manage.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -102,7 +112,13 @@ List detail of snapshots available to manage
Search a volume backend and list detail of snapshots which are available to Search a volume backend and list detail of snapshots which are available to
manage. manage.
Normal response codes: 200
Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request

View File

@ -28,7 +28,12 @@ Prior to microversion 3.16 host field was required, with the possibility of
defining the cluster it is no longer required, but we must have either a host defining the cluster it is no longer required, but we must have either a host
or a cluster field but we cannot have them both with values. or a cluster field but we cannot have them both with values.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -66,7 +71,12 @@ List summary of volumes available to manage
Search a volume backend and list summary of volumes which are available to Search a volume backend and list summary of volumes which are available to
manage. manage.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -110,7 +120,12 @@ List detail of volumes available to manage
Search a volume backend and list detail of volumes which are available to Search a volume backend and list detail of volumes which are available to
manage. manage.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request

View File

@ -20,7 +20,12 @@ Add private volume type access to project
Adds private volume type access to a project. Adds private volume type access to a project.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -46,7 +51,12 @@ Remove private volume type access from project
Removes private volume type access from a project. Removes private volume type access from a project.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -72,8 +82,12 @@ List private volume type access detail
Lists project IDs that have access to private volume type. Lists project IDs that have access to private volume type.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request

View File

@ -13,10 +13,16 @@ List Known API extensions
Lists Block Storage API extensions. Lists Block Storage API extensions.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
Error response codes: 300 - 200
.. rest_status_code:: error ../status.yaml
- 300
Request Request

View File

@ -13,7 +13,12 @@ Reset a snapshot's status
Resets the status. Specify the ``os-reset_status`` action in the request body. Resets the status. Specify the ``os-reset_status`` action in the request body.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request

View File

@ -43,10 +43,16 @@ Lists all Block Storage snapshots, with details, that the project can access,
since v3.31 if non-admin users specify invalid filters in the url, API will since v3.31 if non-admin users specify invalid filters in the url, API will
return bad request. return bad request.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
Error response codes: badRequest(400) - 200
.. rest_status_code:: error ../status.yaml
- 400
Request Request
@ -96,7 +102,12 @@ Create a snapshot
Creates a volume snapshot, which is a point-in-time, complete copy of a volume. Creates a volume snapshot, which is a point-in-time, complete copy of a volume.
You can create a volume from a snapshot. You can create a volume from a snapshot.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -151,10 +162,16 @@ Lists all Block Storage snapshots, with summary information,
that the project can access, since v3.31 if non-admin users that the project can access, since v3.31 if non-admin users
specify invalid filters in the url, API will return bad request. specify invalid filters in the url, API will return bad request.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
Error response codes: badRequest(400) - 200
.. rest_status_code:: error ../status.yaml
- 400
Request Request
@ -201,8 +218,12 @@ Show a snapshot's metadata
Shows metadata for a snapshot. Shows metadata for a snapshot.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -248,8 +269,12 @@ Updates metadata for a snapshot.
Creates or replaces metadata items that match keys. Does not modify items that Creates or replaces metadata items that match keys. Does not modify items that
are not in the request. are not in the request.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -287,8 +312,12 @@ Update a snapshot's metadata
Replaces all the snapshot's metadata with the key-value pairs in the request. Replaces all the snapshot's metadata with the key-value pairs in the request.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -328,8 +357,12 @@ Show a snapshot's details
Shows details for a snapshot. Shows details for a snapshot.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -373,8 +406,12 @@ Update a snapshot
Updates a snapshot. Updates a snapshot.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -426,7 +463,12 @@ Delete a snapshot
Deletes a snapshot. Deletes a snapshot.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -445,7 +487,12 @@ Show a snapshot's metadata for a specific key
Shows metadata for a snapshot for a specific key. Shows metadata for a snapshot for a specific key.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -480,7 +527,12 @@ Delete a snapshot's metadata
Deletes metadata for a snapshot. Deletes metadata for a snapshot.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -500,7 +552,12 @@ Update a snapshot's metadata for a specific key
Update metadata for a snapshot for a specific key. Update metadata for a snapshot for a specific key.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request

View File

@ -24,8 +24,12 @@ Update a volume type
Updates a volume type. Updates a volume type.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -73,8 +77,12 @@ Create or update extra specs for volume type
Adds new extra specifications to a volume type, or updates the extra Adds new extra specifications to a volume type, or updates the extra
specifications that are assigned to a volume type. specifications that are assigned to a volume type.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -115,8 +123,12 @@ Show all extra specifications for volume type
Shows all extra specifications assigned to a volume type. Shows all extra specifications assigned to a volume type.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
------- -------
@ -149,8 +161,12 @@ Show extra specification for volume type
Shows the specific extra specification assigned to a volume type. Shows the specific extra specification assigned to a volume type.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
------- -------
@ -176,8 +192,12 @@ Update extra specification for volume type
Update the specific extra specification assigned to a volume type. Update the specific extra specification assigned to a volume type.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -210,8 +230,12 @@ Delete extra specification for volume type
Deletes the specific extra specification assigned to a volume type. Deletes the specific extra specification assigned to a volume type.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 202 .. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -231,8 +255,12 @@ Show volume type detail
Shows details for a volume type. Shows details for a volume type.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
------- -------
@ -269,8 +297,12 @@ Show default volume type
Shows details for the default volume type if configured. Shows details for the default volume type if configured.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
------- -------
@ -306,7 +338,12 @@ Delete a volume type
Deletes a volume type. Deletes a volume type.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -325,8 +362,12 @@ List all volume types
Lists volume types. Lists volume types.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -364,7 +405,12 @@ Create a volume type
Creates a volume type. Creates a volume type.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -413,7 +459,12 @@ Show an encryption type
To show an encryption type for an existing volume type. To show an encryption type for an existing volume type.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -456,7 +507,12 @@ Show encryption specs item
To show encryption specs item for an existing volume type. To show encryption specs item for an existing volume type.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -482,7 +538,12 @@ Delete an encryption type
To delete an encryption type for an existing volume type. To delete an encryption type for an existing volume type.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -502,7 +563,12 @@ Create an encryption type
To create an encryption type for an existing volume type. To create an encryption type for an existing volume type.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -552,7 +618,12 @@ Update an encryption type
To update an encryption type for an existing volume type. To update an encryption type for an existing volume type.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request

View File

@ -11,10 +11,16 @@ Show API v3 details
Shows details for Block Storage API v3. Shows details for Block Storage API v3.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
Error response codes: 403 - 200
.. rest_status_code:: error ../status.yaml
- 403
Request Request

View File

@ -52,7 +52,12 @@ Troubleshooting
request. If the request fails again, investigate the storage back request. If the request fails again, investigate the storage back
end. end.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -80,7 +85,12 @@ Reset a volume's statuses
Administrator only. Resets the status, attach status, revert to snapshot, Administrator only. Resets the status, attach status, revert to snapshot,
and migration status for a volume. Specify the ``os-reset_status`` action in the request body. and migration status for a volume. Specify the ``os-reset_status`` action in the request body.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -112,9 +122,19 @@ and the volume status must be ``available``.
Available since API microversion ``3.40``. Available since API microversion ``3.40``.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
Error response codes: 400(HTTPBadRequest), 403(HTTPForbidden), 404(HTTPNotFound), 409(HTTPConflict) .. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 403
- 404
- 409
Request Request
------- -------
@ -140,7 +160,12 @@ Set image metadata for a volume
Sets the image metadata for a volume. Specify the ``os-set_image_metadata`` action in the request body. Sets the image metadata for a volume. Specify the ``os-set_image_metadata`` action in the request body.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -167,7 +192,12 @@ Remove image metadata from a volume
Removes image metadata, by key, from a volume. Specify the ``os-unset_image_metadata`` action in the request body and the ``key`` for the metadata key and value pair that you want to remove. Removes image metadata, by key, from a volume. Specify the ``os-unset_image_metadata`` action in the request body and the ``key`` for the metadata key and value pair that you want to remove.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -196,7 +226,12 @@ Show image metadata for a volume
Shows image metadata for a volume. Shows image metadata for a volume.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -242,7 +277,12 @@ Preconditions
- You should set ``instance_uuid`` or ``host_name``. - You should set ``instance_uuid`` or ``host_name``.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -276,7 +316,12 @@ Preconditions
- Volume status must be ``in-use``. - Volume status must be ``in-use``.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -309,7 +354,12 @@ Preconditions
- Volume status must be ``available``. - Volume status must be ``available``.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -343,7 +393,12 @@ perform this operation. Cloud providers can change these permissions
through the ``volume_extension:volume_admin_actions:force_detach`` rule in through the ``volume_extension:volume_admin_actions:force_detach`` rule in
the ``policy.json`` file. the ``policy.json`` file.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -383,7 +438,12 @@ Policy defaults enable only users with the administrative role or the owner of
the volume to perform this operation. Cloud providers can change these the volume to perform this operation. Cloud providers can change these
permissions through the policy.json file. permissions through the policy.json file.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -412,8 +472,12 @@ Force delete a volume
Attempts force-delete of volume, regardless of state. Specify the ``os-force_delete`` action Attempts force-delete of volume, regardless of state. Specify the ``os-force_delete`` action
in the request body. in the request body.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 202 .. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -440,7 +504,12 @@ Update a volume's bootable status
Update the bootable status for a volume, mark it as a bootable volume. Specify Update the bootable status for a volume, mark it as a bootable volume. Specify
the ``os-set_bootable`` action in the request body. the ``os-set_bootable`` action in the request body.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -467,7 +536,12 @@ Upload volume to image
Uploads the specified volume to image service. Uploads the specified volume to image service.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request

View File

@ -70,10 +70,16 @@ Lists all Block Storage volumes, with details, that the project can access,
since v3.31 if non-admin users specify invalid filters in the url, API will since v3.31 if non-admin users specify invalid filters in the url, API will
return bad request. return bad request.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
Error response codes: badRequest(400) - 200
.. rest_status_code:: error ../status.yaml
- 400
Request Request
@ -173,7 +179,12 @@ Troubleshooting
- The storage node needs enough free storage space to match the size - The storage node needs enough free storage space to match the size
of the volume creation request. of the volume creation request.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -250,9 +261,16 @@ project can access, since v3.31 if non-admin users specify invalid
filters in the url, API will return bad request. filters in the url, API will return bad request.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
Error response codes: badRequest(400) .. rest_status_code:: success ../status.yaml
- 200
.. rest_status_code:: error ../status.yaml
- 400
Request Request
@ -302,8 +320,12 @@ Preconditions
- The volume must exist. - The volume must exist.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -369,8 +391,12 @@ Update a volume
Updates a volume. Updates a volume.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 200 .. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -422,7 +448,6 @@ Response Parameters
- volume_type: volume_type_6 - volume_type: volume_type_6
Response Example Response Example
---------------- ----------------
@ -430,8 +455,6 @@ Response Example
:language: javascript :language: javascript
Delete a volume Delete a volume
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
@ -464,7 +487,12 @@ Troubleshooting
- The volume managed by OpenStack Block Storage is not deleted from - The volume managed by OpenStack Block Storage is not deleted from
the storage system. the storage system.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -486,7 +514,12 @@ Create metadata for volume
Creates or replaces metadata for a volume. Does not modify items that are not Creates or replaces metadata for a volume. Does not modify items that are not
in the request. in the request.
Normal response codes: 202 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 202
Request Request
@ -521,8 +554,6 @@ Response Example
:language: javascript :language: javascript
Show a volume's metadata Show a volume's metadata
~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~
@ -531,7 +562,12 @@ Show a volume's metadata
Shows metadata for a volume. Shows metadata for a volume.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -559,8 +595,6 @@ Response Example
:language: javascript :language: javascript
Update a volume's metadata Update a volume's metadata
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -569,7 +603,12 @@ Update a volume's metadata
Replaces all the volume's metadata with the key-value pairs in the request. Replaces all the volume's metadata with the key-value pairs in the request.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -612,7 +651,12 @@ Show a volume's metadata for a specific key
Shows metadata for a volume for a specific key. Shows metadata for a volume for a specific key.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -649,7 +693,12 @@ Delete a volume's metadata
Deletes metadata for a volume. Deletes metadata for a volume.
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -669,7 +718,13 @@ Update a volume's metadata for a specific key
Update metadata for a volume for a specific key. Update metadata for a volume for a specific key.
Normal response codes: 200
Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request
@ -710,7 +765,12 @@ Get volumes summary
Display volumes summary with total number of volumes and total size in GB Display volumes summary with total number of volumes and total size in GB
Normal response codes: 200 Response codes
~~~~~~~~~~~~~~
.. rest_status_code:: success ../status.yaml
- 200
Request Request

View File

@ -13,8 +13,12 @@ Request cleanup of services with optional filtering. This API is only
available with microversion 3.24 or later. available with microversion 3.24 or later.
Response codes
~~~~~~~~~~~~~~
Normal response codes: 202 .. rest_status_code:: success ../status.yaml
- 202
Request Request