list_scan_jobs
¶
list_scan_jobs(
*,
config_overrides: Optional[BackupClientConfig] = None,
by_account_id: Optional[str] = None,
by_backup_vault_name: Optional[str] = None,
by_complete_after: Optional[datetime] = None,
by_complete_before: Optional[datetime] = None,
by_malware_scanner: Optional[MalwareScanner] = None,
by_recovery_point_arn: Optional[str] = None,
by_resource_arn: Optional[str] = None,
by_resource_type: Optional[ScanResourceType] = None,
by_scan_result_status: Optional[ScanResultStatus] = None,
by_state: Optional[ScanState] = None,
max_results: Optional[ListScanJobsInputMaxResultsInteger] = None,
next_token: Optional[str] = None,
) -> ListScanJobsOutput
Returns a list of existing scan jobs for an authenticated account for the last 30 days.
Parameters:
-
by_account_id(Optional[str], default:None) –The account ID to list the jobs from. Returns only backup jobs associated with the specified account ID.
If used from an Amazon Web Services Organizations management account, passing
*returns all jobs across the organization.Pattern:
^[0-9]{12}$ -
by_backup_vault_name(Optional[str], default:None) –Returns only scan jobs that will be stored in the specified backup vault. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created.
Pattern:
^[a-zA-Z0-9\-\_\.]{2,50}$ -
by_complete_after(Optional[datetime], default:None) –Returns only scan jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).
-
by_complete_before(Optional[datetime], default:None) –Returns only backup jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).
-
by_malware_scanner(Optional[MalwareScanner], default:None) –Returns only the scan jobs for the specified malware scanner. Currently only supports
GUARDDUTY. -
by_recovery_point_arn(Optional[str], default:None) –Returns only the scan jobs that are ran against the specified recovery point.
-
by_resource_arn(Optional[str], default:None) –Returns only scan jobs that match the specified resource Amazon Resource Name (ARN).
-
by_resource_type(Optional[ScanResourceType], default:None) –Returns restore testing selections by the specified restore testing plan name.
-
EBSfor Amazon Elastic Block Store -
EC2for Amazon Elastic Compute Cloud -
S3for Amazon Simple Storage Service (Amazon S3)
Pattern:
^[a-zA-Z0-9\-\_\.]{1,50}$ -
-
by_scan_result_status(Optional[ScanResultStatus], default:None) –Returns only the scan jobs for the specified scan results:
-
THREATS_FOUND -
NO_THREATS_FOUND
-
-
by_state(Optional[ScanState], default:None) –Returns only the scan jobs for the specified scanning job state.
-
max_results(Optional[ListScanJobsInputMaxResultsInteger], default:None) –The maximum number of items to be returned.
Valid Range: Minimum value of 1. Maximum value of 1000.
-
next_token(Optional[str], default:None) –The next item following a partial list of returned items. For example, if a request is made to return
MaxResultsnumber of items,NextTokenallows you to return more items in your list starting at the location pointed to by the next token.
Raises:
-
InvalidParameterValueException–Indicates that something is wrong with a parameter's value. For example, the value is out of range.
-
ServiceUnavailableException–The request failed due to a temporary failure of the server.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_backup/_services/backup.py
6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 | |