How to prevent instance terminate/delete by user roles. Only admin can terminate/delete instance.

asked 2017-05-29 03:12:45 -0500

rambilas gravatar image

User should be able to create instances, but not able to delete. only admin can delete instance.

edit retag flag offensive close merge delete


Each service has its policies stored in a json file (/etc/nova/policy.json), you can edit the policies to your needs. The default is like this:

"os_compute_api:servers:delete": "rule:admin_or_owner"
"os_compute_api:servers:create": "rule:admin_or_owner"
eblock gravatar imageeblock ( 2017-05-30 09:58:12 -0500 )edit