list_scan_jobs
async
¶
list_scan_jobs(
*,
config_overrides: Optional[AsyncBackupClientConfig] = 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/async_backup.py
6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 | |