示例#1
0
	def getVDC(self):
		"""
		Retrieve XML representation of the organization

		"""
		url = xml_helper.getHref(self.getOrganisation(),'vdc')
		headers = rest_helper.buildHeaders(Accept="application/*+xml;version=5.11",x_vcloud_authorization=self.xvcloud_authorization)
		response = requests.get(url, headers=headers)
		return response.content
示例#2
0
    def getVDC(self):
        """
		Retrieve XML representation of the organization

		"""
        url = xml_helper.getHref(self.getOrganisation(), 'vdc')
        headers = rest_helper.buildHeaders(
            Accept="application/*+xml;version=5.11",
            x_vcloud_authorization=self.xvcloud_authorization)
        response = requests.get(url, headers=headers)
        return response.content
示例#3
0
 def getVappTemplate(self):
     return xml_helper.getHref(self.getVDC(),
                               'instantiateVAppTemplateParams')
示例#4
0
	def getVappTemplate(self):
		return xml_helper.getHref(self.getVDC(),'instantiateVAppTemplateParams')