code: def recover(self,runAsync=False):
          
          url = self._url + "/recover"
          params = {
              "f" : "json",
              "runAsync" : runAsync
          }
          return self._post(url=url,
                            param_dict=params,
                            securityHandler=self._securityHandler,
                            proxy_url=self._proxy_url,
                            proxy_port=self._proxy_port)
docs: If the shared configuration store for a site is unavailable, a site
          in read-only mode will operate in a degraded capacity that allows
          access to the ArcGIS Server Administrator Directory. You can recover
          a site if the shared configuration store is permanently lost. The
          site must be in read-only mode, and the site configuration files
          must have been copied to the local repository when switching site
          modes. The recover operation will copy the configuration store from
          the local repository into the shared configuration store location.
          The copied local repository will be from the machine in the site
          where the recover operation is performed.
          Inputs:
             runAsync - default False - Decides if this operation must run
              asynchronously.