From e69ec61aa611ab2490a4b9d3e3d06c5a9498e893 Mon Sep 17 00:00:00 2001 From: Yanis Guenane Date: Mon, 9 Dec 2013 00:08:07 +0000 Subject: [PATCH] Adding missing copy_from policy from policy.json The current policy.json file is missing the copy_from policy in order to be exhaustive. DocImpact Change-Id: Ibc0d1fa7626629c28c514514a985a6b89db2ac69 Closes-bug: #1258999 --- doc/source/policies.rst | 5 +++++ etc/policy.json | 1 + glance/tests/etc/policy.json | 1 + 3 files changed, 7 insertions(+) diff --git a/doc/source/policies.rst b/doc/source/policies.rst index aa1d66c0fe..3aacdb4e9a 100644 --- a/doc/source/policies.rst +++ b/doc/source/policies.rst @@ -56,6 +56,11 @@ The actions that may have a rule enforced on them are: * ``PUT /v1/images/`` * ``PUT /v2/images//file`` +* ``copy_from`` - Copy binary image data from URL + + * ``POST /v1/images`` + * ``PUT /v1/images/`` + * ``add_image`` - Create an image entity * ``POST /v1/images`` diff --git a/etc/policy.json b/etc/policy.json index 310679a2de..d8f0a78cb6 100644 --- a/etc/policy.json +++ b/etc/policy.json @@ -8,6 +8,7 @@ "get_images": "", "modify_image": "", "publicize_image": "", + "copy_from": "", "download_image": "", "upload_image": "", diff --git a/glance/tests/etc/policy.json b/glance/tests/etc/policy.json index 4d27cdc385..851a2b752c 100644 --- a/glance/tests/etc/policy.json +++ b/glance/tests/etc/policy.json @@ -9,6 +9,7 @@ "get_images": "", "modify_image": "", "publicize_image": "", + "copy_from": "", "download_image": "", "upload_image": "",