我想打印我帐户中可用的所有分析引擎实例。
我可以使用以下方式打印所有可用的组织和空间:
! pip install --quiet --upgrade git+https://github.com/snowch/ibm-analytics-engine-python@master
然后
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()
输出:
-------------------------------------------------------------------------
Org: me@me.com 12345-12345-12345678910
> Spc: dev 12345-12345-12345678912
> Spc: test 12345-12345-12345678913
-------------------------------------------------------------------------
Org: them@them.com aaaaa-bbbbb-ccccccccccc
> Spc: dev aaaaa-bbbbb-ccccccccccd
...
我怎样才能列出这些空间中的集群?