SecurityAgent / Paginator / ListFindings

ListFindings

class SecurityAgent.Paginator.ListFindings
paginator = client.get_paginator('list_findings')
paginate(**kwargs)

Creates an iterator that will paginate through responses from SecurityAgent.Client.list_findings().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    pentestJobId='string',
    agentSpaceId='string',
    riskType='string',
    riskLevel='UNKNOWN'|'INFORMATIONAL'|'LOW'|'MEDIUM'|'HIGH'|'CRITICAL',
    status='ACTIVE'|'RESOLVED'|'ACCEPTED'|'FALSE_POSITIVE',
    confidence='FALSE_POSITIVE'|'UNCONFIRMED'|'LOW'|'MEDIUM'|'HIGH',
    name='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • pentestJobId (string) –

    [REQUIRED]

    Identifier of the pentest job for which to retrieve associated findings

  • agentSpaceId (string) –

    [REQUIRED]

    ID of the agent space where the pentest job exists

  • riskType (string) – Filter findings by risk type

  • riskLevel (string) – Filter findings by risk level

  • status (string) – Filter findings by status

  • confidence (string) – Filter findings by confidence level

  • name (string) – Filter findings by name (case-insensitive substring search)

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'findingsSummaries': [
        {
            'findingId': 'string',
            'agentSpaceId': 'string',
            'pentestId': 'string',
            'pentestJobId': 'string',
            'name': 'string',
            'status': 'ACTIVE'|'RESOLVED'|'ACCEPTED'|'FALSE_POSITIVE',
            'riskType': 'string',
            'riskLevel': 'UNKNOWN'|'INFORMATIONAL'|'LOW'|'MEDIUM'|'HIGH'|'CRITICAL',
            'confidence': 'FALSE_POSITIVE'|'UNCONFIRMED'|'LOW'|'MEDIUM'|'HIGH',
            'createdAt': datetime(2015, 1, 1),
            'updatedAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    Output for the ListFindings operation

    • findingsSummaries (list) –

      List of finding summaries matching the filter criteria

      • (dict) –

        Summary information for a security finding

        • findingId (string) –

          Unique identifier for the finding

        • agentSpaceId (string) –

          Identifier of the agent space that created this finding

        • pentestId (string) –

          Identifier of the parent pentest

        • pentestJobId (string) –

          Identifier of the pentest job

        • name (string) –

          Name or title of the finding

        • status (string) –

          Current status of the finding

        • riskType (string) –

          Type of security risk identified

        • riskLevel (string) –

          Severity level of the identified risk

        • confidence (string) –

          Confidence level of the finding

        • createdAt (datetime) –

          Timestamp when the finding was created

        • updatedAt (datetime) –

          Timestamp when the finding was last updated

    • NextToken (string) –

      A token to resume pagination.