update_finding
¶
update_finding(
finding_id: str,
agent_space_id: str,
*,
config_overrides: Optional[SecurityAgentClientConfig] = 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/security_agent.py
4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 | |