From a1284a5f437015876eec08ef419578f19bf69c1c Mon Sep 17 00:00:00 2001 From: Ha Van Tu Date: Thu, 8 Sep 2016 12:14:38 +0700 Subject: [PATCH] [api-ref] Correct response code in Cinder API v2 This patch corrects reponses code in Cinder API v2. Change-Id: I91d9b4ba96e53e9fe7cd593f2daf1f8a3cf7ab09 --- api-ref/source/v2/consistencygroups-v2.inc | 8 ++++---- api-ref/source/v2/ext-backups-actions-v2.inc | 4 +++- api-ref/source/v2/ext-backups.inc | 6 +++--- api-ref/source/v2/os-cgsnapshots-v2.inc | 4 ++-- api-ref/source/v2/os-vol-image-meta-v2.inc | 2 +- api-ref/source/v2/os-vol-transfer-v2.inc | 6 +++--- api-ref/source/v2/qos-specs-v2-qos-specs.inc | 15 +++++++-------- api-ref/source/v2/volume-manage.inc | 2 +- api-ref/source/v2/volume-type-access.inc | 4 ++-- api-ref/source/v2/volumes-v2-extensions.inc | 3 +-- api-ref/source/v2/volumes-v2-snapshots.inc | 4 ++-- api-ref/source/v2/volumes-v2-types.inc | 2 +- api-ref/source/v2/volumes-v2-versions.inc | 4 +--- api-ref/source/v2/volumes-v2-volumes-actions.inc | 14 +++++++------- api-ref/source/v2/volumes-v2-volumes.inc | 6 +++--- 15 files changed, 41 insertions(+), 43 deletions(-) diff --git a/api-ref/source/v2/consistencygroups-v2.inc b/api-ref/source/v2/consistencygroups-v2.inc index 0efda0d5209..de218b065fc 100644 --- a/api-ref/source/v2/consistencygroups-v2.inc +++ b/api-ref/source/v2/consistencygroups-v2.inc @@ -61,7 +61,7 @@ Create consistency group Creates a consistency group. -Error response codes:202, +Normal response codes: 202, Request @@ -130,7 +130,7 @@ Create consistency group from source Creates a consistency group from source. -Error response codes:202, +Normal response codes: 202, Request @@ -161,7 +161,7 @@ Delete consistency group Deletes a consistency group. -Error response codes:202, +Normal response codes: 202, Request @@ -231,7 +231,7 @@ Update consistency group Updates a consistency group. -Error response codes:202, +Normal response codes: 202, Request diff --git a/api-ref/source/v2/ext-backups-actions-v2.inc b/api-ref/source/v2/ext-backups-actions-v2.inc index d9b0cb9c9b0..b1a17ca91d7 100644 --- a/api-ref/source/v2/ext-backups-actions-v2.inc +++ b/api-ref/source/v2/ext-backups-actions-v2.inc @@ -19,7 +19,9 @@ This operations deletes the backup and any backup data. The backup driver returns the ``405`` status code if it does not support this operation. -Error response codes:404,405,202, +Normal response codes: 202, + +Error response codes:404,405, Request diff --git a/api-ref/source/v2/ext-backups.inc b/api-ref/source/v2/ext-backups.inc index 6132d444037..5f45929fd0b 100644 --- a/api-ref/source/v2/ext-backups.inc +++ b/api-ref/source/v2/ext-backups.inc @@ -148,7 +148,7 @@ Delete backup Deletes a backup. -Error response codes:204, +Normal response codes: 204, Request @@ -170,7 +170,7 @@ 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 specify both the UUID and name, the UUID takes priority. -Error response codes:202, +Normal response codes: 202, Request @@ -206,7 +206,7 @@ Create backup Creates a Block Storage backup from a volume. -Error response codes:202, +Normal response codes: 202, Request ------- diff --git a/api-ref/source/v2/os-cgsnapshots-v2.inc b/api-ref/source/v2/os-cgsnapshots-v2.inc index a9897fb15f8..de6060102af 100644 --- a/api-ref/source/v2/os-cgsnapshots-v2.inc +++ b/api-ref/source/v2/os-cgsnapshots-v2.inc @@ -15,7 +15,7 @@ Delete consistency group snapshot Deletes a consistency group snapshot. -Error response codes:202, +Normal response codes: 202, Request @@ -150,7 +150,7 @@ Create consistency group snapshot Creates a consistency group snapshot. -Error response codes:202, +Normal response codes: 202, Request ------- diff --git a/api-ref/source/v2/os-vol-image-meta-v2.inc b/api-ref/source/v2/os-vol-image-meta-v2.inc index e36f5e5e03f..908a521bb78 100644 --- a/api-ref/source/v2/os-vol-image-meta-v2.inc +++ b/api-ref/source/v2/os-vol-image-meta-v2.inc @@ -20,7 +20,7 @@ may interpret the existing storage volume reference differently but should accept a reference structure containing either a ``source- volume-id`` or ``source-volume-name`` element, if possible. -Error response codes:202, +Normal response codes: 202, Request diff --git a/api-ref/source/v2/os-vol-transfer-v2.inc b/api-ref/source/v2/os-vol-transfer-v2.inc index 17ef4d42bb8..5026f11b8e8 100644 --- a/api-ref/source/v2/os-vol-transfer-v2.inc +++ b/api-ref/source/v2/os-vol-transfer-v2.inc @@ -14,7 +14,7 @@ Accept volume transfer Accepts a volume transfer. -Error response codes:202, +Normal response codes: 202, Request @@ -52,7 +52,7 @@ Create volume transfer Creates a volume transfer. -Error response codes:202, +Normal response codes: 202, Request @@ -169,7 +169,7 @@ Delete volume transfer Deletes a volume transfer. -Error response codes:202, +Normal response codes: 202, Request diff --git a/api-ref/source/v2/qos-specs-v2-qos-specs.inc b/api-ref/source/v2/qos-specs-v2-qos-specs.inc index 8768c9f9c09..e84b2b78c70 100644 --- a/api-ref/source/v2/qos-specs-v2-qos-specs.inc +++ b/api-ref/source/v2/qos-specs-v2-qos-specs.inc @@ -18,7 +18,7 @@ Disassociate QoS specification from all associations Disassociates a QoS specification from all associations. -Error response codes:202, +Normal response codes: 202, Request @@ -101,7 +101,7 @@ Associate QoS specification with volume type Associates a QoS specification with a volume type. -Error response codes:202, +Normal response codes: 202, Request @@ -120,7 +120,7 @@ Disassociate QoS specification from volume type Disassociates a QoS specification from a volume type. -Error response codes:202, +Normal response codes: 202, Request @@ -141,7 +141,7 @@ Shows details for a QoS specification. Normal response codes: 200 -Error response codes:413,405,404,403,401,400,503, +Error response codes: 413, 405, 404, 403, 401, 400, 503, Request @@ -216,7 +216,7 @@ Delete QoS specification Deletes a QoS specification. -Error response codes:202, +Normal response codes: 202, Request @@ -238,7 +238,7 @@ Creates a QoS specification. Specify one or more key and value pairs in the request body. -Error response codes:202, +Normal response codes: 202, Request @@ -280,8 +280,7 @@ List QoS specs Lists quality of service (QoS) specifications. -Normal response codes: 200 -Error response codes:300, +Normal response codes: 200, 300, Request diff --git a/api-ref/source/v2/volume-manage.inc b/api-ref/source/v2/volume-manage.inc index 5802dd3b320..756db65a1b1 100644 --- a/api-ref/source/v2/volume-manage.inc +++ b/api-ref/source/v2/volume-manage.inc @@ -24,7 +24,7 @@ or source-name element, if possible. The API chooses the size of the volume by rounding up the size of the existing storage volume to the next gibibyte (GiB). -Error response codes:202, +Normal response codes: 202, Request diff --git a/api-ref/source/v2/volume-type-access.inc b/api-ref/source/v2/volume-type-access.inc index b92b5e790fa..1880d8df805 100644 --- a/api-ref/source/v2/volume-type-access.inc +++ b/api-ref/source/v2/volume-type-access.inc @@ -21,7 +21,7 @@ Add private volume type access Adds private volume type access to a project. -Error response codes:202, +Normal response codes: 202, Request @@ -47,7 +47,7 @@ Remove private volume type access Removes private volume type access from a project. -Error response codes:202, +Normal response codes: 202, Request diff --git a/api-ref/source/v2/volumes-v2-extensions.inc b/api-ref/source/v2/volumes-v2-extensions.inc index 6d647d79f5c..64fd3734c2e 100644 --- a/api-ref/source/v2/volumes-v2-extensions.inc +++ b/api-ref/source/v2/volumes-v2-extensions.inc @@ -15,8 +15,7 @@ List API extensions Lists Block Storage API extensions. -Normal response codes: 200 -Error response codes:300, +Normal response codes: 200, 300 Request diff --git a/api-ref/source/v2/volumes-v2-snapshots.inc b/api-ref/source/v2/volumes-v2-snapshots.inc index 099394c7fe8..e5a663b1d1b 100644 --- a/api-ref/source/v2/volumes-v2-snapshots.inc +++ b/api-ref/source/v2/volumes-v2-snapshots.inc @@ -77,7 +77,7 @@ 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. -Error response codes:202, +Normal response codes: 202, Request @@ -347,7 +347,7 @@ Delete snapshot Deletes a snapshot. -Error response codes:202, +Normal response codes: 202, Request diff --git a/api-ref/source/v2/volumes-v2-types.inc b/api-ref/source/v2/volumes-v2-types.inc index 8a0d97d48d5..97509d137e3 100644 --- a/api-ref/source/v2/volumes-v2-types.inc +++ b/api-ref/source/v2/volumes-v2-types.inc @@ -160,7 +160,7 @@ Delete volume type Deletes a volume type. -Error response codes:202, +Normal response codes: 202, Request diff --git a/api-ref/source/v2/volumes-v2-versions.inc b/api-ref/source/v2/volumes-v2-versions.inc index 9f8ba539123..c765b1427b3 100644 --- a/api-ref/source/v2/volumes-v2-versions.inc +++ b/api-ref/source/v2/volumes-v2-versions.inc @@ -15,8 +15,7 @@ List API versions Lists information for all Block Storage API versions. -Normal response codes: 200 -Error response codes:300, +Normal response codes: 200, 300 Request @@ -41,7 +40,6 @@ Shows details for Block Storage API v2. Normal response codes: 200 -Error response codes:203, Request diff --git a/api-ref/source/v2/volumes-v2-volumes-actions.inc b/api-ref/source/v2/volumes-v2-volumes-actions.inc index a76a4ed3528..8dff381c753 100644 --- a/api-ref/source/v2/volumes-v2-volumes-actions.inc +++ b/api-ref/source/v2/volumes-v2-volumes-actions.inc @@ -33,7 +33,7 @@ Troubleshooting request. If the request fails again, investigate the storage back end. -Error response codes:202, +Normal response codes: 202, Request @@ -65,7 +65,7 @@ Reset volume statuses Resets the status, attach status, and migration status for a volume. Specify the ``os-reset_status`` action in the request body. -Error response codes:202, +Normal response codes: 202, Request @@ -99,7 +99,7 @@ Set image metadata for volume Sets the image metadata for a volume. Specify the ``os-set_image_metadata`` action in the request body. -Error response codes:202, +Normal response codes: 202, Request @@ -131,7 +131,7 @@ 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. -Error response codes:202, +Normal response codes: 202, Request @@ -169,7 +169,7 @@ Preconditions - You should set ``instance_uuid`` or ``host_name``. -Error response codes:202, +Normal response codes: 202, Request @@ -207,7 +207,7 @@ Preconditions - Volume status must be ``available``. -Error response codes:202, +Normal response codes: 202, Request @@ -241,7 +241,7 @@ Forces a volume to detach. Specify the ``os-force_detach`` action in the request Rolls back an unsuccessful detach operation after you disconnect the volume. -Error response codes:202, +Normal response codes: 202, Request diff --git a/api-ref/source/v2/volumes-v2-volumes.inc b/api-ref/source/v2/volumes-v2-volumes.inc index 53a3f517dd2..fa77485ebfa 100644 --- a/api-ref/source/v2/volumes-v2-volumes.inc +++ b/api-ref/source/v2/volumes-v2-volumes.inc @@ -148,7 +148,7 @@ Troubleshooting - The storage node needs enough free storage space to match the size of the volume creation request. -Error response codes:202, +Normal response codes: 202, Request @@ -429,7 +429,7 @@ Troubleshooting - The volume managed by OpenStack Block Storage is not deleted from the storage system. -Error response codes:202, +Normal response codes: 202, Request @@ -452,7 +452,7 @@ Create volume metadata Creates metadata for a volume. -Error response codes:202, +Normal response codes: 202, Request