Amazon Inspector Configuration API

The Configuration API from Amazon Inspector — 2 operation(s) for configuration.

GitHub OpenAPI

Operations 2

POST /configuration/get Get Configuration #
POST /configuration/update Update Configuration #

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-configuration-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-configuration-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Inspector2 Configuration 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:
  /configuration/get:
    post:
      operationId: GetConfiguration
      summary: Get Configuration
      description: Retrieves setting configurations for Amazon Inspector scans. If you specify an accountId, this operation
        returns the scan configuration for that member account. You must be the delegated administrator for the specified
        member account. If you do not specify an accountId, this operation returns your own scan configuration.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetConfigurationResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '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:
                accountId:
                  type: string
                  description: The 12-digit Amazon Web Services account ID of the member account whose scan configuration
                    you want to retrieve. When specified, you must be the delegated administrator for this member account.
                    If not specified, the operation returns your own configuration.
      tags:
      - Configuration
  /configuration/update:
    post:
      operationId: UpdateConfiguration
      summary: Update Configuration
      description: Updates the scan configuration for your Amazon Inspector account. If you don't specify an accountId, this
        operation updates the delegated administrator's configuration and propagates it to member accounts that have not been
        individually configured. If you specify an accountId, this operation updates that member account's configuration.
        Only the delegated administrator can specify an accountId; member accounts cannot call this operation.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateConfigurationResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '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:
                accountId:
                  type: string
                  description: The 12-digit Amazon Web Services account ID of the member account whose scan configuration
                    you want to update. When specified, you must be the delegated administrator for this member account. If
                    not specified, the operation updates your own configuration and propagates changes to any member accounts
                    that have not been individually configured.
                ecrConfiguration:
                  $ref: '#/components/schemas/EcrConfiguration'
                ec2Configuration:
                  $ref: '#/components/schemas/Ec2Configuration'
                amiConfiguration:
                  $ref: '#/components/schemas/AmiConfiguration'
                updateConfigurationInheritance:
                  $ref: '#/components/schemas/UpdateConfigurationInheritance'
      tags:
      - Configuration
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:
    AccessDeniedException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    AmiConfiguration:
      type: object
      properties:
        lastLaunchedWithin:
          type: string
          description: Restricts scanning to AMIs that were last launched within the specified duration.
        createdWithin:
          type: string
          description: Restricts scanning to AMIs that were created within the specified duration.
        scanModeConfiguration:
          $ref: '#/components/schemas/AmiScanModeConfiguration'
      required:
      - scanModeConfiguration
    AmiConfigurationState:
      type: object
      properties:
        lastLaunchedWithin:
          type: string
          description: Restricts scanning to AMIs that were last launched within the specified duration.
        createdWithin:
          type: string
          description: Restricts scanning to AMIs that were created within the specified duration.
        scanModeConfiguration:
          $ref: '#/components/schemas/AmiScanModeConfiguration'
        status:
          type: string
          description: The status of the AMI scan configuration.
        updatedAt:
          type: string
          format: date-time
          description: The date and time when the AMI scan configuration was last updated.
    AmiScanModeConfiguration:
      type: object
      properties:
        scanMode:
          type: string
          description: The scan mode that determines whether all AMIs are scanned or only those matching the specified tags.
        tags:
          type: array
          items:
            $ref: '#/components/schemas/AmiTagFilter'
          description: The tag filters used to select which AMIs are scanned when using targeted scanning.
        excludeCopiedAmis:
          type: boolean
          description: Whether to exclude AMIs that are copies of other AMIs from scanning.
        excludeBackupDlmAmis:
          type: boolean
          description: Whether to exclude AMIs created by Amazon Data Lifecycle Manager (DLM) backups from scanning.
      required:
      - scanMode
    AmiTagFilter:
      type: object
      properties:
        key:
          type: string
          description: The tag key to match against an AMI's tags.
        value:
          type: string
          description: The tag value to match against an AMI's tags. If omitted, the filter matches on the tag key alone.
      required:
      - key
    ConflictException:
      type: object
      properties:
        message:
          type: string
        resourceId:
          type: string
          description: The ID of the conflicting resource.
        resourceType:
          type: string
          description: The type of the conflicting resource.
      required:
      - message
      - resourceId
      - resourceType
    Ec2Configuration:
      type: object
      properties:
        scanMode:
          type: string
          description: The scan method that is applied to the instance.
        activateVMScanner:
          type: boolean
          description: Whether to activate Amazon Inspector VM scanner for Amazon EC2 scanning.
      required:
      - scanMode
    Ec2ConfigurationState:
      type: object
      properties:
        scanModeState:
          $ref: '#/components/schemas/Ec2ScanModeState'
        vmScannerState:
          $ref: '#/components/schemas/VMScannerState'
    Ec2ScanModeState:
      type: object
      properties:
        scanMode:
          type: string
          description: The scan method that is applied to the instance.
        scanModeStatus:
          type: string
          description: The status of the Amazon EC2 scan mode setting.
    EcrConfiguration:
      type: object
      properties:
        rescanDuration:
          type: string
          description: The rescan duration configured for image push date.
        pullDateRescanDuration:
          type: string
          description: The rescan duration configured for image pull date.
        pullDateRescanMode:
          type: string
          description: The pull date for the re-scan mode.
      required:
      - rescanDuration
    EcrConfigurationState:
      type: object
      properties:
        rescanDurationState:
          $ref: '#/components/schemas/EcrRescanDurationState'
    EcrRescanDurationState:
      type: object
      properties:
        rescanDuration:
          type: string
          description: The rescan duration configured for image push date.
        status:
          type: string
          description: The status of changes to the ECR automated re-scan duration.
        updatedAt:
          type: string
          format: date-time
          description: A timestamp representing when the last time the ECR scan duration setting was changed.
        pullDateRescanDuration:
          type: string
          description: The rescan duration configured for image pull date.
        pullDateRescanMode:
          type: string
          description: The pull date for the re-scan mode.
    GetConfigurationResponse:
      type: object
      properties:
        ecrConfiguration:
          $ref: '#/components/schemas/EcrConfigurationState'
        ec2Configuration:
          $ref: '#/components/schemas/Ec2ConfigurationState'
        amiConfiguration:
          $ref: '#/components/schemas/AmiConfigurationState'
    InternalServerException:
      type: object
      properties:
        message:
          type: string
        retryAfterSeconds:
          type: integer
          description: The number of seconds to wait before retrying the request.
      required:
      - message
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    ThrottlingException:
      type: object
      properties:
        message:
          type: string
        retryAfterSeconds:
          type: integer
          description: The number of seconds to wait before retrying the request.
      required:
      - message
    UpdateConfigurationInheritance:
      type: object
      properties:
        ec2Configuration:
          type: string
          description: The inheritance mode for Amazon EC2 scan configuration. Set to INHERIT_FROM_ADMIN to reset the member
            account's Amazon EC2 scan configuration to inherit from the delegated administrator. If omitted, the member account's
            existing Amazon EC2 scan configuration is not changed.
        ecrConfiguration:
          type: string
          description: The inheritance mode for Amazon ECR scan configuration. Set to INHERIT_FROM_ADMIN to reset the member
            account's Amazon ECR scan configuration to inherit from the delegated administrator. If omitted, the member account's
            existing Amazon ECR scan configuration is not changed.
        amiConfiguration:
          type: string
    UpdateConfigurationResponse:
      type: object
      properties: {}
    VMScannerState:
      type: object
      properties:
        activated:
          type: boolean
          description: Whether the VM scanner is activated.
        activatedAt:
          type: string
          format: date-time
          description: The date and time the VM scanner was activated.
        status:
          type: string
          description: The status of the VM scanner.
    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
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)