Amazon Inspector Inspector Assessment Target API

The Inspector Assessment Target API from Amazon Inspector — 5 operation(s) for inspector assessment target.

GitHub OpenAPI

Operations 5

POST /#CreateAssessmentTarget Create Assessment Target #
POST /#DeleteAssessmentTarget Delete Assessment Target #
POST /#DescribeAssessmentTargets Describe Assessment Targets #
POST /#ListAssessmentTargets List Assessment Targets #
POST /#UpdateAssessmentTarget Update Assessment Target #

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-assessment-target-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-assessment-target-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Inspector2 Assessment Target API
  version: '2020-06-08'
  description: Generated from AWS's published Smithy model for Inspector2. 5 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://inspector.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /#CreateAssessmentTarget:
    post:
      operationId: CreateAssessmentTarget
      summary: Create Assessment Target
      description: Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup.
        If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the
        assessment target. If the service-linked role isn’t already registered, this action also creates and registers a service-linked
        role to grant Amazon Inspector access to AWS Services needed to perform security assessments. You can create up to
        50 assessment targets per AWS account. You can run up to 500 concurrent agents per AWS account. For more information,
        see Amazon Inspector Assessment Targets.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/CreateAssessmentTargetResponse'
              example:
                assessmentTargetArn: arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InspectorAccessDeniedException'
        '500':
          description: InternalException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalException'
        '400':
          description: InvalidCrossAccountRoleException; InvalidInputException; LimitExceededException; NoSuchEntityException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InvalidCrossAccountRoleException'
        '503':
          description: ServiceTemporarilyUnavailableException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ServiceTemporarilyUnavailableException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - InspectorService.CreateAssessmentTarget
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/CreateAssessmentTargetRequest'
            example:
              assessmentTargetName: ExampleAssessmentTarget
              resourceGroupArn: arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-AB6DMKnv
      tags:
      - Assessment Target
  /#DeleteAssessmentTarget:
    post:
      operationId: DeleteAssessmentTarget
      summary: Delete Assessment Target
      description: Deletes the assessment target that is specified by the ARN of the assessment target.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                type: string
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InspectorAccessDeniedException'
        '400':
          description: AssessmentRunInProgressException; InvalidInputException; NoSuchEntityException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AssessmentRunInProgressException'
        '500':
          description: InternalException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalException'
        '503':
          description: ServiceTemporarilyUnavailableException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ServiceTemporarilyUnavailableException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - InspectorService.DeleteAssessmentTarget
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/DeleteAssessmentTargetRequest'
            example:
              assessmentTargetArn: arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq
      tags:
      - Assessment Target
  /#DescribeAssessmentTargets:
    post:
      operationId: DescribeAssessmentTargets
      summary: Describe Assessment Targets
      description: Describes the assessment targets that are specified by the ARNs of the assessment targets.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/DescribeAssessmentTargetsResponse'
        '500':
          description: InternalException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalException'
        '400':
          description: InvalidInputException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - InspectorService.DescribeAssessmentTargets
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/DescribeAssessmentTargetsRequest'
      tags:
      - Assessment Target
  /#ListAssessmentTargets:
    post:
      operationId: ListAssessmentTargets
      summary: List Assessment Targets
      description: Lists the ARNs of the assessment targets within this AWS account. For more information about assessment
        targets, see Amazon Inspector Assessment Targets.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ListAssessmentTargetsResponse'
              example:
                assessmentTargetArns:
                - arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq
                nextToken: '1'
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InspectorAccessDeniedException'
        '500':
          description: InternalException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalException'
        '400':
          description: InvalidInputException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - InspectorService.ListAssessmentTargets
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/ListAssessmentTargetsRequest'
            example:
              maxResults: 123
      tags:
      - Assessment Target
  /#UpdateAssessmentTarget:
    post:
      operationId: UpdateAssessmentTarget
      summary: Update Assessment Target
      description: Updates the assessment target that is specified by the ARN of the assessment target. If resourceGroupArn
        is not specified, all EC2 instances in the current AWS account and region are included in the assessment target.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                type: string
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InspectorAccessDeniedException'
        '500':
          description: InternalException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalException'
        '400':
          description: InvalidInputException; NoSuchEntityException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
        '503':
          description: ServiceTemporarilyUnavailableException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ServiceTemporarilyUnavailableException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - InspectorService.UpdateAssessmentTarget
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/UpdateAssessmentTargetRequest'
            example:
              assessmentTargetArn: arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX
              assessmentTargetName: Example
              resourceGroupArn: arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-yNbgL5Pt
      tags:
      - Assessment Target
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: inspector
  schemas:
    AssessmentRunInProgressException:
      type: object
      properties:
        message:
          type: string
          description: Details of the exception error.
        assessmentRunArns:
          type: array
          items:
            type: string
          description: The ARNs of the assessment runs that are currently in progress.
        assessmentRunArnsTruncated:
          type: boolean
          description: Boolean value that indicates whether the ARN list of the assessment runs is truncated.
        canRetry:
          type: boolean
          description: You can immediately retry your request.
      required:
      - message
      - assessmentRunArns
      - assessmentRunArnsTruncated
      - canRetry
    AssessmentTarget:
      type: object
      properties:
        arn:
          type: string
          description: The ARN that specifies the Amazon Inspector assessment target.
        name:
          type: string
          description: The name of the Amazon Inspector assessment target.
        resourceGroupArn:
          type: string
          description: The ARN that specifies the resource group that is associated with the assessment target.
        createdAt:
          type: string
          format: date-time
          description: The time at which the assessment target is created.
        updatedAt:
          type: string
          format: date-time
          description: The time at which UpdateAssessmentTarget is called.
      required:
      - arn
      - name
      - createdAt
      - updatedAt
    AssessmentTargetFilter:
      type: object
      properties:
        assessmentTargetNamePattern:
          type: string
          description: For a record to match a filter, an explicit value or a string that contains a wildcard that is specified
            for this data type property must match the value of the assessmentTargetName property of the AssessmentTarget
            data type.
    CreateAssessmentTargetRequest:
      type: object
      properties:
        assessmentTargetName:
          type: string
          description: The user-defined name that identifies the assessment target that you want to create. The name must
            be unique within the AWS account.
        resourceGroupArn:
          type: string
          description: The ARN that specifies the resource group that is used to create the assessment target. If resourceGroupArn
            is not specified, all EC2 instances in the current AWS account and region are included in the assessment target.
      required:
      - assessmentTargetName
    CreateAssessmentTargetResponse:
      type: object
      properties:
        assessmentTargetArn:
          type: string
          description: The ARN that specifies the assessment target that is created.
      required:
      - assessmentTargetArn
    DeleteAssessmentTargetRequest:
      type: object
      properties:
        assessmentTargetArn:
          type: string
          description: The ARN that specifies the assessment target that you want to delete.
      required:
      - assessmentTargetArn
    DescribeAssessmentTargetsRequest:
      type: object
      properties:
        assessmentTargetArns:
          type: array
          items:
            type: string
          description: The ARNs that specifies the assessment targets that you want to describe.
      required:
      - assessmentTargetArns
    DescribeAssessmentTargetsResponse:
      type: object
      properties:
        assessmentTargets:
          type: array
          items:
            $ref: '#/components/schemas/AssessmentTarget'
          description: Information about the assessment targets.
        failedItems:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/FailedItemDetails'
          description: Assessment target details that cannot be described. An error code is provided for each failed item.
      required:
      - assessmentTargets
      - failedItems
    FailedItemDetails:
      type: object
      properties:
        failureCode:
          type: string
          enum:
          - INVALID_ARN
          - DUPLICATE_ARN
          - ITEM_DOES_NOT_EXIST
          - ACCESS_DENIED
          - LIMIT_EXCEEDED
          - INTERNAL_ERROR
          description: The status code of a failed item.
        retryable:
          type: boolean
          description: Indicates whether you can immediately retry a request for this item for a specified resource.
      required:
      - failureCode
      - retryable
    InspectorAccessDeniedException:
      type: object
      properties:
        message:
          type: string
          description: Details of the exception error.
        errorCode:
          type: string
          enum:
          - ACCESS_DENIED_TO_ASSESSMENT_TARGET
          - ACCESS_DENIED_TO_ASSESSMENT_TEMPLATE
          - ACCESS_DENIED_TO_ASSESSMENT_RUN
          - ACCESS_DENIED_TO_FINDING
          - ACCESS_DENIED_TO_RESOURCE_GROUP
          - ACCESS_DENIED_TO_RULES_PACKAGE
          - ACCESS_DENIED_TO_SNS_TOPIC
          - ACCESS_DENIED_TO_IAM_ROLE
          description: Code that indicates the type of error that is generated.
        canRetry:
          type: boolean
          description: You can immediately retry your request.
      required:
      - message
      - errorCode
      - canRetry
    InternalException:
      type: object
      properties:
        message:
          type: string
          description: Details of the exception error.
        canRetry:
          type: boolean
          description: You can immediately retry your request.
      required:
      - message
      - canRetry
    InvalidCrossAccountRoleException:
      type: object
      properties:
        message:
          type: string
          description: Details of the exception error.
        errorCode:
          type: string
          enum:
          - ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP
          - ROLE_DOES_NOT_HAVE_CORRECT_POLICY
          description: Code that indicates the type of error that is generated.
        canRetry:
          type: boolean
          description: You can immediately retry your request.
      required:
      - message
      - errorCode
      - canRetry
    InvalidInputException:
      type: object
      properties:
        message:
          type: string
          description: Details of the exception error.
        errorCode:
          type: string
          enum:
          - INVALID_ASSESSMENT_TARGET_ARN
          - INVALID_ASSESSMENT_TEMPLATE_ARN
          - INVALID_ASSESSMENT_RUN_ARN
          - INVALID_FINDING_ARN
          - INVALID_RESOURCE_GROUP_ARN
          - INVALID_RULES_PACKAGE_ARN
          - INVALID_RESOURCE_ARN
          - INVALID_SNS_TOPIC_ARN
          - INVALID_IAM_ROLE_ARN
          - INVALID_ASSESSMENT_TARGET_NAME
          - INVALID_ASSESSMENT_TARGET_NAME_PATTERN
          - INVALID_ASSESSMENT_TEMPLATE_NAME
          - INVALID_ASSESSMENT_TEMPLATE_NAME_PATTERN
          - INVALID_ASSESSMENT_TEMPLATE_DURATION
          - INVALID_ASSESSMENT_TEMPLATE_DURATION_RANGE
          - INVALID_ASSESSMENT_RUN_DURATION_RANGE
          - INVALID_ASSESSMENT_RUN_START_TIME_RANGE
          - INVALID_ASSESSMENT_RUN_COMPLETION_TIME_RANGE
          - INVALID_ASSESSMENT_RUN_STATE_CHANGE_TIME_RANGE
          - INVALID_ASSESSMENT_RUN_STATE
          - INVALID_TAG
          - INVALID_TAG_KEY
          - INVALID_TAG_VALUE
          - INVALID_RESOURCE_GROUP_TAG_KEY
          - INVALID_RESOURCE_GROUP_TAG_VALUE
          - INVALID_ATTRIBUTE
          - INVALID_USER_ATTRIBUTE
          - INVALID_USER_ATTRIBUTE_KEY
          - INVALID_USER_ATTRIBUTE_VALUE
          - INVALID_PAGINATION_TOKEN
          - INVALID_MAX_RESULTS
          - INVALID_AGENT_ID
          - INVALID_AUTO_SCALING_GROUP
          - INVALID_RULE_NAME
          - INVALID_SEVERITY
          - INVALID_LOCALE
          - INVALID_EVENT
          - ASSESSMENT_TARGET_NAME_ALREADY_TAKEN
          - ASSESSMENT_TEMPLATE_NAME_ALREADY_TAKEN
          - INVALID_NUMBER_OF_ASSESSMENT_TARGET_ARNS
          - INVALID_NUMBER_OF_ASSESSMENT_TEMPLATE_ARNS
          - INVALID_NUMBER_OF_ASSESSMENT_RUN_ARNS
          - INVALID_NUMBER_OF_FINDING_ARNS
          - INVALID_NUMBER_OF_RESOURCE_GROUP_ARNS
          - INVALID_NUMBER_OF_RULES_PACKAGE_ARNS
          - INVALID_NUMBER_OF_ASSESSMENT_RUN_STATES
          - INVALID_NUMBER_OF_TAGS
          - INVALID_NUMBER_OF_RESOURCE_GROUP_TAGS
          - INVALID_NUMBER_OF_ATTRIBUTES
          - INVALID_NUMBER_OF_USER_ATTRIBUTES
          - INVALID_NUMBER_OF_AGENT_IDS
          - INVALID_NUMBER_OF_AUTO_SCALING_GROUPS
          - INVALID_NUMBER_OF_RULE_NAMES
          - INVALID_NUMBER_OF_SEVERITIES
          description: Code that indicates the type of error that is generated.
        canRetry:
          type: boolean
          description: You can immediately retry your request.
      required:
      - message
      - errorCode
      - canRetry
    ListAssessmentTargetsRequest:
      type: object
      properties:
        filter:
          $ref: '#/components/schemas/AssessmentTargetFilter'
        nextToken:
          type: string
          description: You can use this parameter when paginating results. Set the value of this parameter to null on your
            first call to the ListAssessmentTargets action. Subsequent calls to the action fill nextToken in the request with
            the value of NextToken from the previous response to continue listing data.
        maxResults:
          type: integer
          description: You can use this parameter to indicate the maximum number of items you want in the response. The default
            value is 10. The maximum value is 500.
    ListAssessmentTargetsResponse:
      type: object
      properties:
        assessmentTargetArns:
          type: array
          items:
            type: string
          description: A list of ARNs that specifies the assessment targets that are returned by the action.
        nextToken:
          type: string
          description: When a response is generated, if there is more data to be listed, this parameter is present in the
            response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there
            is no more data to be listed, this parameter is set to null.
      required:
      - assessmentTargetArns
    ServiceTemporarilyUnavailableException:
      type: object
      properties:
        message:
          type: string
          description: Details of the exception error.
        canRetry:
          type: boolean
          description: You can wait and then retry your request.
      required:
      - message
      - canRetry
    UpdateAssessmentTargetRequest:
      type: object
      properties:
        assessmentTargetArn:
          type: string
          description: The ARN of the assessment target that you want to update.
        assessmentTargetName:
          type: string
          description: The name of the assessment target that you want to update.
        resourceGroupArn:
          type: string
          description: The ARN of the resource group that is used to specify the new resource group to associate with the
            assessment target.
      required:
      - assessmentTargetArn
      - assessmentTargetName
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/inspector/service/2016-02-16/inspector-2016-02-16.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)