def get_and_ingest_account_entities(self):
        """To get and ingest host and account entities data."""
        __method_name = inspect.currentframe().f_code.co_name
        self.validate_params(
            "ACCOUNT_ENTITY_CLIENT_ID",
            "ACCOUNT_ENTITY_CLIENT_SECRET",
        )
        self.applogger.info(
            "{}(method={}) : {} : Parameter validation successful.".format(
                consts.LOGS_STARTS_WITH,
                __method_name,
                consts.ACCOUNT_ENTITIES_NAME,
            )
        )
        self.validate_connection()
        self.applogger.info(
            "{}(method={}) : {} : Established connection with Vectra successfully.".format(
                consts.LOGS_STARTS_WITH,
                __method_name,
                consts.ACCOUNT_ENTITIES_NAME,
            )
        )
        checkpoint = self.get_entities_checkpoint(self.state)
        self.pull_and_push_entities_data(
            consts.ENTITIES_ENDPOINT,
            checkpoint,
            self.entities_table_name,
            "account",
            self.state,
        )
To get and ingest host and account entities data.
Solutions/Vectra XDR/Data Connectors/VectraDataConnector/AccountEntities/account_entity_collector.py