当前位置: 首页>>代码示例>>Python>>正文


Python Cluster.cluster_get_details_list方法代码示例

本文整理汇总了Python中cluster.Cluster.cluster_get_details_list方法的典型用法代码示例。如果您正苦于以下问题:Python Cluster.cluster_get_details_list方法的具体用法?Python Cluster.cluster_get_details_list怎么用?Python Cluster.cluster_get_details_list使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在cluster.Cluster的用法示例。


在下文中一共展示了Cluster.cluster_get_details_list方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: vcenterdatacenter_get_clusters

# 需要导入模块: from cluster import Cluster [as 别名]
# 或者: from cluster.Cluster import cluster_get_details_list [as 别名]
    def vcenterdatacenter_get_clusters(self, label, vcenter, tenantname, xml=False):
        '''
        Makes a REST API call to retrieve details of a vcenterdatacenter  based on its UUID
        '''
        uri = self.vcenterdatacenter_query(label, vcenter, tenantname)

        (s, h) = common.service_json_request(self.__ipAddr, self.__port, "GET", 
                                             VcenterDatacenter.URI_DATACENTER_CLUSTERS.format(uri),
                                             None, None, xml)

        o = common.json_decode(s)

        from cluster import Cluster
        obj = Cluster(self.__ipAddr, self.__port)

        dtlslst = obj.cluster_get_details_list(o['cluster'])

	return dtlslst
开发者ID:tylerbaker,项目名称:controller-openstack-cinder,代码行数:20,代码来源:vcenterdatacenter.py

示例2: vcenter_get_clusters

# 需要导入模块: from cluster import Cluster [as 别名]
# 或者: from cluster.Cluster import cluster_get_details_list [as 别名]
    def vcenter_get_clusters(self, label, tenantname, xml=False):
        """
        Makes a REST API call to retrieve details of all clusters associated with a vcenter
        """

        uri = self.vcenter_query(label, tenantname)

        (s, h) = common.service_json_request(
            self.__ipAddr, self.__port, "GET", VCenter.URI_VCENTER_CLUSTERS.format(uri), None, None, xml
        )

        o = common.json_decode(s)

        from cluster import Cluster

        obj = Cluster(self.__ipAddr, self.__port)

        dtlslst = obj.cluster_get_details_list(o["cluster"])

        return dtlslst
开发者ID:uemurs,项目名称:controller-openstack-cinder,代码行数:22,代码来源:vcenter.py

示例3: tenant_get_clusters

# 需要导入模块: from cluster import Cluster [as 别名]
# 或者: from cluster.Cluster import cluster_get_details_list [as 别名]
    def tenant_get_clusters(self, label, xml=False):
        """
        Makes a REST API call to retrieve details of a tenant based on its UUID
        """
        if label:
            id = self.tenant_query(label)
        else:
            id = self.tenant_getid()

        (s, h) = common.service_json_request(
            self.__ipAddr, self.__port, "GET", Tenant.URI_TENANT_CLUSTERS.format(id), None, None, xml
        )

        o = common.json_decode(s)

        from cluster import Cluster

        obj = Cluster(self.__ipAddr, self.__port)

        dtlslst = obj.cluster_get_details_list(o["cluster"])

        return dtlslst
开发者ID:seagle0128,项目名称:coprhd-controller,代码行数:24,代码来源:tenant.py


注:本文中的cluster.Cluster.cluster_get_details_list方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。