用戶(User)
查看用戶列表
keystone user-list
創建用戶
keystone user-create --name <user-name> [--tenant-id <tenant-id>]
[--pass <pass>] [--email <email>]
[--enabled <true|false>]
刪除用戶
keystone user-delete <user-id>
顯示用戶詳細信息
keystone user-get <user-id>
更新用戶的密碼
keystone user-password-update --pass <password> <user-id>
賦予用戶一個角色
keystone user-role-add --user-id <user-id> --role-id <role-id>
[--tenant-id <tenant-id>]
查看用戶的角色
keystone user-role-list
刪除用戶的一個角色
keystone user-role-remove --user-id <user-id> --role-id <role-id>
[--tenant-id <tenant-id>]
更新用戶信息
keystone user-update [--name <user-name>] [--email <email>]
[--enabled <true|false>]
<user-id>
工程(Tenant)
顯示工程列表
keystone tenant-list
創建工程
keystone tenant-create --name <tenant-name>
[--description <tenant-description>]
[--enabled <true|false>]
刪除工程
keystone tenant-delete <tenant-id>
更新工程信息
keystone tenant-update [--name <tenant_name>]
[--description <tenant-description>]
[--enabled <true|false>]
<tenant-id>
顯示工程詳細信息
keystone tenant-get <tenant-id>
角色(Role)
顯示角色列表
keystone role-list
創建角色
keystone role-create --name <role-name>
刪除角色
keystone role-delete <role-id>
顯示角色詳細信息
keystone role-get <role-id>
服務(Service)
顯示服務列表
keystone service-list
創建服務
keystone service-create --name <name> --type <type>
[--description <service-description>]
刪除服務
keystone service-delete <service-id>
顯示服務詳細信息
keystone service-get <service-id>
URL(Endpoint)
顯示Endpoint列表
keystone endpoint-list
創建Endpoint
keystone endpoint-create [--region <endpoint-region>] --service-id
<service-id> [--publicurl <public-url>]
[--adminurl <admin-url>]
[--internalurl <internal-url>]
刪除Endpoint
keystone endpoint-delete <endpoint-id>
顯示Endpoint詳細信息
keystone endpoint-get --service <service-type>
[--endpoint-type <endpoint-type>]
[--attr <service-attribute>] [--value <value>]
Catalog
列出catalog
keystone catalog
兼容亞馬遜 ec2-credentials
查看ec2-credentials列表
keystone ec2-credentials-list
創建ec2-credentials
keystone ec2-credentials-create
刪除ec2-credentials
keystone ec2-credentials-delete
顯示ec2-credentials詳細信息
keystone ec2-credentials-get
顯示當前用戶的token
keystone token-get
發現keystone服務器及其授權協議
keystone discover
Keystone found at http://localhost:5000/v2.0
- supports version v2.0 (beta) here http://localhost:5000/v2.0/
打印所有的命令和選項
keystone bash-completion
wanglong@wanglong-laptop:~/openstack/keystone$ keystone bash-completion
--enabled --tenant_id --value help --region tenant-get --user-id user-list discover ec2-credentials-create --tenant-id user-role-add --pass user-delete tenant-delete endpoint-delete
--service-id --service_id role-create endpoint-create service-create tenant-update --endpoint-type -h user-create --service --description endpoint-list ec2-credentials-delete --role_id
user-role-remove role-get tenant-list ec2-credentials-list user-get --publicurl catalog --user_id user-role-list role-delete --endpoint_type --attr user-update endpoint-get --type
--access ec2-credentials-get --name --internalurl --email role-list user-password-update --help tenant-create token-get --adminurl service-delete service-get service-list --role-id
打印幫助
keystone help