本文整理汇总了Python中bioblend.cloudman.launch.CloudManLauncher.get_clusters_pd方法的典型用法代码示例。如果您正苦于以下问题:Python CloudManLauncher.get_clusters_pd方法的具体用法?Python CloudManLauncher.get_clusters_pd怎么用?Python CloudManLauncher.get_clusters_pd使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类bioblend.cloudman.launch.CloudManLauncher
的用法示例。
在下文中一共展示了CloudManLauncher.get_clusters_pd方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: fetch_clusters
# 需要导入模块: from bioblend.cloudman.launch import CloudManLauncher [as 别名]
# 或者: from bioblend.cloudman.launch.CloudManLauncher import get_clusters_pd [as 别名]
def fetch_clusters(cloud, a_key, s_key):
"""
Given a cloud object and appropriate credentials, retrieve a list of
clusters associated with the given account. Return a dict of clusters'
persistent data.
"""
cml = CloudManLauncher(a_key, s_key, cloud)
return cml.get_clusters_pd()
示例2: get_cluster_pd
# 需要导入模块: from bioblend.cloudman.launch import CloudManLauncher [as 别名]
# 或者: from bioblend.cloudman.launch.CloudManLauncher import get_clusters_pd [as 别名]
def get_cluster_pd(a_key, s_key):
cloud = Bunch(id='-1',
name="NeCTAR",
cloud_type='openstack',
bucket_default='cloudman-os',
region_name='NeCTAR',
region_endpoint='nova.rc.nectar.org.au',
ec2_port=8773,
ec2_conn_path='/services/Cloud',
cidr_range='115.146.92.0/22',
is_secure=True,
s3_host='swift.rc.nectar.org.au',
s3_port=8888,
s3_conn_path='/')
cml = CloudManLauncher(a_key, s_key, cloud)
return cml.get_clusters_pd()