code: def ConvertToTemplate(self,visibility,description=None,password=None):
  		
  
  		if visibility not in ('private','shared'):  raise(clc.CLCException("Invalid visibility - must be private or shared"))
  		if not password: password = self.Credentials()['password']
  		if not description:  description = self.description
  
  		return(clc.v2.Requests(clc.v2.API.Call('POST','servers/%s/%s/convertToTemplate' % (self.alias,self.id),
  											   json.dumps({"description": description, "visibility": visibility, "password": password}),
  											   session=self.session),
  							   alias=self.alias,
  							   session=self.session))
docs: Converts existing server to a template.
  
  		visibility is one of private or shared.
  
  		>>> d = clc.v2.Datacenter()
  		>>> clc.v2.Server(alias='BTDI',id='WA1BTDIAPI207').ConvertToTemplate("private","my template")
  		0