Bases: object
Check the projects depth in the backend whether exceed the limit.
max_depth (integer) – the limit depth that project depth should not exceed.
the exceeded project’s id or None if no exceeding.
Create a new project.
project_id – This parameter can be ignored.
project (dict) – The new project
Project schema:
type: object
properties:
id:
type: string
name:
type: string
domain_id:
type: [string, null]
description:
type: string
enabled:
type: boolean
parent_id:
type: string
is_domain:
type: boolean
required: [id, name, domain_id]
additionalProperties: true
If the project doesn’t match the schema the behavior is undefined.
The driver can impose requirements such as the maximum length of a field. If these requirements are not met the behavior is undefined.
keystone.exception.Conflict – if the project id already exists or the name already exists for the domain_id.
Delete an existing project.
keystone.exception.ProjectNotFound – if project_id does not exist
Delete a given list of projects.
Deletes a list of projects. Ensures no project on the list exists after it is successfully called. If an empty list is provided, the it is silently ignored. In addition, if a project ID in the list of project_ids is not found in the backend, no exception is raised, but a message is logged.
Get a project by ID.
project_ref
keystone.exception.ProjectNotFound – if project_id does not exist
Get a project by name.
project_ref
keystone.exception.ProjectNotFound – if a project with the project_name does not exist within the domain
Check if a project is a leaf in the hierarchy.
project_id – the driver will check if this project is a leaf in the hierarchy.
keystone.exception.ProjectNotFound – if project_id does not exist
List project ids for the provided list of domain ids.
domain_ids – list of domain ids
a list of project ids owned by the specified domain ids.
This method is used internally by the assignment manager to bulk read a set of project ids given a list of domain ids.
List all parents from a project by its ID.
project_id – the driver will list the parents of this project.
a list of project_refs or an empty list.
keystone.exception.ProjectNotFound – if project_id does not exist
List projects in the system.
hints – filter hints which the driver should implement if at all possible.
a list of project_refs or an empty list.
List all projects acting as domains.
hints – filter hints which the driver should implement if at all possible.
a list of project_refs or an empty list.
List projects for the provided list of ids.
project_ids – list of ids
a list of project_refs.
This method is used internally by the assignment manager to bulk read a set of projects given their ids.
List projects in the domain.
domain_id – the driver MUST only return projects within this domain.
a list of project_refs or an empty list.
List all projects in the subtree of a given project.
project_id – the driver will get the subtree under this project.
a list of project_refs or an empty list
keystone.exception.ProjectNotFound – if project_id does not exist
Update an existing project.
keystone.exception.ProjectNotFound – if project_id does not exist
keystone.exception.Conflict – if project name already exists
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.