Policy configuration

Policy configuration

Configuration

The following is an overview of all available policies in Zun. For a sample configuration file.

zun

context_is_admin
Default:role:admin

(no description provided)

admin_or_owner
Default:is_admin:True or project_id:%(project_id)s

(no description provided)

admin_api
Default:rule:context_is_admin

(no description provided)

container:create
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • POST /v1/containers

Create a new container.

container:delete
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • DELETE /v1/containers/{container_ident}

Delete a container.

container:delete_all_projects
Default:

rule:context_is_admin

Operations:
  • DELETE /v1/containers/{container_ident}

Delete a container from all projects.

container:delete_force
Default:

rule:context_is_admin

Operations:
  • DELETE /v1/containers/{container_ident}

Forcibly delete a container.

container:get_one
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • GET /v1/containers/{container_ident}

Retrieve the details of a specific container.

container:get_one_all_projects
Default:

rule:context_is_admin

Operations:
  • GET /v1/containers/{container_ident}

Retrieve the details of a specific container from all projects.

container:get_all
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • GET /v1/containers

Retrieve the details of all containers.

container:get_all_all_projects
Default:

rule:context_is_admin

Operations:
  • GET /v1/containers

Retrieve the details of all containers across projects.

container:update
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • PATCH /v1/containers/{container_ident}

Update a container.

container:start
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • POST /v1/containers/{container_ident}/start

Start a container.

container:stop
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • POST /v1/containers/{container_ident}/stop

Stop a container.

container:reboot
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • POST /v1/containers/{container_ident}/reboot

Reboot a container.

container:pause
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • POST /v1/containers/{container_ident}/pause

Pause a container.

container:unpause
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • POST /v1/containers/{container_ident}/unpause

Unpause a container.

container:logs
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • GET /v1/containers/{container_ident}/logs

Get the log of a container

container:execute
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • POST /v1/containers/{container_ident}/execute

Execute command in a running container

container:execute_resize
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • POST /v1/containers/{container_ident}/execute_resize

Resize the TTY used by an execute command.

container:kill
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • POST /v1/containers/{container_ident}/kill

Kill a running container

container:rename
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • POST /v1/containers/{container_ident}/rename

Rename a container.

container:attach
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • GET /v1/containers/{container_ident}/attach

Attach to a running container

container:resize
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • POST /v1/containers/{container_ident}/resize

Resize a container.

container:top
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • GET /v1/containers/{container_ident}/top

Display the running processes inside the container.

container:get_archive
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • GET /v1/containers/{container_ident}/get_archive

Get a tar archive of a path of container.

container:put_archive
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • PUT /v1/containers/{container_ident}/put_archive

Put a tar archive to be extracted to a path of container

container:stats
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • GET /v1/containers/{container_ident}/stats

Display the statistics of a container

container:commit
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • POST /v1/containers/{container_ident}/commit

Commit a container

container:add_security_group
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • POST /v1/containers/{container_ident}/add_security_group

Add a security group to a specific container.

container:network_detach
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • POST /v1/containers/{container_ident}/network_detach

Detach a network from a container.

container:network_attach
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • POST /v1/containers/{container_ident}/network_attach

Attach a network from a container.

container:remove_security_group
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • POST /v1/containers/{container_ident}/remove_security_group

Remove security group from a specific container.

image:pull
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • POST /v1/images

Pull an image.

image:get_all
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • GET /v1/images

Print a list of available images.

image:get_one
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • GET /v1/images/{image_id}

Retrieve the details of a specific image.

image:search
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • GET /v1/images/{image_ident}/search

Search an image.

zun-service:delete
Default:

rule:context_is_admin

Operations:
  • DELETE /v1/services

Delete a service.

zun-service:disable
Default:

rule:context_is_admin

Operations:
  • PUT /v1/services/disable

Disable a service.

zun-service:enable
Default:

rule:context_is_admin

Operations:
  • PUT /v1/services/enable

Enable a service.

zun-service:force_down
Default:

rule:context_is_admin

Operations:
  • PUT /v1/services/force_down

Forcibly shutdown a service.

zun-service:get_all
Default:

rule:context_is_admin

Operations:
  • GET /v1/services

Show the status of a service.

host:get_all
Default:

rule:context_is_admin

Operations:
  • GET /v1/hosts

List all compute hosts.

host:get
Default:

rule:context_is_admin

Operations:
  • GET /v1/hosts/{host_ident}

Show the details of a specific compute host.

capsule:create
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • POST /v1/capsules/

Create a capsule

capsule:delete
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • DELETE /v1/capsules/{capsule_ident}

Delete a capsule

capsule:delete_all_projects
Default:

rule:context_is_admin

Operations:
  • DELETE /v1/capsules/{capsule_ident}

Delete a container in any project.

capsule:get
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • GET /v1/capsules/{capsule_ident}

Retrieve the details of a capsule.

capsule:get_one_all_projects
Default:

rule:context_is_admin

Operations:
  • GET /v1/capsules/{capsule_ident}

Retrieve the details of a capsule in any project.

capsule:get_all
Default:

is_admin:True or project_id:%(project_id)s

Operations:
  • GET /v1/capsules/

List all capsules.

capsule:get_all_all_projects
Default:

rule:context_is_admin

Operations:
  • GET /v1/capsules/

List all capsules across projects.

network:attach_external_network
Default:

role:admin

Operations:
  • POST /v1/containers

Attach an unshared external network to a container

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.