resume_pentest_job
async
¶
resume_pentest_job(
*,
config_overrides: Optional[AsyncSecurityAgentClientConfig] = 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/async_security_agent.py
4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 | |