Placement Policies¶
Warning
JSON formatted policy file is deprecated since Placement 5.0.0 (Wallaby). The oslopolicy-convert-json-to-yaml tool will migrate your existing JSON-formatted policy file to YAML in a backward-compatible way.
The following is an overview of all available policies in Placement. For a sample configuration file, refer to Sample Placement Policy File.
placement¶
admin_api
- Default
role:admin
- Scope Types
system
Default rule for most placement APIs.
placement:resource_providers:list
- Default
role:reader and system_scope:all
- Operations
GET
/resource_providers
- Scope Types
system
List resource providers.
placement:resource_providers:create
- Default
role:admin and system_scope:all
- Operations
POST
/resource_providers
- Scope Types
system
Create resource provider.
placement:resource_providers:show
- Default
role:reader and system_scope:all
- Operations
GET
/resource_providers/{uuid}
- Scope Types
system
Show resource provider.
placement:resource_providers:update
- Default
role:admin and system_scope:all
- Operations
PUT
/resource_providers/{uuid}
- Scope Types
system
Update resource provider.
placement:resource_providers:delete
- Default
role:admin and system_scope:all
- Operations
DELETE
/resource_providers/{uuid}
- Scope Types
system
Delete resource provider.
placement:resource_classes:list
- Default
role:reader and system_scope:all
- Operations
GET
/resource_classes
- Scope Types
system
List resource classes.
placement:resource_classes:create
- Default
role:admin and system_scope:all
- Operations
POST
/resource_classes
- Scope Types
system
Create resource class.
placement:resource_classes:show
- Default
role:reader and system_scope:all
- Operations
GET
/resource_classes/{name}
- Scope Types
system
Show resource class.
placement:resource_classes:update
- Default
role:admin and system_scope:all
- Operations
PUT
/resource_classes/{name}
- Scope Types
system
Update resource class.
placement:resource_classes:delete
- Default
role:admin and system_scope:all
- Operations
DELETE
/resource_classes/{name}
- Scope Types
system
Delete resource class.
placement:resource_providers:inventories:list
- Default
role:reader and system_scope:all
- Operations
GET
/resource_providers/{uuid}/inventories
- Scope Types
system
List resource provider inventories.
placement:resource_providers:inventories:create
- Default
role:admin and system_scope:all
- Operations
POST
/resource_providers/{uuid}/inventories
- Scope Types
system
Create one resource provider inventory.
placement:resource_providers:inventories:show
- Default
role:reader and system_scope:all
- Operations
GET
/resource_providers/{uuid}/inventories/{resource_class}
- Scope Types
system
Show resource provider inventory.
placement:resource_providers:inventories:update
- Default
role:admin and system_scope:all
- Operations
PUT
/resource_providers/{uuid}/inventories
PUT
/resource_providers/{uuid}/inventories/{resource_class}
- Scope Types
system
Update resource provider inventory.
placement:resource_providers:inventories:delete
- Default
role:admin and system_scope:all
- Operations
DELETE
/resource_providers/{uuid}/inventories
DELETE
/resource_providers/{uuid}/inventories/{resource_class}
- Scope Types
system
Delete resource provider inventory.
placement:resource_providers:aggregates:list
- Default
role:reader and system_scope:all
- Operations
GET
/resource_providers/{uuid}/aggregates
- Scope Types
system
List resource provider aggregates.
placement:resource_providers:aggregates:update
- Default
role:admin and system_scope:all
- Operations
PUT
/resource_providers/{uuid}/aggregates
- Scope Types
system
Update resource provider aggregates.
placement:resource_providers:usages
- Default
role:reader and system_scope:all
- Operations
GET
/resource_providers/{uuid}/usages
- Scope Types
system
List resource provider usages.
placement:usages
- Default
(role:reader and system_scope:all) or (role:reader and project_id:%(project_id)s)
- Operations
GET
/usages
- Scope Types
system
project
List total resource usages for a given project.
placement:traits:list
- Default
role:reader and system_scope:all
- Operations
GET
/traits
- Scope Types
system
List traits.
placement:traits:show
- Default
role:reader and system_scope:all
- Operations
GET
/traits/{name}
- Scope Types
system
Show trait.
placement:traits:update
- Default
role:admin and system_scope:all
- Operations
PUT
/traits/{name}
- Scope Types
system
Update trait.
placement:traits:delete
- Default
role:admin and system_scope:all
- Operations
DELETE
/traits/{name}
- Scope Types
system
Delete trait.
placement:resource_providers:traits:list
- Default
role:reader and system_scope:all
- Operations
GET
/resource_providers/{uuid}/traits
- Scope Types
system
List resource provider traits.
placement:resource_providers:traits:update
- Default
role:admin and system_scope:all
- Operations
PUT
/resource_providers/{uuid}/traits
- Scope Types
system
Update resource provider traits.
placement:resource_providers:traits:delete
- Default
role:admin and system_scope:all
- Operations
DELETE
/resource_providers/{uuid}/traits
- Scope Types
system
Delete resource provider traits.
placement:allocations:manage
- Default
role:admin and system_scope:all
- Operations
POST
/allocations
- Scope Types
system
Manage allocations.
placement:allocations:list
- Default
role:reader and system_scope:all
- Operations
GET
/allocations/{consumer_uuid}
- Scope Types
system
List allocations.
placement:allocations:update
- Default
role:admin and system_scope:all
- Operations
PUT
/allocations/{consumer_uuid}
- Scope Types
system
Update allocations.
placement:allocations:delete
- Default
role:admin and system_scope:all
- Operations
DELETE
/allocations/{consumer_uuid}
- Scope Types
system
Delete allocations.
placement:resource_providers:allocations:list
- Default
role:reader and system_scope:all
- Operations
GET
/resource_providers/{uuid}/allocations
- Scope Types
system
List resource provider allocations.
placement:allocation_candidates:list
- Default
role:reader and system_scope:all
- Operations
GET
/allocation_candidates
- Scope Types
system
List allocation candidates.
placement:reshaper:reshape
- Default
role:admin and system_scope:all
- Operations
POST
/reshaper
- Scope Types
system
Reshape Inventory and Allocations.