Amazon Lightsail Tags API

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

GitHub OpenAPI

Operations 2

POST /#TagResource Tag Resource #
POST /#UntagResource 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-lightsail:amazon-lightsail-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-lightsail-tags-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Lightsail Tags API
  version: '2016-11-28'
  description: Generated from AWS's published Smithy model for Amazon Lightsail. 2 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://lightsail.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /#TagResource:
    post:
      operationId: TagResource
      summary: Tag Resource
      description: Adds one or more tags to the specified Amazon Lightsail resource. Each resource can have a maximum of 50
        tags. Each tag consists of a key and an optional value. Tag keys must be unique per resource. For more information
        about tags, see the Amazon Lightsail Developer Guide. The tag resource operation supports tag-based access control
        via request tags and resource tags applied to the resource identified by resource name. For more information, see
        the Amazon Lightsail Developer Guide.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/TagResourceResult'
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '428':
          description: AccountSetupInProgressException; RegionSetupInProgressException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AccountSetupInProgressException'
        '400':
          description: InvalidInputException; OperationFailureException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
        '404':
          description: NotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '500':
          description: ServiceException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ServiceException'
        '401':
          description: UnauthenticatedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/UnauthenticatedException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - Lightsail_20161128.TagResource
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/TagResourceRequest'
      tags:
      - Tags
  /#UntagResource:
    post:
      operationId: UntagResource
      summary: Untag Resource
      description: Deletes the specified set of tag keys and their values from the specified Amazon Lightsail resource. The
        untag resource operation supports tag-based access control via request tags and resource tags applied to the resource
        identified by resource name. For more information, see the Amazon Lightsail Developer Guide.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/UntagResourceResult'
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '428':
          description: AccountSetupInProgressException; RegionSetupInProgressException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AccountSetupInProgressException'
        '400':
          description: InvalidInputException; OperationFailureException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
        '404':
          description: NotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '500':
          description: ServiceException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ServiceException'
        '401':
          description: UnauthenticatedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/UnauthenticatedException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - Lightsail_20161128.UntagResource
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/UntagResourceRequest'
      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: lightsail
  schemas:
    AccessDeniedException:
      type: object
      properties:
        code:
          type: string
        docs:
          type: string
        message:
          type: string
        tip:
          type: string
    AccountSetupInProgressException:
      type: object
      properties:
        code:
          type: string
        docs:
          type: string
        message:
          type: string
        tip:
          type: string
    InvalidInputException:
      type: object
      properties:
        code:
          type: string
        docs:
          type: string
        message:
          type: string
        tip:
          type: string
    NotFoundException:
      type: object
      properties:
        code:
          type: string
        docs:
          type: string
        message:
          type: string
        tip:
          type: string
    Operation:
      type: object
      properties:
        id:
          type: string
          description: The ID of the operation.
        resourceName:
          type: string
          description: The resource name.
        resourceType:
          type: string
          enum:
          - ContainerService
          - Instance
          - StaticIp
          - KeyPair
          - InstanceSnapshot
          - Domain
          - PeeredVpc
          - LoadBalancer
          - LoadBalancerTlsCertificate
          - Disk
          - DiskSnapshot
          - RelationalDatabase
          - RelationalDatabaseSnapshot
          - ExportSnapshotRecord
          - CloudFormationStackRecord
          - Alarm
          - ContactMethod
          - Distribution
          - Certificate
          - Bucket
          description: The resource type.
        createdAt:
          type: string
          format: date-time
          description: The timestamp when the operation was initialized (1479816991.349).
        location:
          $ref: '#/components/schemas/ResourceLocation'
        isTerminal:
          type: boolean
          description: A Boolean value indicating whether the operation is terminal.
        operationDetails:
          type: string
          description: Details about the operation (Debian-1GB-Ohio-1).
        operationType:
          type: string
          enum:
          - DeleteKnownHostKeys
          - DeleteInstance
          - CreateInstance
          - StopInstance
          - StartInstance
          - RebootInstance
          - OpenInstancePublicPorts
          - PutInstancePublicPorts
          - CloseInstancePublicPorts
          - AllocateStaticIp
          - ReleaseStaticIp
          - AttachStaticIp
          - DetachStaticIp
          - UpdateDomainEntry
          - DeleteDomainEntry
          - CreateDomain
          - DeleteDomain
          - CreateInstanceSnapshot
          - DeleteInstanceSnapshot
          - CreateInstancesFromSnapshot
          - CreateLoadBalancer
          - DeleteLoadBalancer
          - AttachInstancesToLoadBalancer
          - DetachInstancesFromLoadBalancer
          - UpdateLoadBalancerAttribute
          - CreateLoadBalancerTlsCertificate
          - DeleteLoadBalancerTlsCertificate
          - AttachLoadBalancerTlsCertificate
          - CreateDisk
          - DeleteDisk
          - AttachDisk
          - DetachDisk
          - CreateDiskSnapshot
          - DeleteDiskSnapshot
          - CreateDiskFromSnapshot
          - CreateRelationalDatabase
          - UpdateRelationalDatabase
          - DeleteRelationalDatabase
          - CreateRelationalDatabaseFromSnapshot
          - CreateRelationalDatabaseSnapshot
          - DeleteRelationalDatabaseSnapshot
          - UpdateRelationalDatabaseParameters
          - StartRelationalDatabase
          - RebootRelationalDatabase
          - StopRelationalDatabase
          - EnableAddOn
          - DisableAddOn
          - PutAlarm
          - GetAlarms
          - DeleteAlarm
          - TestAlarm
          - CreateContactMethod
          - GetContactMethods
          - SendContactMethodVerification
          - DeleteContactMethod
          - CreateDistribution
          - UpdateDistribution
          - DeleteDistribution
          - ResetDistributionCache
          - AttachCertificateToDistribution
          - DetachCertificateFromDistribution
          - UpdateDistributionBundle
          - SetIpAddressType
          - CreateCertificate
          - DeleteCertificate
          - CreateContainerService
          - UpdateContainerService
          - DeleteContainerService
          - CreateContainerServiceDeployment
          - CreateContainerServiceRegistryLogin
          - RegisterContainerImage
          - DeleteContainerImage
          - CreateBucket
          - DeleteBucket
          - CreateBucketAccessKey
          - DeleteBucketAccessKey
          - UpdateBucketBundle
          - UpdateBucket
          - SetResourceAccessForBucket
          - UpdateInstanceMetadataOptions
          - StartGUISession
          - StopGUISession
          - SetupInstanceHttps
          - GetProfile
          description: The type of operation.
        status:
          type: string
          enum:
          - NotStarted
          - Started
          - Failed
          - Completed
          - Succeeded
          description: The status of the operation.
        statusChangedAt:
          type: string
          format: date-time
          description: The timestamp when the status was changed (1479816991.349).
        errorCode:
          type: string
          description: The error code.
        errorDetails:
          type: string
          description: The error details.
    ResourceLocation:
      type: object
      properties:
        availabilityZone:
          type: string
          description: The Availability Zone. Follows the format us-east-2a (case-sensitive).
        regionName:
          type: string
          enum:
          - us-east-1
          - us-east-2
          - us-west-1
          - us-west-2
          - eu-west-1
          - eu-west-2
          - eu-west-3
          - eu-central-1
          - eu-north-1
          - eu-south-2
          - ca-central-1
          - ap-east-1
          - ap-south-1
          - ap-southeast-1
          - ap-southeast-2
          - ap-northeast-1
          - ap-northeast-2
          - ap-southeast-3
          - ap-southeast-5
          - sa-east-1
          description: The Amazon Web Services Region name.
    ServiceException:
      type: object
      properties:
        code:
          type: string
        docs:
          type: string
        message:
          type: string
        tip:
          type: string
    Tag:
      type: object
      properties:
        key:
          type: string
          description: 'The key of the tag. Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8,
            or the following characters: + - = . _ : / @'
        value:
          type: string
          description: 'The value of the tag. Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in
            UTF-8, or the following characters: + - = . _ : / @'
    TagResourceRequest:
      type: object
      properties:
        resourceName:
          type: string
          description: The name of the resource to which you are adding tags.
        resourceArn:
          type: string
          description: The Amazon Resource Name (ARN) of the resource to which you want to add a tag.
        tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
          description: The tag key and optional value.
      required:
      - resourceName
      - tags
    TagResourceResult:
      type: object
      properties:
        operations:
          type: array
          items:
            $ref: '#/components/schemas/Operation'
          description: An array of objects that describe the result of the action, such as the status of the request, the
            timestamp of the request, and the resources affected by the request.
    UnauthenticatedException:
      type: object
      properties:
        code:
          type: string
        docs:
          type: string
        message:
          type: string
        tip:
          type: string
    UntagResourceRequest:
      type: object
      properties:
        resourceName:
          type: string
          description: The name of the resource from which you are removing a tag.
        resourceArn:
          type: string
          description: The Amazon Resource Name (ARN) of the resource from which you want to remove a tag.
        tagKeys:
          type: array
          items:
            type: string
          description: The tag keys to delete from the specified resource.
      required:
      - resourceName
      - tagKeys
    UntagResourceResult:
      type: object
      properties:
        operations:
          type: array
          items:
            $ref: '#/components/schemas/Operation'
          description: An array of objects that describe the result of the action, such as the status of the request, the
            timestamp of the request, and the resources affected by the request.
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/lightsail/service/2016-11-28/lightsail-2016-11-28.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)