The Project class inherits from Resource.
openstack.identity.v3.project.Project(_synchronized=False, **attrs)¶The base resource
| Parameters: | _synchronized (bool) – This is not intended to be used directly.
See new() and
existing(). |
|---|
description = None¶The description of the project. Type: string
domain_id = None¶References the domain ID which owns the project; if a domain ID is not specified by the client, the Identity service implementation will default it to the domain ID to which the client’s token is scoped. Type: string
is_domain = None¶Indicates whether the project also acts as a domain. If set to True, the project acts as both a project and a domain. Default is False. New in version 3.6
is_enabled = None¶Setting this attribute to False prevents users from authorizing
against this project. Additionally, all pre-existing tokens authorized
for the project are immediately invalidated. Re-enabling a project
does not re-enable pre-existing tokens. Type: bool
name = None¶Unique project name, within the owning domain. Type: string
parent_id = None¶The ID of the parent of the project. New in version 3.4
assign_role_to_user(session, user, role)¶Assign role to user on project
validate_user_has_role(session, user, role)¶Validates that a user has a role on a project
unassign_role_from_user(session, user, role)¶Unassigns a role from a user on a project
assign_role_to_group(session, group, role)¶Assign role to group on project
validate_group_has_role(session, group, role)¶Validates that a group has a role on a project
unassign_role_from_group(session, group, role)¶Unassigns a role from a group on a project
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.