I'm would like to print all the Analytics Engine instances that I have available to me in my account.
I can print all the organisations and spaces that I have available using:
! pip install --quiet --upgrade git+https://github.com/snowch/ibm-analytics-engine-python@master
Then
from ibm_analytics_engine import CloudFoundryAPI, CloudFoundryAPI
from ibm_analytics_engine import IAE, IAEServicePlanGuid, IAEClusterSpecificationExamples
cf = CloudFoundryAPI(api_key_filename='api_key.json')
iae = IAE(cf_client=cf)
cf.print_orgs_and_spaces()
Outputs:
-------------------------------------------------------------------------
Org: [email protected] 12345-12345-12345678910
> Spc: dev 12345-12345-12345678912
> Spc: test 12345-12345-12345678913
-------------------------------------------------------------------------
Org: [email protected] aaaaa-bbbbb-ccccccccccc
> Spc: dev aaaaa-bbbbb-ccccccccccd
...
How can I also list the clusters in these spaces?
You can do something like this:
Then
The output: