diff options
author | Eddie Sheffield <eddie.sheffield@rackspace.com> | 2014-11-03 20:29:41 -0500 |
---|---|---|
committer | Hemanth Makkapati <hemanth.makkapati@rackspace.com> | 2015-03-13 14:21:11 -0400 |
commit | b000c85b7fabbe944b4df3ab57ff73883328f40d (patch) | |
tree | 50f6305726066a7dbe22545841106950cb32c313 /doc | |
parent | 15fea34808f9c438a19c181200629b5e49577f8c (diff) | |
download | glance-b000c85b7fabbe944b4df3ab57ff73883328f40d.tar.gz |
Add ability to deactivate an image
This patch provides the ability to 'deactivate' an image by
providing two new API calls and a new image status 'deactivated'.
Attempting to download a deactivated image will result in a
403 'Forbidden' return code. Also, image locations won't be visible
for deactivated images unless the user is admin.
All other image operations should remain unaffected.
The two new API calls are:
- POST /images/{image_id}/actions/deactivate
- POST /images/{image_id}/actions/reactivate
DocImpact
UpgradeImpact
Change-Id: I32b7cc7ce8404457a87c8c05041aa2a30152b930
Implements: bp deactivate-image
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/images_src/image_status_transition.dot | 4 | ||||
-rw-r--r-- | doc/source/images_src/image_status_transition.png | bin | 0 -> 157023 bytes |
2 files changed, 4 insertions, 0 deletions
diff --git a/doc/source/images_src/image_status_transition.dot b/doc/source/images_src/image_status_transition.dot index 2ffd0d332..353fae5e9 100644 --- a/doc/source/images_src/image_status_transition.dot +++ b/doc/source/images_src/image_status_transition.dot @@ -40,6 +40,10 @@ digraph { "active" -> "queued" [label="remove location*"]; "active" -> "pending_delete" [label="delayed delete"]; "active" -> "deleted" [label="delete"]; + "active" -> "deactivated" [label="deactivate"]; + + "deactivated" -> "active" [label="reactivate"]; + "deactivated" -> "deleted" [label="delete"]; "killed" -> "deleted" [label="delete"]; diff --git a/doc/source/images_src/image_status_transition.png b/doc/source/images_src/image_status_transition.png Binary files differnew file mode 100644 index 000000000..a0e4e81ad --- /dev/null +++ b/doc/source/images_src/image_status_transition.png |