resume_pentest_job
¶
resume_pentest_job(
*,
config_overrides: Optional[SecurityAgentClientConfig] = None,
agent_space_id: Optional[str] = None,
pentest_job_id: Optional[str] = None,
actors: Optional[ActorList] = None,
network_traffic_config: Optional[NetworkTrafficConfig] = None,
vpc_config: Optional[VpcConfig] = None,
max_task_hours: Optional[float] = None,
copy_config_from_pentest: Optional[bool] = None,
) -> ResumePentestJobOutput
Resumes a stopped or paused pentest job from its last saved checkpoint. The job keeps its pentest job identifier and continues as a new version, keeping the findings and progress from earlier runs. You can resume a job within 7 days of when it was created.
Parameters:
-
agent_space_id(Optional[str], default:None) –The unique identifier of the agent space.
-
pentest_job_id(Optional[str], default:None) –The unique identifier of the pentest job to resume.
-
actors(Optional[ActorList], default:None) –The actors to use for the resumed job. When specified, replaces the actors the job used before it stopped.
-
network_traffic_config(Optional[NetworkTrafficConfig], default:None) –The network traffic configuration to use for the resumed job. When specified, replaces the configuration the job used before it stopped.
-
vpc_config(Optional[VpcConfig], default:None) –The VPC configuration to use for the resumed job. When specified, replaces the configuration the job used before it stopped.
-
max_task_hours(Optional[float], default:None) –The maximum number of task hours for the resumed job. To resume a job that stopped because it reached its task hours limit, specify a higher value.
-
copy_config_from_pentest(Optional[bool], default:None) –Specifies whether to copy the current actors, network traffic configuration, VPC configuration, and maximum task hours from the pentest to the resumed job. The job's scope, such as its target endpoints, is never changed. Values you specify in this request take precedence over copied values.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_securityagent/_services/security_agent.py
3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 | |