Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Heat API ResourceManager.geretae_template in Python binding

I am looking for a way if in Heat there is anyway you can generate templates based on specifying resource type. For example, from my front end, I get passed on the resource types and the inpout parameters and from that infromation if there is any utility that calls the API to generate the template on the fly.

I am curious if there is any way in HeatAPI that can help. I see there is a function in Heat API called heat.resources.generate_template(self,resource_name). I tried among other things specifying resource type such as "OS::Heat::InstanceGroup" but it seems it is trying to create a url based off of that in '/resource_types/%s/template' % ( urlutils.quote(strutils.safe_encode(resource_name), ''))which gives me a connection error.

Is there any functionality in the Heat Client API that can help me with this?

Python Heat client API ResourceManager.geretae_template in Python bindingResourceManager.geretae_template

I am looking for a way if in Heat there is anyway you can generate templates based on specifying resource type. For example, from my front end, I get passed on the resource types and the inpout parameters and from that infromation if there is any utility that calls the API to generate the template on the fly.

I am curious if there is any way in HeatAPI that can help. I see there is a function in Heat API called heat.resources.generate_template(self,resource_name). I tried among other things specifying resource type such as "OS::Heat::InstanceGroup" but it seems it is trying to create a url based off of that in '/resource_types/%s/template' % ( urlutils.quote(strutils.safe_encode(resource_name), ''))which gives me a connection error.

Is there any functionality in the Heat Client API that can help me with this?