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
6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 | |