update_threat
¶
update_threat(
threat_id: str,
agent_space_id: str,
*,
config_overrides: Optional[SecurityAgentClientConfig] = None,
title: Optional[str] = None,
status: Optional[ThreatStatus] = None,
comments: Optional[str] = None,
statement: Optional[str] = None,
severity: Optional[ThreatSeverity] = None,
threat_source: Optional[str] = None,
prerequisites: Optional[str] = None,
threat_action: Optional[str] = None,
threat_impact: Optional[str] = None,
impacted_goal: Optional[StringList] = None,
impacted_assets: Optional[StringList] = None,
anchor: Optional[ThreatAnchorShape] = None,
evidence: Optional[ThreatEvidenceList] = None,
recommendation: Optional[str] = None,
) -> UpdateThreatOutput
Updates a threat.
Parameters:
-
threat_id(str) –The unique identifier of the threat to update.
-
agent_space_id(str) –The unique identifier of the agent space.
-
title(Optional[str], default:None) –A short title summarizing the threat.
-
status(Optional[ThreatStatus], default:None) –The updated status of the threat.
-
comments(Optional[str], default:None) –Optional customer comment.
-
statement(Optional[str], default:None) –The updated natural-language threat statement.
-
severity(Optional[ThreatSeverity], default:None) –The updated severity level of the threat.
-
threat_source(Optional[str], default:None) –The updated actor or origin of the threat.
-
prerequisites(Optional[str], default:None) –The updated conditions required for the threat to be exploitable.
-
threat_action(Optional[str], default:None) –The updated description of what the threat source can do.
-
threat_impact(Optional[str], default:None) –The updated direct consequence of the threat action.
-
impacted_goal(Optional[StringList], default:None) –The updated security goals affected by the threat.
-
impacted_assets(Optional[StringList], default:None) –The updated list of specific assets affected by the threat.
-
anchor(Optional[ThreatAnchorShape], default:None) –The updated DFD element this threat is anchored to.
-
evidence(Optional[ThreatEvidenceList], default:None) –The updated source code files supporting the threat.
-
recommendation(Optional[str], default:None) –The updated recommended mitigation guidance for this threat.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_securityagent/_services/security_agent.py
4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 | |