| @@ 860-885 (lines=26) @@ | ||
| 857 | ||
| 858 | return self._send_xml_command(cmd) |
|
| 859 | ||
| 860 | def get_tls_certificate(self, tls_certificate_id: str) -> Any: |
|
| 861 | """Request a single TLS certificate |
|
| 862 | ||
| 863 | Arguments: |
|
| 864 | tls_certificate_id: UUID of an existing TLS certificate |
|
| 865 | ||
| 866 | Returns: |
|
| 867 | The response. See :py:meth:`send_command` for details. |
|
| 868 | """ |
|
| 869 | cmd = XmlCommand("get_tls_certificates") |
|
| 870 | ||
| 871 | if not tls_certificate_id: |
|
| 872 | raise RequiredArgument( |
|
| 873 | function=self.get_tls_certificate.__name__, |
|
| 874 | argument='tls_certificate_id', |
|
| 875 | ) |
|
| 876 | ||
| 877 | cmd.set_attribute("tls_certificate_id", tls_certificate_id) |
|
| 878 | ||
| 879 | # for single tls certificate always request cert data |
|
| 880 | cmd.set_attribute("include_certificate_data", "1") |
|
| 881 | ||
| 882 | # for single entity always request all details |
|
| 883 | cmd.set_attribute("details", "1") |
|
| 884 | ||
| 885 | return self._send_xml_command(cmd) |
|
| 886 | ||
| 887 | def modify_alert( |
|
| 888 | self, |
|
| @@ 981-1006 (lines=26) @@ | ||
| 978 | ||
| 979 | return self._send_xml_command(cmd) |
|
| 980 | ||
| 981 | def get_tls_certificate(self, tls_certificate_id: str) -> Any: |
|
| 982 | """Request a single TLS certificate |
|
| 983 | ||
| 984 | Arguments: |
|
| 985 | tls_certificate_id: UUID of an existing TLS certificate |
|
| 986 | ||
| 987 | Returns: |
|
| 988 | The response. See :py:meth:`send_command` for details. |
|
| 989 | """ |
|
| 990 | cmd = XmlCommand("get_tls_certificates") |
|
| 991 | ||
| 992 | if not tls_certificate_id: |
|
| 993 | raise RequiredArgument( |
|
| 994 | function=self.get_tls_certificate.__name__, |
|
| 995 | argument='tls_certificate_id', |
|
| 996 | ) |
|
| 997 | ||
| 998 | cmd.set_attribute("tls_certificate_id", tls_certificate_id) |
|
| 999 | ||
| 1000 | # for single tls certificate always request cert data |
|
| 1001 | cmd.set_attribute("include_certificate_data", "1") |
|
| 1002 | ||
| 1003 | # for single entity always request all details |
|
| 1004 | cmd.set_attribute("details", "1") |
|
| 1005 | ||
| 1006 | return self._send_xml_command(cmd) |
|
| 1007 | ||
| 1008 | def modify_alert( |
|
| 1009 | self, |
|