list_export_jobs_v2
async
¶
list_export_jobs_v2(
*,
config_overrides: Optional[AsyncSecurityHubClientConfig] = None,
status: Optional[ExportStatus] = None,
data_type: Optional[ExportDataType] = None,
max_results: Optional[ExportMaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListExportJobsV2Response
Returns the findings export jobs in your account as a paginated list of ExportSummary objects. You can filter the results by job Status or DataType.
To page through the results, use the MaxResults and NextToken parameters. If the response includes a NextToken value, pass it in a subsequent request to retrieve the next page of results.
Each ExportSummary reports the output Format of the job but not its full OutputConfiguration. To retrieve the filters and selected fields that a job was started with, call GetExportJobV2.
Parameters:
-
status(Optional[ExportStatus], default:None) –Filters the results to export jobs that have the specified status.
-
data_type(Optional[ExportDataType], default:None) –Filters the results to export jobs that produce the specified data type.
-
max_results(Optional[ExportMaxResults], default:None) –The maximum number of results to return in a single call. Valid range is 1–20.
-
next_token(Optional[NextToken], default:None) –The token required for pagination. On your first call, set the value of this parameter to
NULL. For subsequent calls, to continue listing data, set the value of this parameter to the value returned in the previous response.
Raises:
-
AccessDeniedException–You don't have permission to perform the action specified in the request.
-
InternalServerException–The request has failed due to an internal failure of the service.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request has failed validation because it's missing required fields or has invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Example – Listing successful findings export jobs The following example lists the findings export jobs in the account that have succeeded, returning up to 10 results per page.
Source code in docs_src/capo_securityhub/_services/async_security_hub.py
7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 | |