Amazon Inspector Coverage API

The Coverage API from Amazon Inspector — 2 operation(s) for coverage.

GitHub OpenAPI
Business capability
Vulnerability Management BC-620.40

Operations 2

POST /coverage/list List Coverage #
POST /coverage/statistics/list List Coverage Statistics #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-inspector:amazon-inspector-coverage-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-inspector-coverage-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Inspector2 Coverage API
  version: '2020-06-08'
  description: Generated from AWS's published Smithy model for Inspector2. 2 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://inspector2.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /coverage/list:
    post:
      operationId: ListCoverage
      summary: List Coverage
      description: Lists coverage details for your environment.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCoverageResponse'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                maxResults:
                  type: integer
                  description: The maximum number of results the response can return. If your request would return more than
                    the maximum the response will return a nextToken value, use this value when you call the action again
                    to get the remaining results.
                nextToken:
                  type: string
                  description: A token to use for paginating results that are returned in the response. Set the value of this
                    parameter to null for the first request to a list action. If your response returns more than the maxResults
                    maximum value it will also return a nextToken value. For subsequent calls, use the nextToken value returned
                    from the previous request to continue listing results after the first page.
                filterCriteria:
                  $ref: '#/components/schemas/CoverageFilterCriteria'
      tags:
      - Coverage
  /coverage/statistics/list:
    post:
      operationId: ListCoverageStatistics
      summary: List Coverage Statistics
      description: Lists Amazon Inspector coverage statistics for your environment.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCoverageStatisticsResponse'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                filterCriteria:
                  $ref: '#/components/schemas/CoverageFilterCriteria'
                groupBy:
                  type: string
                  description: The value to group the results by.
                nextToken:
                  type: string
                  description: A token to use for paginating results that are returned in the response. Set the value of this
                    parameter to null for the first request to a list action. For subsequent calls, use the NextToken value
                    returned from the previous request to continue listing results after the first page.
      tags:
      - Coverage
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: inspector2
  schemas:
    CodeRepositoryMetadata:
      type: object
      properties:
        projectName:
          type: string
          description: The name of the project in the code repository.
        integrationArn:
          type: string
          description: The Amazon Resource Name (ARN) of the code security integration associated with the repository.
        providerType:
          type: string
          description: The type of repository provider (such as GitHub, GitLab, etc.).
        providerTypeVisibility:
          type: string
          description: The visibility setting of the repository (public or private).
        lastScannedCommitId:
          type: string
          description: The ID of the last commit that was scanned in the repository.
        scanConfiguration:
          $ref: '#/components/schemas/ProjectCodeSecurityScanConfiguration'
        onDemandScan:
          $ref: '#/components/schemas/CodeRepositoryOnDemandScan'
      required:
      - projectName
      - providerType
      - providerTypeVisibility
    CodeRepositoryOnDemandScan:
      type: object
      properties:
        lastScannedCommitId:
          type: string
          description: The ID of the last commit that was scanned during an on-demand scan.
        lastScanAt:
          type: string
          format: date-time
          description: The timestamp when the last on-demand scan was performed.
        scanStatus:
          $ref: '#/components/schemas/ScanStatus'
    ContainerImageMetadata:
      type: object
      properties:
        imageTags:
          type: array
          items:
            type: string
          description: The tags attached to the container image.
        imagePulledAt:
          type: string
          format: date-time
          description: The date and time the container image was pulled.
        lastInUseAt:
          type: string
          format: date-time
          description: The last time the container image was in use.
        inUseCount:
          type: integer
          description: The number of times the container image is in use.
    ContainerRegistryMetadata:
      type: object
      properties:
        name:
          type: string
          description: The name of the container registry.
    ContainerRepositoryMetadata:
      type: object
      properties:
        name:
          type: string
          description: The name of the container repository.
        scanFrequency:
          type: string
          description: The scan frequency for the container repository.
    Counts:
      type: object
      properties:
        count:
          type: integer
          description: The number of resources.
        groupKey:
          type: string
          description: The key associated with this group
    CoverageDateFilter:
      type: object
      properties:
        startInclusive:
          type: string
          format: date-time
          description: A timestamp representing the start of the time period to filter results by.
        endInclusive:
          type: string
          format: date-time
          description: A timestamp representing the end of the time period to filter results by.
    CoverageFilterCriteria:
      type: object
      properties:
        scanStatusCode:
          type: array
          items:
            $ref: '#/components/schemas/CoverageStringFilter'
          description: 'The scan status code to filter on. Valid values are: ValidationException, InternalServerException,
            ResourceNotFoundException, BadRequestException, and ThrottlingException.'
        scanStatusReason:
          type: array
          items:
            $ref: '#/components/schemas/CoverageStringFilter'
          description: The scan status reason to filter on.
        accountId:
          type: array
          items:
            $ref: '#/components/schemas/CoverageStringFilter'
          description: An array of Amazon Web Services account IDs to return coverage statistics for.
        resourceId:
          type: array
          items:
            $ref: '#/components/schemas/CoverageStringFilter'
          description: An array of Amazon Web Services resource IDs to return coverage statistics for.
        resourceType:
          type: array
          items:
            $ref: '#/components/schemas/CoverageStringFilter'
          description: An array of Amazon Web Services resource types to return coverage statistics for. The values can be
            AWS_EC2_INSTANCE, AWS_LAMBDA_FUNCTION, AWS_ECR_CONTAINER_IMAGE, AWS_ECR_REPOSITORY or AWS_ACCOUNT.
        scanType:
          type: array
          items:
            $ref: '#/components/schemas/CoverageStringFilter'
          description: An array of Amazon Inspector scan types to return coverage statistics for.
        ecrRepositoryName:
          type: array
          items:
            $ref: '#/components/schemas/CoverageStringFilter'
          description: The Amazon ECR repository name to filter on.
        ecrImageTags:
          type: array
          items:
            $ref: '#/components/schemas/CoverageStringFilter'
          description: The Amazon ECR image tags to filter on.
        ec2InstanceTags:
          type: array
          items:
            $ref: '#/components/schemas/CoverageMapFilter'
          description: The Amazon EC2 instance tags to filter on.
        lambdaFunctionName:
          type: array
          items:
            $ref: '#/components/schemas/CoverageStringFilter'
          description: Returns coverage statistics for Amazon Web Services Lambda functions filtered by function names.
        lambdaFunctionTags:
          type: array
          items:
            $ref: '#/components/schemas/CoverageMapFilter'
          description: Returns coverage statistics for Amazon Web Services Lambda functions filtered by tag.
        lambdaFunctionRuntime:
          type: array
          items:
            $ref: '#/components/schemas/CoverageStringFilter'
          description: Returns coverage statistics for Amazon Web Services Lambda functions filtered by runtime.
        machineImageTags:
          type: array
          items:
            $ref: '#/components/schemas/CoverageMapFilter'
          description: The machine image tags to filter coverage results by.
        lastScannedAt:
          type: array
          items:
            $ref: '#/components/schemas/CoverageDateFilter'
          description: Filters Amazon Web Services resources based on whether Amazon Inspector has checked them for vulnerabilities
            within the specified time range.
        scanMode:
          type: array
          items:
            $ref: '#/components/schemas/CoverageStringFilter'
          description: The filter to search for Amazon EC2 instance coverage by scan mode. Valid values are EC2_SSM_AGENT_BASED,
            EC2_AGENTLESS, and EC2_INSPECTOR_AGENT_BASED.
        imagePulledAt:
          type: array
          items:
            $ref: '#/components/schemas/CoverageDateFilter'
          description: The date an image was last pulled at.
        ecrImageLastInUseAt:
          type: array
          items:
            $ref: '#/components/schemas/CoverageDateFilter'
          description: The Amazon ECR image that was last in use.
        ecrImageInUseCount:
          type: array
          items:
            $ref: '#/components/schemas/CoverageNumberFilter'
          description: The number of Amazon ECR images in use.
        codeRepositoryProjectName:
          type: array
          items:
            $ref: '#/components/schemas/CoverageStringFilter'
          description: Filter criteria for code repositories based on project name.
        codeRepositoryProviderType:
          type: array
          items:
            $ref: '#/components/schemas/CoverageStringFilter'
          description: Filter criteria for code repositories based on provider type (such as GitHub, GitLab, etc.).
        codeRepositoryProviderTypeVisibility:
          type: array
          items:
            $ref: '#/components/schemas/CoverageStringFilter'
          description: Filter criteria for code repositories based on visibility setting (public or private).
        lastScannedCommitId:
          type: array
          items:
            $ref: '#/components/schemas/CoverageStringFilter'
          description: Filter criteria for code repositories based on the ID of the last scanned commit.
        cloudProvider:
          type: array
          items:
            $ref: '#/components/schemas/CoverageStringFilter'
          description: The cloud provider to filter coverage results by.
        cloudProviderAccountId:
          type: array
          items:
            $ref: '#/components/schemas/CoverageStringFilter'
          description: The cloud provider account ID to filter coverage results by.
        cloudProviderRegion:
          type: array
          items:
            $ref: '#/components/schemas/CoverageStringFilter'
          description: The cloud provider region to filter coverage results by.
        cloudVmInstanceTags:
          type: array
          items:
            $ref: '#/components/schemas/CoverageMapFilter'
          description: The cloud VM instance tags to filter coverage results by.
        cloudContainerImageTags:
          type: array
          items:
            $ref: '#/components/schemas/CoverageStringFilter'
          description: The cloud container image tags to filter coverage results by.
        cloudContainerRepositoryName:
          type: array
          items:
            $ref: '#/components/schemas/CoverageStringFilter'
          description: The cloud container repository name to filter coverage results by.
        cloudContainerRegistryName:
          type: array
          items:
            $ref: '#/components/schemas/CoverageStringFilter'
          description: The cloud container registry name to filter coverage results by.
        cloudServerlessFunctionName:
          type: array
          items:
            $ref: '#/components/schemas/CoverageStringFilter'
          description: The cloud serverless function name to filter coverage results by.
        cloudServerlessFunctionRuntime:
          type: array
          items:
            $ref: '#/components/schemas/CoverageStringFilter'
          description: The cloud serverless function runtime to filter coverage results by.
        cloudServerlessFunctionTags:
          type: array
          items:
            $ref: '#/components/schemas/CoverageMapFilter'
          description: The cloud serverless function tags to filter coverage results by.
        cloudProviderOrgId:
          type: array
          items:
            $ref: '#/components/schemas/CoverageStringFilter'
          description: The cloud provider organization ID to filter coverage results by.
    CoverageMapFilter:
      type: object
      properties:
        comparison:
          type: string
          description: The operator to compare coverage on.
        key:
          type: string
          description: The tag key associated with the coverage map filter.
        value:
          type: string
          description: The tag value associated with the coverage map filter.
      required:
      - comparison
      - key
    CoverageNumberFilter:
      type: object
      properties:
        upperInclusive:
          type: integer
          description: The upper inclusive for the coverage number.>
        lowerInclusive:
          type: integer
          description: The lower inclusive for the coverage number.
    CoverageStringFilter:
      type: object
      properties:
        comparison:
          type: string
          description: The operator to compare strings on.
        value:
          type: string
          description: The value to compare strings on.
      required:
      - comparison
      - value
    CoveredResource:
      type: object
      properties:
        resourceType:
          type: string
          description: The type of the covered resource.
        resourceId:
          type: string
          description: The ID of the covered resource.
        accountId:
          type: string
          description: The Amazon Web Services account ID of the covered resource.
        scanType:
          type: string
          description: The Amazon Inspector scan type covering the resource.
        scanStatus:
          $ref: '#/components/schemas/ScanStatus'
        resourceMetadata:
          $ref: '#/components/schemas/ResourceScanMetadata'
        lastScannedAt:
          type: string
          format: date-time
          description: The date and time the resource was last checked for vulnerabilities.
        scanMode:
          type: string
          description: The scan method that is applied to the instance.
        provider:
          type: string
          description: The cloud provider of the covered resource.
        providerAccountId:
          type: string
          description: The cloud provider account ID of the covered resource.
        providerOrgId:
          type: string
          description: The cloud provider organization ID of the covered resource.
        providerRegion:
          type: string
          description: The cloud provider region of the covered resource.
        providerPartition:
          type: string
          description: The cloud provider partition of the covered resource.
      required:
      - resourceType
      - resourceId
      - accountId
      - scanType
    Ec2Metadata:
      type: object
      properties:
        tags:
          type: object
          additionalProperties:
            type: string
          description: The tags attached to the instance.
        amiId:
          type: string
          description: The ID of the Amazon Machine Image (AMI) used to launch the instance.
        platform:
          type: string
          description: The platform of the instance.
    EcrContainerImageMetadata:
      type: object
      properties:
        tags:
          type: array
          items:
            type: string
          description: Tags associated with the Amazon ECR image metadata.
        imagePulledAt:
          type: string
          format: date-time
          description: The date an image was last pulled at.
        lastInUseAt:
          type: string
          format: date-time
          description: The last time an Amazon ECR image was used in an Amazon ECS task or Amazon EKS pod.
        inUseCount:
          type: integer
          description: The number of Amazon ECS tasks or Amazon EKS pods where the Amazon ECR container image is in use.
    EcrRepositoryMetadata:
      type: object
      properties:
        name:
          type: string
          description: The name of the Amazon ECR repository.
        scanFrequency:
          type: string
          description: The frequency of scans.
    InternalServerException:
      type: object
      properties:
        message:
          type: string
        retryAfterSeconds:
          type: integer
          description: The number of seconds to wait before retrying the request.
      required:
      - message
    LambdaFunctionMetadata:
      type: object
      properties:
        functionTags:
          type: object
          additionalProperties:
            type: string
          description: The resource tags on an Amazon Web Services Lambda function.
        layers:
          type: array
          items:
            type: string
          description: The layers for an Amazon Web Services Lambda function. A Lambda function can have up to five layers.
        functionName:
          type: string
          description: The name of a function.
        runtime:
          type: string
          description: An Amazon Web Services Lambda function's runtime.
    ListCoverageResponse:
      type: object
      properties:
        nextToken:
          type: string
          description: A token to use for paginating results that are returned in the response. Set the value of this parameter
            to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the
            previous request to continue listing results after the first page.
        coveredResources:
          type: array
          items:
            $ref: '#/components/schemas/CoveredResource'
          description: An object that contains details on the covered resources in your environment.
    ListCoverageStatisticsResponse:
      type: object
      properties:
        countsByGroup:
          type: array
          items:
            $ref: '#/components/schemas/Counts'
          description: An array with the number for each group.
        totalCounts:
          type: integer
          description: The total number for all groups.
        nextToken:
          type: string
          description: A token to use for paginating results that are returned in the response. Set the value of this parameter
            to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the
            previous request to continue listing results after the first page.
      required:
      - totalCounts
    MachineImageMetadata:
      type: object
      properties:
        tags:
          type: object
          additionalProperties:
            type: string
          description: The tags associated with the machine image.
        platform:
          type: string
          description: The platform of the machine image.
    ProjectCodeSecurityScanConfiguration:
      type: object
      properties:
        periodicScanConfigurations:
          type: array
          items:
            $ref: '#/components/schemas/ProjectPeriodicScanConfiguration'
          description: The periodic scan configurations applied to the project.
        continuousIntegrationScanConfigurations:
          type: array
          items:
            $ref: '#/components/schemas/ProjectContinuousIntegrationScanConfiguration'
          description: The continuous integration scan configurations applied to the project.
    ProjectContinuousIntegrationScanConfiguration:
      type: object
      properties:
        supportedEvent:
          type: string
          enum:
          - PULL_REQUEST
          - PUSH
          description: The repository event that triggers continuous integration scans for the project.
        ruleSetCategories:
          type: array
          items:
            type: string
            enum:
            - SAST
            - IAC
            - SCA
          description: The categories of security rules applied during continuous integration scans for the project.
    ProjectPeriodicScanConfiguration:
      type: object
      properties:
        frequencyExpression:
          type: string
          description: The schedule expression for periodic scans, in cron format, applied to the project.
        ruleSetCategories:
          type: array
          items:
            type: string
            enum:
            - SAST
            - IAC
            - SCA
          description: The categories of security rules applied during periodic scans for the project.
    ResourceScanMetadata:
      type: object
      properties:
        ecrRepository:
          $ref: '#/components/schemas/EcrRepositoryMetadata'
        ecrImage:
          $ref: '#/components/schemas/EcrContainerImageMetadata'
        ec2:
          $ref: '#/components/schemas/Ec2Metadata'
        lambdaFunction:
          $ref: '#/components/schemas/LambdaFunctionMetadata'
        codeRepository:
          $ref: '#/components/schemas/CodeRepositoryMetadata'
        vmInstance:
          $ref: '#/components/schemas/VmInstanceMetadata'
        containerImage:
          $ref: '#/components/schemas/ContainerImageMetadata'
        containerRepository:
          $ref: '#/components/schemas/ContainerRepositoryMetadata'
        containerRegistry:
          $ref: '#/components/schemas/ContainerRegistryMetadata'
        serverlessFunction:
          $ref: '#/components/schemas/ServerlessFunctionMetadata'
        machineImage:
          $ref: '#/components/schemas/MachineImageMetadata'
    ScanStatus:
      type: object
      properties:
        statusCode:
          type: string
          description: The status code of the scan.
        reason:
          type: string
          description: 'The scan status. Possible return values and descriptions are: ACCESS_DENIED - Resource access policy
            restricting Amazon Inspector access. Please update the IAM policy. ACCESS_DENIED_TO_ENCRYPTION_KEY - The KMS key
            policy doesn''t allow Amazon Inspector access. Update the key policy. DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED
            - Amazon Inspector failed to extract the package inventory because the package collection time exceeding the maximum
            threshold of 15 minutes. DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED - The SSM agent couldn''t send inventory
            to Amazon Inspector because the SSM q'
      required:
      - statusCode
      - reason
    ServerlessFunctionMetadata:
      type: object
      properties:
        serverlessFunctionName:
          type: string
          description: The name of the serverless function.
        runtime:
          type: string
          description: The runtime of the serverless function.
        functionTags:
          type: object
          additionalProperties:
            type: string
          description: The tags associated with the serverless function.
    ThrottlingException:
      type: object
      properties:
        message:
          type: string
        retryAfterSeconds:
          type: integer
          description: The number of seconds to wait before retrying the request.
      required:
      - message
    ValidationException:
      type: object
      properties:
        message:
          type: string
        reason:
          type: string
          description: The reason for the validation failure.
        fields:
          type: array
          items:
            $ref: '#/components/schemas/ValidationExceptionField'
          description: The fields that failed validation.
      required:
      - message
      - reason
    ValidationExceptionField:
      type: object
      properties:
        name:
          type: string
          description: The name of the validation exception.
        message:
          type: string
          description: The validation exception message.
      required:
      - name
      - message
    VmInstanceMetadata:
      type: object
      properties:
        tags:
          type: object
          additionalProperties:
            type: string
          description: The tags associated with the VM instance.
        platform:
          type: string
          description: The platform of the VM instance.
        inventoryHash:
          type: string
          description: The inventory hash of the VM instance.
        vmImageReference:
          type: string
          description: The image reference of the VM instance.
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/inspector2/service/2020-06-08/inspector2-2020-06-08.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)