describe_jobs
async
¶
describe_jobs(
*,
config_overrides: Optional[AsyncmgnClientConfig] = 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/async_mgn.py
2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 | |