AWS Batch Tags API

The Tags API from AWS Batch — 1 operation(s) for tags.

GitHub OpenAPI

Operations 3

GET /v1/tags/{resourceArn} List Tags For Resource #
POST /v1/tags/{resourceArn} Tag Resource #
DELETE /v1/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/aws-batch:aws-batch-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

aws-batch-tags-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS Batch Tags API
  version: '2016-08-10'
  description: Generated from AWS's published Smithy model for AWS Batch. 3 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://batch.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /v1/tags/{resourceArn}:
    get:
      operationId: ListTagsForResource
      summary: List Tags For Resource
      description: Lists the tags for an Batch resource. Batch resources that support tags are compute environments, jobs,
        job definitions, job queues, and scheduling policies. ARNs for child jobs of array and multi-node parallel (MNP) jobs
        aren't supported.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListTagsForResourceResponse'
              example:
                tags:
                  Stage: Alpha
                  Department: Engineering
                  User: JaneDoe
        '400':
          description: ClientException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientException'
        '500':
          description: ServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerException'
      parameters:
      - name: resourceArn
        in: path
        required: true
        schema:
          type: string
        description: The Amazon Resource Name (ARN) that identifies the resource that tags are listed for. Batch resources
          that support tags are compute environments, jobs, job definitions, job queues, and scheduling policies. ARNs for
          child jobs of array and multi-node parallel (MNP) jobs aren't supported.
      tags:
      - Tags
    post:
      operationId: TagResource
      summary: Tag Resource
      description: Associates the specified tags to a resource with the specified resourceArn. If existing tags on a resource
        aren't specified in the request parameters, they aren't changed. When a resource is deleted, the tags that are associated
        with that resource are deleted as well. Batch resources that support tags are compute environments, jobs, job definitions,
        job queues, and scheduling policies. ARNs for child jobs of array and multi-node parallel (MNP) jobs aren't supported.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagResourceResponse'
              example: {}
        '400':
          description: ClientException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientException'
        '500':
          description: ServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerException'
      parameters:
      - name: resourceArn
        in: path
        required: true
        schema:
          type: string
        description: The Amazon Resource Name (ARN) of the resource that tags are added to. Batch resources that support tags
          are compute environments, jobs, job definitions, job queues, and scheduling policies. ARNs for child jobs of array
          and multi-node parallel (MNP) jobs aren't supported.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                tags:
                  type: object
                  additionalProperties:
                    type: string
                  description: The tags that you apply to the resource to help you categorize and organize your resources.
                    Each tag consists of a key and an optional value. For more information, see Tagging Amazon Web Services
                    Resources in Amazon Web Services General Reference.
              required:
              - tags
            example:
              resourceArn: arn:aws:batch:us-east-1:123456789012:job-definition/sleep30:1
              tags:
                Stage: Alpha
      tags:
      - Tags
    delete:
      operationId: UntagResource
      summary: Untag Resource
      description: Deletes specified tags from an Batch resource.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UntagResourceResponse'
              example: {}
        '400':
          description: ClientException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientException'
        '500':
          description: ServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerException'
      parameters:
      - name: resourceArn
        in: path
        required: true
        schema:
          type: string
        description: The Amazon Resource Name (ARN) of the resource from which to delete tags. Batch resources that support
          tags are compute environments, jobs, job definitions, job queues, and scheduling policies. ARNs for child jobs of
          array and multi-node parallel (MNP) jobs aren't supported.
      - name: tagKeys
        in: query
        required: true
        schema:
          type: array
          items:
            type: string
        description: The keys of the tags to be removed.
      tags:
      - Tags
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: batch
  schemas:
    ClientException:
      type: object
      properties:
        message:
          type: string
    ListTagsForResourceResponse:
      type: object
      properties:
        tags:
          type: object
          additionalProperties:
            type: string
          description: The tags for the resource.
    ServerException:
      type: object
      properties:
        message:
          type: string
    TagResourceResponse:
      type: object
      properties: {}
    UntagResourceResponse:
      type: object
      properties: {}
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/batch/service/2016-08-10/batch-2016-08-10.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)