找回密码
 注册
查看: 4411|回复: 0

keystone tenant-get 获取用户的用户名

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2019-3-7 17:02:56 | 显示全部楼层 |阅读模式
通过tenant-id获取用户相关的信息
3 ~8 B. H* m7 H+ Hkeystone tenant-get 405747cdb1b54d7589d7f3c1d0d8b83d
; P; L" G6 R0 S3 w/usr/lib/python2.7/site-packages/keystoneclient/shell.py:65: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
6 d7 P) X, [- V- i: t& W  'python-keystoneclient.', DeprecationWarning)
! F1 k! u: {$ J, z5 g! k4 m+-------------+----------------------------------+
2 D4 b" j7 h% n5 s& \|   Property  |              Value               |- `1 m' m; e1 j9 C# w) A8 {
+-------------+----------------------------------+$ h( y! `7 `; M* _
| description |            new tenant            |
% N' J" I. |5 a0 J; X9 M|   enabled   |               True               |
7 D  ?- J1 w3 I% Z. e* f# F|      id     | 405747cdb1b54d7589d7f3c1d0d8b83d |! ]  F4 j6 Q8 y
|     name    |           13100907            |
. j1 w: S7 I# E. }+-------------+----------------------------------++ g& G. D+ s  z1 p: n$ P% I
不存在的用户
7 R- n6 w6 G, Z& k, ]& nkeystone tenant-get b1f9f45c921946a09b918e48958ade34" b5 a; T+ s! M6 B; F! J4 _
/usr/lib/python2.7/site-packages/keystoneclient/shell.py:65: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.. {! R) i1 r! o+ ?
  'python-keystoneclient.', DeprecationWarning)2 U. |( d; Y9 L
No tenant with a name or ID of 'b1f9f45c921946a09b918e48958ade34' exists.0 Q, |5 U; T$ Q/ B5 s4 P$ V# Y
You have new mail in /var/spool/mail/deployer
( R8 E# _8 }* E, E' K7 d0 L* i
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 03:34 , Processed in 0.015332 second(s), 21 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表