My individual user ID / IBMid is member of a large number of IBM Cloud accounts for good reasons. Some of the IBM Cloud accounts got deleted (SUSPENDED>CANCEL_PENDING>CANCELED) but are still shown in Web UI and CLI (ibmcloud account list). This makes is really difficult to deal with the other (active) accounts.
I would propose to filter out any "DELETED" accounts from CLI's "ibmcloud account list" view by default (a.k.a. hide those by default) and to add an option "--show-deleted-accounts" or similar to get a full list.
I would also ask to filter out those "DELETED" accounts from the "Select an account:" prompt after "ibmcloud login" when no "-c" option was specified.
| Idea priority | Medium |
| Needed By | Yesterday (Let's go already!) |
By clicking the "Post Comment" or "Submit Idea" button, you are agreeing to the IBM Ideas Portal Terms of Use.
Do not place IBM confidential, company confidential, or personal information into any field.
The idea turned in "Needs more information" now, but I didn't got any hint about which kind of "more information" is needed. So let me just provide you "more details" without knowing "the question you have" :-).
As of today I'm member of 25 IBM Cloud account and the breakdown looks like:
$ ibmcloud account list | grep -E "ACTIVE|SUSPENDED|CANCEL_PENDING|CANCELED" | cut -c 1-32,85-100 | awk '{print $2}' | sort | uniq -c
12 ACTIVE
6 CANCELED
7 CANCEL_PENDING
My proposal was, that only ACTIVE (12) accounts are shown via "ibmcloud account show" (filtering out SUSPENDED|CANCEL_PENDING|CANCELED) and, if a additional command line option e.g. "--show-deleted-accounts" is used, the "ibmcloud account show --show-deleted-accounts" command lists all the (25) accounts.
$ ibmcloud account list | grep -E "SUSPENDED|CANCEL_PENDING|CANCELED" | cut -c 1-16,85-100 | awk '{print $1 "***hidden*** " $2}' | sort
135422594ccfbd61***hidden*** CANCELED
16cb5af518960ebf***hidden*** CANCEL_PENDING
1f66dbd6d563bb07***hidden*** CANCELED
26b06a6aeb33c605***hidden*** CANCEL_PENDING
3af5d5d572b76adc***hidden*** CANCEL_PENDING
3e1dd72a647f4ec0***hidden*** CANCEL_PENDING
7091ab9e29cf4d49***hidden*** CANCEL_PENDING
825af3fc5fc2287d***hidden*** CANCELED
8856d63916354cb8***hidden*** CANCELED
bdbf73fe9aa4429a***hidden*** CANCELED
c7953cb0cdb443ce***hidden*** CANCEL_PENDING
cdd36becf36e4866***hidden*** CANCEL_PENDING
d6abf1c098c3d305***hidden*** CANCELED
Michael