查看所有租戶
openstack project list
創(chuàng)建租戶
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
創(chuàng)建用戶
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
創(chuàng)建角色
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