def _get_device_data(self, armis_link_suffix, parameter):
        """Get_device_data is used to get data using api.

        Args:
            self: Armis object.
            armis_link_suffix (String): will be containing the other part of link.
            parameter (json): will contain the json data to sends to parameter to get data from REST API.

        """
        try:
            for i in range(MAX_RETRY + 1):
                response = requests.get(
                    (self._link + armis_link_suffix),
                    params=parameter,
                    headers=self._header,
                )
                if response.status_code == 200:
                    logging.info("Armis Device Connector: Status Code : 200")
                    results = response.json()

                    return self.process_successful_data(results)

                elif response.status_code == 400:
                    logging.error(
                        "Armis Device Connector: Status Code : 400, Error: {}".format(
                            HTTP_ERRORS[400]
                        )
                    )
                    raise ArmisException(HTTP_ERRORS[400])

                elif response.status_code == 401:
                    logging.info(
                        "Armis Device Connector: Retry number: {}".format(str(i + 1))
                    )
                    logging.error(
                        "Armis Device Connector: Status Code : 401, Error: {}".format(
                            HTTP_ERRORS[401]
                        )
                    )
                    self.compare_access_token()
                    continue
                else:
                    raise ArmisException(
                        "Armis Device Connector: Error while fetching data. status Code:{} error message:{}.".format(
                            response.status_code, response.text
                        )
                    )
            logging.error("Armis Device Connector: Max retry reached.")
            raise ArmisException("Armis Device Connector: Max retry reached.")

        except requests.exceptions.ConnectionError:
            logging.error(ERROR_MESSAGES["HOST_CONNECTION_ERROR"])
            raise ArmisException(
                "Armis Device Connector: Connection error while getting data from device api."
            )

        except requests.exceptions.RequestException as request_err:
            logging.error(request_err)
            raise ArmisException(
                "Armis Device Connector: Request error while getting data from Device api."
            )

        except ArmisException as err:
            logging.error(err)
            raise ArmisException(
                "Armis Device Connector: Error while getting data from device api."
            )

        except ArmisDataNotFoundException:
            raise ArmisDataNotFoundException()
Get_device_data is used to get data using api.

        Args:
            self: Armis object.
            armis_link_suffix (String): will be containing the other part of link.
            parameter (json): will contain the json data to sends to parameter to get data from REST API.

        
Solutions/Armis/Data Connectors/ArmisDevice/ArmisDeviceSentinelConnector/__init__.py