catalog: keystone catalog 能夠顯示全部已有的service keystone catalog --service service-type 顯示某個service信息 endpoint: endpoint-create Create a new endpoint associated with a service endpoint-delete Delete a service endpoint endpoint-get endpoint-list List configured service endpoints keystone help endpoint-create --region <endpoint-region> Endpoint region region表示不一樣的範圍,相似c++中命名空間,把服務「隔離「。 --service-id <service-id>, --service_id <service-id> ID of service associated with Endpoint --publicurl <public-url> Public URL endpoint --adminurl <admin-url> Admin URL endpoint --internalurl <internal-url> Internal URL endpoint keystone help endpoint-get --service <service-type> Service type to select --endpoint-type <endpoint-type> Endpoint type to select # adminurl,publicurl,internalurl --attr <service-attribute> Service attribute to match for selection --value <value> Value of attribute to match role:指定一個名字就ok,建立role後,根據policy文件去決定具備那些訪問權限。由SA去分配和管理。 role-create Create new role role-delete Delete role role-get Display role details role-list List all roles service,即服務,給catalog添加service。 service-create Add service to Service Catalog service-delete Delete service from Service Catalog service-get Display service from Service Catalog service-list List all services in Service Catalog --name <name> Name of new service (must be unique) --type <type> Service type (one of: identity, compute, network, image, or object-store) --description <service-description> Description of service tenant,即資源。 tenant-create Create new tenant tenant-delete Delete tenant tenant-get Display tenant details tenant-list List all tenants tenant-update Update tenant name, description, enabled status keystone help tenant-create --name <tenant-name> New tenant name (must be unique) --description <tenant-description> Description of new tenant (default is none) --enabled <true|false> Initial tenant enabled status (default true) user,即用戶,訪問api或資源的抽象體。 user-create Create new user user-delete Delete user user-get Display user details. user-list List users user-password-update Update user password keystone help user-create --name <user-name> New user name (must be unique) --tenant-id <tenant-id> # 能夠不指定,推遲經過user-role-add關聯到某個tenant New user default tenant --pass <pass> New user password --email <email> New user email address --enabled <true|false> Initial user enabled status (default true) keystone help user-list --tenant-id <tenant-id> Tenant ID; lists all users if not specified keystone help user-role-add --user-id <user-id>, --user_id <user-id> User ID --role-id <role-id>, --role_id <role-id> Role ID --tenant-id <tenant-id> Tenant ID keystone help user-role-list 查看推遲關聯的user對應的tenant信息 --user-id <user-id> List roles granted to a user --tenant-id <tenant-id> List roles granted on a tenant keystone help user-role-remove --user-id <user-id>, --user_id <user-id> User ID --role-id <role-id>, --role_id <role-id> Role ID --tenant-id <tenant-id> Tenant ID 注意:update 是分開的。 user-password-update: update password user-update :Update user's name, email, and enabled status