update_finding
async
¶
update_finding(
finding_id: str,
agent_space_id: str,
*,
config_overrides: Optional[AsyncSecurityAgentClientConfig] = None,
name: Optional[str] = None,
description: Optional[str] = None,
risk_type: Optional[str] = None,
risk_level: Optional[RiskLevel] = None,
risk_score: Optional[str] = None,
attack_script: Optional[str] = None,
reasoning: Optional[str] = None,
status: Optional[FindingStatus] = None,
customer_note: Optional[str] = None,
) -> UpdateFindingOutput
Updates the status or risk level of a security finding.
Parameters:
-
finding_id(str) –The unique identifier of the finding to update.
-
agent_space_id(str) –The unique identifier of the agent space that contains the finding.
-
name(Optional[str], default:None) –The updated name for the finding.
-
description(Optional[str], default:None) –The updated description for the finding.
-
risk_type(Optional[str], default:None) –The updated risk type for the finding.
-
risk_level(Optional[RiskLevel], default:None) –The updated risk level for the finding.
-
risk_score(Optional[str], default:None) –The updated numerical risk score for the finding.
-
attack_script(Optional[str], default:None) –The updated attack script for the finding.
-
reasoning(Optional[str], default:None) –The updated reasoning for the finding.
-
status(Optional[FindingStatus], default:None) –The updated status for the finding.
-
customer_note(Optional[str], default:None) –A customer-provided note on the finding.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_securityagent/_services/async_security_agent.py
4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 | |