describe_jobs
¶
describe_jobs(
*,
config_overrides: Optional[mgnClientConfig] = None,
filters: Optional[DescribeJobsRequestFilters] = None,
max_results: Optional[MaxResultsType] = None,
next_token: Optional[PaginationToken] = None,
account_id: Optional[AccountID] = None,
) -> DescribeJobsResponse
Returns a list of Jobs. Use the jobIDs and fromDate and toDate filters to limit which jobs are returned. The response is sorted by creationDateTime - latest date first. Jobs are normally created by the StartTest, StartCutover, and TerminateTargetInstances APIs. Jobs are also created by DiagnosticLaunch and TerminateDiagnosticInstances, which are APIs available only to *Support* and only used in response to relevant support tickets.
Parameters:
-
filters(Optional[DescribeJobsRequestFilters], default:None) –Request to describe Job log filters.
-
max_results(Optional[MaxResultsType], default:None) –Request to describe job log items by max results.
-
next_token(Optional[PaginationToken], default:None) –Request to describe job log items by next token.
-
account_id(Optional[AccountID], default:None) –Request to describe job log items by Account ID.
Raises:
-
UninitializedAccountException–Uninitialized account exception.
-
ValidationException–Validate exception.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_mgn/_services/mgn.py
2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 | |