summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMatt Riedemann <mriedem.os@gmail.com>2017-04-20 16:46:24 -0400
committerMatt Riedemann <mriedem.os@gmail.com>2017-04-25 15:52:14 -0400
commit66b0cf333758b5793208c2a734959aa192bbc39b (patch)
tree540df93efb79726610e2764b7958740b8a97cb99 /doc
parentec1794b18c6ecb9b0c1e6a5f3908db70f4531328 (diff)
downloadnova-66b0cf333758b5793208c2a734959aa192bbc39b.tar.gz
2.45: Remove Location header from createImage and createBackup responses
This changes the response for the createImage and createBackup server action APIs to no longer return a Location header and instead returns a json dict body with the snapshot image ID. This is done in a new microversion. Implements blueprint remove-create-image-location-header-response Closes-Bug: #1679285 Change-Id: Idc899ee76b8265b1c9e0871b6c7c277424cdd442
Diffstat (limited to 'doc')
-rw-r--r--doc/api_samples/os-create-backup/v2.45/create-backup-req.json7
-rw-r--r--doc/api_samples/os-create-backup/v2.45/create-backup-resp.json3
-rw-r--r--doc/api_samples/servers/v2.45/server-action-create-image-resp.json3
-rw-r--r--doc/api_samples/servers/v2.45/server-action-create-image.json8
-rw-r--r--doc/api_samples/versions/v21-version-get-resp.json2
-rw-r--r--doc/api_samples/versions/versions-get-resp.json2
6 files changed, 23 insertions, 2 deletions
diff --git a/doc/api_samples/os-create-backup/v2.45/create-backup-req.json b/doc/api_samples/os-create-backup/v2.45/create-backup-req.json
new file mode 100644
index 0000000000..39f7035848
--- /dev/null
+++ b/doc/api_samples/os-create-backup/v2.45/create-backup-req.json
@@ -0,0 +1,7 @@
+{
+ "createBackup": {
+ "name": "Backup 1",
+ "backup_type": "weekly",
+ "rotation": 1
+ }
+}
diff --git a/doc/api_samples/os-create-backup/v2.45/create-backup-resp.json b/doc/api_samples/os-create-backup/v2.45/create-backup-resp.json
new file mode 100644
index 0000000000..05594917dd
--- /dev/null
+++ b/doc/api_samples/os-create-backup/v2.45/create-backup-resp.json
@@ -0,0 +1,3 @@
+{
+ "image_id": "0e7761dd-ee98-41f0-ba35-05994e446431"
+} \ No newline at end of file
diff --git a/doc/api_samples/servers/v2.45/server-action-create-image-resp.json b/doc/api_samples/servers/v2.45/server-action-create-image-resp.json
new file mode 100644
index 0000000000..05594917dd
--- /dev/null
+++ b/doc/api_samples/servers/v2.45/server-action-create-image-resp.json
@@ -0,0 +1,3 @@
+{
+ "image_id": "0e7761dd-ee98-41f0-ba35-05994e446431"
+} \ No newline at end of file
diff --git a/doc/api_samples/servers/v2.45/server-action-create-image.json b/doc/api_samples/servers/v2.45/server-action-create-image.json
new file mode 100644
index 0000000000..dcb5165e48
--- /dev/null
+++ b/doc/api_samples/servers/v2.45/server-action-create-image.json
@@ -0,0 +1,8 @@
+{
+ "createImage" : {
+ "name" : "foo-image",
+ "metadata": {
+ "meta_var": "meta_val"
+ }
+ }
+} \ No newline at end of file
diff --git a/doc/api_samples/versions/v21-version-get-resp.json b/doc/api_samples/versions/v21-version-get-resp.json
index 793177e100..f935867d3e 100644
--- a/doc/api_samples/versions/v21-version-get-resp.json
+++ b/doc/api_samples/versions/v21-version-get-resp.json
@@ -19,7 +19,7 @@
}
],
"status": "CURRENT",
- "version": "2.44",
+ "version": "2.45",
"min_version": "2.1",
"updated": "2013-07-23T11:33:21Z"
}
diff --git a/doc/api_samples/versions/versions-get-resp.json b/doc/api_samples/versions/versions-get-resp.json
index e0b3d8a024..e00ea77b5c 100644
--- a/doc/api_samples/versions/versions-get-resp.json
+++ b/doc/api_samples/versions/versions-get-resp.json
@@ -22,7 +22,7 @@
}
],
"status": "CURRENT",
- "version": "2.44",
+ "version": "2.45",
"min_version": "2.1",
"updated": "2013-07-23T11:33:21Z"
}