def search(self, lookback_h=<NUM_LIT:12>, owner=None, state="<STR_LIT:all>"):
postdata = {<EOL>"<STR_LIT>": lookback_h,<EOL>"<STR_LIT:state>": state<EOL>}<EOL>if owner is not None:<EOL><INDENT>postdata['<STR_LIT>'] = owner<EOL><DEDENT>url = "<STR_LIT>".format(self.base_url)<EOL>headers = {'<STR_LIT:Content-Type>':'<STR_LIT:application/json>'}<EOL>r = self.gbdx_connection.post(url, headers=headers, data=json.dumps(postdata))<EOL>return r.json()<EOL>
Cancels GBDX batch workflow.

         Params:
            lookback_h (int): Look back time in hours.
            owner (str): Workflow owner to search by
            state (str): State to filter by, eg:
                "submitted",
                "scheduled",
                "started",
                "canceled",
                "cancelling",
                "failed",
                "succeeded",
                "timedout",
                "pending",
                "running",
                "complete",
                "waiting",
                "all"

         Returns:
             Batch Workflow status (str).