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
4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 | |