deb-python-openstacksdk/doc/source/users/guides/cluster/policy_type.rst

1.4 KiB

Working with Policy Types

A policy is a template that encodes the information needed for specifying the rules that are checked/enforced before/after certain actions are performed on a cluster. The rules are encoded in a property named spec.

List Policy Types

To examine the known policy types:

../../examples/cluster/policy_type.py

Full example: manage policy type

Get Policy Type

To retrieve the details about a policy type, you need to provide the name of it.

../../examples/cluster/policy_type.py

Full example: manage policy type