MailManager / Client / list_archive_searches

list_archive_searches#

MailManager.Client.list_archive_searches(**kwargs)#

Returns a list of email archive search jobs.

See also: AWS API Documentation

Request Syntax

response = client.list_archive_searches(
    ArchiveId='string',
    NextToken='string',
    PageSize=123
)
Parameters:
  • ArchiveId (string) –

    [REQUIRED]

    The identifier of the archive.

  • NextToken (string) – If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

  • PageSize (integer) – The maximum number of archive search jobs that are returned per call. You can use NextToken to obtain further pages of archives.

Return type:

dict

Returns:

Response Syntax

{
    'NextToken': 'string',
    'Searches': [
        {
            'SearchId': 'string',
            'Status': {
                'CompletionTimestamp': datetime(2015, 1, 1),
                'ErrorMessage': 'string',
                'State': 'QUEUED'|'RUNNING'|'COMPLETED'|'FAILED'|'CANCELLED',
                'SubmissionTimestamp': datetime(2015, 1, 1)
            }
        },
    ]
}

Response Structure

  • (dict) –

    The response containing a list of archive search jobs and their statuses.

    • NextToken (string) –

      If present, use to retrieve the next page of results.

    • Searches (list) –

      The list of search job identifiers and statuses.

      • (dict) –

        Summary details of an archive search job.

        • SearchId (string) –

          The unique identifier of the search job.

        • Status (dict) –

          The current status of the search job.

          • CompletionTimestamp (datetime) –

            The timestamp of when the search completed (if finished).

          • ErrorMessage (string) –

            An error message if the search failed.

          • State (string) –

            The current state of the search job.

          • SubmissionTimestamp (datetime) –

            The timestamp of when the search was submitted.

Exceptions

  • MailManager.Client.exceptions.ValidationException

  • MailManager.Client.exceptions.AccessDeniedException

  • MailManager.Client.exceptions.ResourceNotFoundException

  • MailManager.Client.exceptions.ThrottlingException