code: def create(gandi, name, datacenter, backend, port, vhost, algorithm,
             ssl_enable, zone_alter, ssl, private_key, poll_cert):
      
      try:
          gandi.datacenter.is_opened(datacenter, 'iaas')
      except DatacenterLimited as exc:
          gandi.echo('/!\ Datacenter %s will be closed on %s, '
                     'please consider using another datacenter.' %
                     (datacenter, exc.date))
  
      backends = backend
      for backend in backends:
          # Check if a port is set for each backend, else set a default port
          if 'port' not in backend:
              if not port:
                  backend['port'] = click.prompt('Please set a port for '
                                                 'backends. If you want to set '
                                                 'different port for each '
                                                 'backend, use `-b ip:port`',
                                                 type=int)
              else:
                  backend['port'] = port
  
      if vhost and not gandi.hostedcert.activate_ssl(vhost,
                                                     ssl,
                                                     private_key,
                                                     poll_cert):
          return
  
      result = gandi.webacc.create(name, datacenter, backends, vhost, algorithm,
                                   ssl_enable, zone_alter)
      return result
docs: Create a webaccelerator