Amazon Inspector Inspector Assessment Run API
The Inspector Assessment Run API from Amazon Inspector — 5 operation(s) for inspector assessment run.
The Inspector Assessment Run API from Amazon Inspector — 5 operation(s) for inspector assessment run.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/amazon-inspector:amazon-inspector-assessment-run-api"
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.
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: 3.1.0
info:
title: Inspector2 Assessment Run 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:
/#DeleteAssessmentRun:
post:
operationId: DeleteAssessmentRun
summary: Delete Assessment Run
description: Deletes the assessment run that is specified by the ARN of the assessment run.
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.DeleteAssessmentRun
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/DeleteAssessmentRunRequest'
example:
assessmentRunArn: arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T/run/0-11LMTAVe
tags:
- Assessment Run
/#DescribeAssessmentRuns:
post:
operationId: DescribeAssessmentRuns
summary: Describe Assessment Runs
description: Describes the assessment runs that are specified by the ARNs of the assessment runs.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/DescribeAssessmentRunsResponse'
'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.DescribeAssessmentRuns
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/DescribeAssessmentRunsRequest'
tags:
- Assessment Run
/#ListAssessmentRuns:
post:
operationId: ListAssessmentRuns
summary: List Assessment Runs
description: Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of
the assessment templates.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/ListAssessmentRunsResponse'
example:
assessmentRunArns:
- arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE
- arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-v5D6fI3v
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; NoSuchEntityException
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.ListAssessmentRuns
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/ListAssessmentRunsRequest'
example:
assessmentTemplateArns:
- arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw
maxResults: 123
tags:
- Assessment Run
/#StartAssessmentRun:
post:
operationId: StartAssessmentRun
summary: Start Assessment Run
description: Starts the assessment run specified by the ARN of the assessment template. For this API to function properly,
you must not exceed the limit of running up to 500 concurrent agents per AWS account.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/StartAssessmentRunResponse'
example:
assessmentRunArn: arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T/run/0-jOoroxyY
'403':
description: AccessDeniedException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/InspectorAccessDeniedException'
'400':
description: AgentsAlreadyRunningAssessmentException; InvalidCrossAccountRoleException; InvalidInputException; LimitExceededException;
NoSuchEntityException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/AgentsAlreadyRunningAssessmentException'
'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.StartAssessmentRun
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/StartAssessmentRunRequest'
example:
assessmentTemplateArn: arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T
assessmentRunName: examplerun
tags:
- Assessment Run
/#StopAssessmentRun:
post:
operationId: StopAssessmentRun
summary: Stop Assessment Run
description: Stops the assessment run that is specified by the ARN of the assessment run.
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.StopAssessmentRun
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/StopAssessmentRunRequest'
example:
assessmentRunArn: arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T/run/0-11LMTAVe
tags:
- Assessment Run
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:
AgentAlreadyRunningAssessment:
type: object
properties:
agentId:
type: string
description: ID of the agent that is running on an EC2 instance that is already participating in another started
assessment run.
assessmentRunArn:
type: string
description: The ARN of the assessment run that has already been started.
required:
- agentId
- assessmentRunArn
AgentsAlreadyRunningAssessmentException:
type: object
properties:
message:
type: string
description: Details of the exception error.
agents:
type: array
items:
$ref: '#/components/schemas/AgentAlreadyRunningAssessment'
agentsTruncated:
type: boolean
canRetry:
type: boolean
description: You can immediately retry your request.
required:
- message
- agents
- agentsTruncated
- canRetry
AssessmentRun:
type: object
properties:
arn:
type: string
description: The ARN of the assessment run.
name:
type: string
description: The auto-generated name for the assessment run.
assessmentTemplateArn:
type: string
description: The ARN of the assessment template that is associated with the assessment run.
state:
type: string
enum:
- CREATED
- START_DATA_COLLECTION_PENDING
- START_DATA_COLLECTION_IN_PROGRESS
- COLLECTING_DATA
- STOP_DATA_COLLECTION_PENDING
- DATA_COLLECTED
- START_EVALUATING_RULES_PENDING
- EVALUATING_RULES
- FAILED
- ERROR
- COMPLETED
- COMPLETED_WITH_ERRORS
- CANCELED
description: The state of the assessment run.
durationInSeconds:
type: integer
description: The duration of the assessment run.
rulesPackageArns:
type: array
items:
type: string
description: The rules packages selected for the assessment run.
userAttributesForFindings:
type: array
items:
$ref: '#/components/schemas/Attribute'
description: The user-defined attributes that are assigned to every generated finding.
createdAt:
type: string
format: date-time
description: The time when StartAssessmentRun was called.
startedAt:
type: string
format: date-time
description: The time when StartAssessmentRun was called.
completedAt:
type: string
format: date-time
description: The assessment run completion time that corresponds to the rules packages evaluation completion time
or failure.
stateChangedAt:
type: string
format: date-time
description: The last time when the assessment run's state changed.
dataCollected:
type: boolean
description: A Boolean value (true or false) that specifies whether the process of collecting data from the agents
is completed.
stateChanges:
type: array
items:
$ref: '#/components/schemas/AssessmentRunStateChange'
description: A list of the assessment run state changes.
notifications:
type: array
items:
$ref: '#/components/schemas/AssessmentRunNotification'
description: A list of notifications for the event subscriptions. A notification about a particular generated finding
is added to this list only once.
findingCounts:
type: object
additionalProperties:
type: integer
description: Provides a total count of generated findings per severity.
required:
- arn
- name
- assessmentTemplateArn
- state
- durationInSeconds
- rulesPackageArns
- userAttributesForFindings
- createdAt
- stateChangedAt
- dataCollected
- stateChanges
- notifications
- findingCounts
AssessmentRunFilter:
type: object
properties:
namePattern:
type: string
description: For a record to match a filter, an explicit value or a string containing a wildcard that is specified
for this data type property must match the value of the assessmentRunName property of the AssessmentRun data type.
states:
type: array
items:
type: string
enum:
- CREATED
- START_DATA_COLLECTION_PENDING
- START_DATA_COLLECTION_IN_PROGRESS
- COLLECTING_DATA
- STOP_DATA_COLLECTION_PENDING
- DATA_COLLECTED
- START_EVALUATING_RULES_PENDING
- EVALUATING_RULES
- FAILED
- ERROR
- COMPLETED
- COMPLETED_WITH_ERRORS
- CANCELED
description: For a record to match a filter, one of the values specified for this data type property must be the
exact match of the value of the assessmentRunState property of the AssessmentRun data type.
durationRange:
$ref: '#/components/schemas/DurationRange'
rulesPackageArns:
type: array
items:
type: string
description: For a record to match a filter, the value that is specified for this data type property must be contained
in the list of values of the rulesPackages property of the AssessmentRun data type.
startTimeRange:
$ref: '#/components/schemas/TimestampRange'
completionTimeRange:
$ref: '#/components/schemas/TimestampRange'
stateChangeTimeRange:
$ref: '#/components/schemas/TimestampRange'
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
AssessmentRunNotification:
type: object
properties:
date:
type: string
format: date-time
description: The date of the notification.
event:
type: string
enum:
- ASSESSMENT_RUN_STARTED
- ASSESSMENT_RUN_COMPLETED
- ASSESSMENT_RUN_STATE_CHANGED
- FINDING_REPORTED
- OTHER
description: The event for which a notification is sent.
message:
type: string
description: The message included in the notification.
error:
type: boolean
description: The Boolean value that specifies whether the notification represents an error.
snsTopicArn:
type: string
description: The SNS topic to which the SNS notification is sent.
snsPublishStatusCode:
type: string
enum:
- SUCCESS
- TOPIC_DOES_NOT_EXIST
- ACCESS_DENIED
- INTERNAL_ERROR
description: The status code of the SNS notification.
required:
- date
- event
- error
AssessmentRunStateChange:
type: object
properties:
stateChangedAt:
type: string
format: date-time
description: The last time the assessment run state changed.
state:
type: string
enum:
- CREATED
- START_DATA_COLLECTION_PENDING
- START_DATA_COLLECTION_IN_PROGRESS
- COLLECTING_DATA
- STOP_DATA_COLLECTION_PENDING
- DATA_COLLECTED
- START_EVALUATING_RULES_PENDING
- EVALUATING_RULES
- FAILED
- ERROR
- COMPLETED
- COMPLETED_WITH_ERRORS
- CANCELED
description: The assessment run state.
required:
- stateChangedAt
- state
Attribute:
type: object
properties:
key:
type: string
description: The attribute key.
value:
type: string
description: The value assigned to the attribute key.
required:
- key
DeleteAssessmentRunRequest:
type: object
properties:
assessmentRunArn:
type: string
description: The ARN that specifies the assessment run that you want to delete.
required:
- assessmentRunArn
DescribeAssessmentRunsRequest:
type: object
properties:
assessmentRunArns:
type: array
items:
type: string
description: The ARN that specifies the assessment run that you want to describe.
required:
- assessmentRunArns
DescribeAssessmentRunsResponse:
type: object
properties:
assessmentRuns:
type: array
items:
$ref: '#/components/schemas/AssessmentRun'
description: Information about the assessment run.
failedItems:
type: object
additionalProperties:
$ref: '#/components/schemas/FailedItemDetails'
description: Assessment run details that cannot be described. An error code is provided for each failed item.
required:
- assessmentRuns
- failedItems
DurationRange:
type: object
properties:
minSeconds:
type: integer
description: The minimum value of the duration range. Must be greater than zero.
maxSeconds:
type: integer
description: The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).
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
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
ListAssessmentRunsRequest:
type: object
properties:
assessmentTemplateArns:
type: array
items:
type: string
description: The ARNs that specify the assessment templates whose assessment runs you want to list.
filter:
$ref: '#/components/schemas/AssessmentRunFilter'
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 ListAssessmentRuns 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 that you want in the response. The
default value is 10. The maximum value is 500.
ListAssessmentRunsResponse:
type: object
properties:
assessmentRunArns:
type: array
items:
type: string
description: A list of ARNs that specifies the assessment runs 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:
- assessmentRunArns
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
StartAssessmentRunRequest:
type: object
properties:
assessmentTemplateArn:
type: string
description: The ARN of the assessment template of the assessment run that you want to start.
assessmentRunName:
type: string
description: You can specify the name for the assessment run. The name must be unique for the assessment template
whose ARN is used to start the assessment run.
required:
- assessmentTemplateArn
StartAssessmentRunResponse:
type: object
properties:
assessmentRunArn:
type: string
description: The ARN of the assessment run that has been started.
required:
- assessmentRunArn
StopAssessmentRunRequest:
type: object
properties:
assessmentRunArn:
type: string
description: The ARN of the assessment run that you want to stop.
stopAction:
type: string
enum:
- START_EVALUATION
- SKIP_EVALUATION
description: An input option that can be set to either START_EVALUATION or SKIP_EVALUATION. START_EVALUATION (the
default value), stops the AWS agent from collecting data and begins the results evaluation and the findings generation
process. SKIP_EVALUATION cancels the assessment run immediately, after which no findings are generated.
required:
- assessmentRunArn
TimestampRange:
type: object
properties:
beginDate:
type: string
format: date-time
description: The minimum value of the timestamp range.
endDate:
type: string
format: date-time
description: The maximum value of the timestamp range.
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)