|
@@ 2690-2722 (lines=33) @@
|
| 2687 |
|
|
| 2688 |
|
return self._send_xml_command(cmd) |
| 2689 |
|
|
| 2690 |
|
def get_overrides(self, *, filter=None, filter_id=None, nvt_oid=None, |
| 2691 |
|
task_id=None, details=None, result=None): |
| 2692 |
|
"""Request a list of overrides |
| 2693 |
|
|
| 2694 |
|
Arguments: |
| 2695 |
|
filter (str, optional): Filter term to use for the query |
| 2696 |
|
filter_id (str, optional): UUID of an existing filter to use for |
| 2697 |
|
the query |
| 2698 |
|
nvt_oid (str, optional): OID of a nvt |
| 2699 |
|
task_id (str, optional): UUID of a task |
| 2700 |
|
details (boolean, optional): |
| 2701 |
|
result (boolean, optional): |
| 2702 |
|
|
| 2703 |
|
Returns: |
| 2704 |
|
The response. See :py:meth:`send_command` for details. |
| 2705 |
|
""" |
| 2706 |
|
cmd = XmlCommand('get_overrides') |
| 2707 |
|
|
| 2708 |
|
_add_filter(cmd, filter, filter_id) |
| 2709 |
|
|
| 2710 |
|
if nvt_oid: |
| 2711 |
|
cmd.set_attribute('nvt_oid', nvt_oid) |
| 2712 |
|
|
| 2713 |
|
if task_id: |
| 2714 |
|
cmd.set_attribute('task_id', task_id) |
| 2715 |
|
|
| 2716 |
|
if not details is None: |
| 2717 |
|
cmd.set_attribute('details', _to_bool(details)) |
| 2718 |
|
|
| 2719 |
|
if not result is None: |
| 2720 |
|
cmd.set_attribute('result', _to_bool(result)) |
| 2721 |
|
|
| 2722 |
|
return self._send_xml_command(cmd) |
| 2723 |
|
|
| 2724 |
|
def get_override(self, override_id): |
| 2725 |
|
"""Request a single override |
|
@@ 2554-2586 (lines=33) @@
|
| 2551 |
|
cmd.set_attribute('details', '1') |
| 2552 |
|
return self._send_xml_command(cmd) |
| 2553 |
|
|
| 2554 |
|
def get_notes(self, *, filter=None, filter_id=None, nvt_oid=None, |
| 2555 |
|
task_id=None, details=None, result=None): |
| 2556 |
|
"""Request a list of notes |
| 2557 |
|
|
| 2558 |
|
Arguments: |
| 2559 |
|
filter (str, optional): Filter term to use for the query |
| 2560 |
|
filter_id (str, optional): UUID of an existing filter to use for |
| 2561 |
|
the query |
| 2562 |
|
nvt_oid (str, optional): OID of a nvt |
| 2563 |
|
task_id (str, optional): UUID of a task |
| 2564 |
|
details (boolean, optional): |
| 2565 |
|
result (boolean, optional): |
| 2566 |
|
|
| 2567 |
|
Returns: |
| 2568 |
|
The response. See :py:meth:`send_command` for details. |
| 2569 |
|
""" |
| 2570 |
|
cmd = XmlCommand('get_notes') |
| 2571 |
|
|
| 2572 |
|
_add_filter(cmd, filter, filter_id) |
| 2573 |
|
|
| 2574 |
|
if nvt_oid: |
| 2575 |
|
cmd.set_attribute('nvt_oid', nvt_oid) |
| 2576 |
|
|
| 2577 |
|
if task_id: |
| 2578 |
|
cmd.set_attribute('task_id', task_id) |
| 2579 |
|
|
| 2580 |
|
if not details is None: |
| 2581 |
|
cmd.set_attribute('details', _to_bool(details)) |
| 2582 |
|
|
| 2583 |
|
if not result is None: |
| 2584 |
|
cmd.set_attribute('result', _to_bool(result)) |
| 2585 |
|
|
| 2586 |
|
return self._send_xml_command(cmd) |
| 2587 |
|
|
| 2588 |
|
def get_note(self, note_id): |
| 2589 |
|
"""Request a single note |