- OpenShift Cookbook
- Shekhar Gulati
- 293字
- 2021-08-05 17:37:40
Removing members from a domain using rhc
Let's suppose you are a system admin and suddenly your application starts behaving weird. You looked at the logs but you were not able to understand them. To fix this issue, you had to give a developer access to look at the logs. The developer was able to understand the problem, and now you want to remove the developer membership.
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 remove the openshift.cookbook.test@gmail.com
user from the osbook
domain of <openshift.cookbook@gmail.com>
, run the following command:
$ rhc remove-member openshift.cookbook.test@gmail.com --namespace osbook
How it works…
The rhc member-remove
command does two things:
- It removes the
openshift.cookbook.test@gmail.com
public SSH key from the authorized keys registry so thatopenshift.cookbook.test@gmail.com
can't perform SSH operations such asgit clone
and SSH into application gears. - It removes the
openshift.cookbooktest@gmail.com
member from theosbook
domain.
You can verify that openshift.cookbook.test@gmail.com
is removed from the members' list by inserting the following command:
$ rhc members --namespace osbook Login Role ---------------------------- ------------- openshift.cookbook@gmail.com admin (owner)
There's more…
You can remove all the members from a domain by using the --all
flag:
$ rhc remove-member --all --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
- 廣電5G從入門到精通
- 黑客攻防實戰技術完全手冊:掃描、嗅探、入侵與防御
- 物聯網工程規劃技術
- 物聯網識別技術
- GPS/GNSS原理與應用(第3版)
- Spring Boot 2.0 Projects
- 2018網信發展報告
- SSL VPN : Understanding, evaluating and planning secure, web/based remote access
- Spring 5.0 Projects
- 基于性能的保障理論與方法
- React Cookbook
- 高級網絡技術
- 現場綜合化網絡運營與維護:運營商數字化轉型技術與實踐
- 區塊鏈技術與應用:打造分布式商業新生態
- React Design Patterns and Best Practices(Second Edition)