查看所有租户
openstack project list
创建租户
openstack project create --description 'Admin Project' Admin
删除租户
openstack project delete PROJECT_ID
禁用/启用租户
openstack project set PROJECT_ID --disable/enable
更新租户名称
openstack project set PROJECT_ID --name project-new
查看租户信息
openstack project show PROJECT_ID
查看所有用户
openstack user list
创建用户
openstack user create --domain default ---assword-prompt USER_NAME
删除用户
openstack user delete USER_NAME
禁用/启用用户
openstack user set USER_NAME --disable/enable
更新用户名称
openstack user set USER_NAME --name user-new
查看所有角色
openstack role list
创建角色
openstack role create new-role
分配角色
openstack project list
openstack user list
openstack role list
openstack role add --user USER_NAME --project TENANT_ID ROLE_NAME
删除角色
openstack role remove --user USER_NAME --project TENANT_ID ROLE_NAME