官术网_书友最值得收藏!

Viewing all the members in a domain using rhc

There may be a situation when you want to view all the members in a domain. If so, you should follow this recipe.

Getting ready

To complete this recipe, you will need to have rhc installed on your machine. Please refer to the Installing the OpenShift rhc command-line client recipe in Chapter 1, Getting Started with OpenShift, for instructions.

You will need two OpenShift accounts to work through this recipe. Please refer to the Creating an OpenShift Online account recipe in Chapter 1, Getting Started with OpenShift, for OpenShift account registration instructions.

How to do it…

To view all the members added to the osbook domain, run the following command:

$ rhc list-member --namespace osbook

How it works…

The result of the rhc list-member command is shown as follows:

Login Role
--------------------------------- -------------
openshift.cookbook@gmail.com admin (owner)
openshift.cookbook.test@gmail.com admin

The rhc list-member command makes a GET request to fetch all the information about the osbook domain. The rhc client then parses the JSON response and shows the relevant information to the user.

There's more…

You can also use a shortcut command to fetch all the members in a domain:

$ rhc members --namespace osbook

See also

  • The Adding viewer members to a domain using rhc recipe
  • The Adding an admin member to a domain using rhc recipe
  • The Viewing all the members in a domain using rhc recipe
主站蜘蛛池模板: 峨眉山市| 阿坝县| 太保市| 高淳县| 肥西县| 禹城市| 乌兰察布市| 庄河市| 巴彦淖尔市| 四子王旗| 神木县| 大埔县| 准格尔旗| 石屏县| 七台河市| 阿坝县| 横山县| 寿阳县| 永康市| 仁化县| 曲麻莱县| 富锦市| 南充市| 喀什市| 陵川县| 左权县| 栾川县| 广安市| 永州市| 老河口市| 会东县| 新宾| 察隅县| 容城县| 米脂县| 南城县| 广德县| 平顺县| 体育| 绥江县| 乐清市|