(self, status)
Set the SearchIndex status.
Set the SearchIndex status.
Set the SearchIndex status .
def status(self, status):
        """Set the SearchIndex status."""
        resource_url = f'{self.api.api_root}/searchindices/{self.id}/'
        data = {'status': status}
        response = self.api.session.post(resource_url, json=data)

        _ = error.check_return_status(response, logger)
def status ( self , status ) : resource_url = f'{self.api.api_root}/searchindices/{self.id}/' data = { 'status' : status } response = self . api . session . post ( resource_url , json = data ) _ = error . check_return_status ( response , logger )