Amazon Inspector Tags API

The Tags API from Amazon Inspector — 2 operation(s) for tags.

GitHub OpenAPI

Operations 5

GET /tags/{resourceArn} List Tags For Resource #
POST /tags/{resourceArn} Tag Resource #
DELETE /tags/{resourceArn} Untag Resource #
POST /#ListTagsForResource List Tags For Resource #
POST /#SetTagsForResource Set Tags For Resource #

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-tags-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-tags-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Inspector2 Tags 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://inspector2.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /tags/{resourceArn}:
    get:
      operationId: ListTagsForResource
      summary: List Tags For Resource
      description: Lists all tags attached to a given resource.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListTagsForResourceResponse'
        '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'
      parameters:
      - name: resourceArn
        in: path
        required: true
        schema:
          type: string
        description: The Amazon resource number (ARN) of the resource to list tags of.
      tags:
      - Tags
    post:
      operationId: TagResource
      summary: Tag Resource
      description: Adds tags to a resource.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagResourceResponse'
        '400':
          description: BadRequestException; ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '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'
      parameters:
      - name: resourceArn
        in: path
        required: true
        schema:
          type: string
        description: The Amazon Resource Name (ARN) of the resource to apply a tag to.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                tags:
                  type: object
                  additionalProperties:
                    type: string
                  description: The tags to be added to a resource.
              required:
              - tags
      tags:
      - Tags
    delete:
      operationId: UntagResource
      summary: Untag Resource
      description: Removes tags from a resource.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UntagResourceResponse'
        '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'
      parameters:
      - name: resourceArn
        in: path
        required: true
        schema:
          type: string
        description: The Amazon Resource Name (ARN) for the resource to remove tags from.
      - name: tagKeys
        in: query
        required: true
        schema:
          type: array
          items:
            type: string
        description: The tag keys to remove from the resource.
      tags:
      - Tags
  /#ListTagsForResource:
    post:
      operationId: ListTagsForResource
      summary: List Tags For Resource
      description: Lists all tags associated with an assessment template.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InspectorListTagsForResourceResponse'
              example:
                tags:
                - key: Name
                  value: Example
        '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.ListTagsForResource
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/ListTagsForResourceRequest'
            example:
              resourceArn: arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-gcwFliYu
      tags:
      - Tags
      servers:
      - url: https://inspector.{region}.amazonaws.com
        variables:
          region:
            default: us-east-1
      security:
      - sigv4_inspector: []
  /#SetTagsForResource:
    post:
      operationId: SetTagsForResource
      summary: Set Tags For Resource
      description: Sets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment
        template.
      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.SetTagsForResource
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/SetTagsForResourceRequest'
            example:
              resourceArn: arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-7sbz2Kz0
              tags:
              - key: Example
                value: example
      tags:
      - Tags
      servers:
      - url: https://inspector.{region}.amazonaws.com
        variables:
          region:
            default: us-east-1
      security:
      - sigv4_inspector: []
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
    sigv4_inspector:
      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:
    BadRequestException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    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
    InspectorListTagsForResourceResponse:
      type: object
      properties:
        tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
          description: A collection of key and value pairs.
      required:
      - tags
    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
    InternalServerException:
      type: object
      properties:
        message:
          type: string
        retryAfterSeconds:
          type: integer
          description: The number of seconds to wait before retrying the request.
      required:
      - message
    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
    ListTagsForResourceRequest:
      type: object
      properties:
        resourceArn:
          type: string
          description: The ARN that specifies the assessment template whose tags you want to list.
      required:
      - resourceArn
    ListTagsForResourceResponse:
      type: object
      properties:
        tags:
          type: object
          additionalProperties:
            type: string
          description: The tags associated with the resource.
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    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
    SetTagsForResourceRequest:
      type: object
      properties:
        resourceArn:
          type: string
          description: The ARN of the assessment template that you want to set tags to.
        tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
          description: A collection of key and value pairs that you want to set to the assessment template.
      required:
      - resourceArn
    Tag:
      type: object
      properties:
        key:
          type: string
          description: A tag key.
        value:
          type: string
          description: A value assigned to a tag key.
      required:
      - key
    TagResourceResponse:
      type: object
      properties: {}
    ThrottlingException:
      type: object
      properties:
        message:
          type: string
        retryAfterSeconds:
          type: integer
          description: The number of seconds to wait before retrying the request.
      required:
      - message
    UntagResourceResponse:
      type: object
      properties: {}
    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)
  sources:
  - https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/inspector2/service/2020-06-08/inspector2-2020-06-08.json
  - https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/inspector/service/2016-02-16/inspector-2016-02-16.json