Amazon Migration Hub Migration Hub Tags API

The Migration Hub Tags API from Amazon Migration Hub — 2 operation(s) for migration hub tags.

GitHub OpenAPI

Operations 6

GET /tags/{ResourceArn} List Tags For Resource #
POST /tags/{ResourceArn} Tag Resource #
DELETE /tags/{ResourceArn} Untag Resource #
GET /tags/{resourceArn} List Tags For Resource #
POST /tags/{resourceArn} Tag Resource #
DELETE /tags/{resourceArn} Untag 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-migration-hub:amazon-migration-hub-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-migration-hub-tags-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS Migration Hub Tags API
  version: '2017-05-31'
  description: Generated from AWS's published Smithy model for AWS Migration Hub. 6 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://refactor-spaces.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /tags/{ResourceArn}:
    get:
      operationId: ListTagsForResource
      summary: List Tags For Resource
      description: Lists the tags of a resource. The caller account must be the same as the resource’s OwnerAccountId. Listing
        tags in other accounts is not supported.
      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'
        '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) of the resource.
      tags:
      - Tags
    post:
      operationId: TagResource
      summary: Tag Resource
      description: Removes the tags of a given resource. Tags are metadata which can be used to manage a resource. To tag
        a resource, the caller account must be the same as the resource’s OwnerAccountId. Tagging resources in other accounts
        is not supported. Amazon Web Services Migration Hub Refactor Spaces does not propagate tags to orchestrated resources,
        such as an environment’s transit gateway.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagResourceResponse'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '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) of the resource.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                Tags:
                  type: object
                  additionalProperties:
                    type: string
                  description: The new or modified tags for the resource.
              required:
              - Tags
      tags:
      - Tags
    delete:
      operationId: UntagResource
      summary: Untag Resource
      description: Adds to or modifies the tags of the given resource. Tags are metadata which can be used to manage a resource.
        To untag a resource, the caller account must be the same as the resource’s OwnerAccountId. Untagging resources across
        accounts is not supported.
      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'
        '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) of the resource.
      - name: tagKeys
        in: query
        required: true
        schema:
          type: array
          items:
            type: string
        description: The list of keys of the tags to be removed from the resource.
      tags:
      - Tags
  /tags/{resourceArn}:
    get:
      operationId: ListTagsForResource
      summary: List Tags For Resource
      description: List the tags added to a resource.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MigrationhubOrchestratorListTagsForResourceResponse'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MigrationhubOrchestratorResourceNotFoundException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MigrationhubOrchestratorValidationException'
      parameters:
      - name: resourceArn
        in: path
        required: true
        schema:
          type: string
        description: The Amazon Resource Name (ARN) of the resource.
      tags:
      - Tags
      servers:
      - url: https://migrationhub-orchestrator.{region}.amazonaws.com
        variables:
          region:
            default: us-east-1
      security:
      - sigv4_migrationhub_orchestrator: []
    post:
      operationId: TagResource
      summary: Tag Resource
      description: Tag a resource by specifying its Amazon Resource Name (ARN).
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagResourceResponse'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MigrationhubOrchestratorResourceNotFoundException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MigrationhubOrchestratorValidationException'
      parameters:
      - name: resourceArn
        in: path
        required: true
        schema:
          type: string
        description: The Amazon Resource Name (ARN) of the resource to which you want to add tags.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                tags:
                  type: object
                  additionalProperties:
                    type: string
                  description: A collection of labels, in the form of key:value pairs, that apply to this resource.
              required:
              - tags
      tags:
      - Tags
      servers:
      - url: https://migrationhub-orchestrator.{region}.amazonaws.com
        variables:
          region:
            default: us-east-1
      security:
      - sigv4_migrationhub_orchestrator: []
    delete:
      operationId: UntagResource
      summary: Untag Resource
      description: Deletes the tags for a resource.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UntagResourceResponse'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MigrationhubOrchestratorResourceNotFoundException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MigrationhubOrchestratorValidationException'
      parameters:
      - name: resourceArn
        in: path
        required: true
        schema:
          type: string
        description: The Amazon Resource Name (ARN) of the resource from which you want to remove tags.
      - name: tagKeys
        in: query
        required: true
        schema:
          type: array
          items:
            type: string
        description: One or more tag keys. Specify only the tag keys, not the tag values.
      tags:
      - Tags
      servers:
      - url: https://migrationhub-orchestrator.{region}.amazonaws.com
        variables:
          region:
            default: us-east-1
      security:
      - sigv4_migrationhub_orchestrator: []
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: refactor-spaces
    sigv4_migrationhub_orchestrator:
      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: migrationhub-orchestrator
  schemas:
    InternalServerException:
      type: object
      properties:
        Message:
          type: string
      required:
      - Message
    ListTagsForResourceResponse:
      type: object
      properties:
        Tags:
          type: object
          additionalProperties:
            type: string
          description: The list of tags assigned to the resource.
    MigrationhubOrchestratorListTagsForResourceResponse:
      type: object
      properties:
        tags:
          type: object
          additionalProperties:
            type: string
          description: The tags added to a resource.
    MigrationhubOrchestratorResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    MigrationhubOrchestratorValidationException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    ResourceNotFoundException:
      type: object
      properties:
        Message:
          type: string
        ResourceId:
          type: string
          description: The ID of the resource.
        ResourceType:
          type: string
          description: The type of resource.
      required:
      - Message
      - ResourceId
      - ResourceType
    TagResourceResponse:
      type: object
      properties: {}
    UntagResourceResponse:
      type: object
      properties: {}
    ValidationException:
      type: object
      properties:
        Message:
          type: string
      required:
      - Message
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/migration-hub-refactor-spaces/service/2021-10-26/migration-hub-refactor-spaces-2021-10-26.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/migration-hub-refactor-spaces/service/2021-10-26/migration-hub-refactor-spaces-2021-10-26.json
  - https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/migrationhuborchestrator/service/2021-08-28/migrationhuborchestrator-2021-08-28.json