code: def create_datacenter(datacenter_name, service_instance=None):
      '''
      Creates a datacenter.
  
      Supported proxies: esxdatacenter
  
      datacenter_name
          The datacenter name
  
      service_instance
          Service instance (vim.ServiceInstance) of the vCenter.
          Default is None.
  
      .. code-block:: bash
  
          salt '*' vsphere.create_datacenter dc1
      '''
      salt.utils.vmware.create_datacenter(service_instance, datacenter_name)
      return {'create_datacenter': Truef create_datacenter(datacenter_name, service_instance=None):
      '''
      Creates a datacenter.
  
      Supported proxies: esxdatacenter
  
      datacenter_name
          The datacenter name
  
      service_instance
          Service instance (vim.ServiceInstance) of the vCenter.
          Default is None.
  
      .. code-block:: bash
  
          salt '*' vsphere.create_datacenter dc1
      '''
      salt.utils.vmware.create_datacenter(service_instance, datacenter_name)
      return {'create_datacenter': True}
docs: Creates a datacenter.
  
      Supported proxies: esxdatacenter
  
      datacenter_name
          The datacenter name
  
      service_instance
          Service instance (vim.ServiceInstance) of the vCenter.
          Default is None.
  
      .. code-block:: bash
  
          salt '*' vsphere.create_datacenter dc1