Amazon Lightsail Setup API

The Setup API from Amazon Lightsail — 1 operation(s) for setup.

GitHub OpenAPI

Operations 1

POST /#GetSetupHistory Get Setup History #

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-setup-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-setup-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Lightsail Setup API
  version: '2016-11-28'
  description: Generated from AWS's published Smithy model for Amazon Lightsail. 1 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:
  /#GetSetupHistory:
    post:
      operationId: GetSetupHistory
      summary: Get Setup History
      description: Returns detailed information for five of the most recent SetupInstanceHttps requests that were ran on the
        target instance.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/GetSetupHistoryResult'
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '400':
          description: InvalidInputException
          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'
        '428':
          description: RegionSetupInProgressException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/RegionSetupInProgressException'
        '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.GetSetupHistory
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/GetSetupHistoryRequest'
      tags:
      - Setup
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
    GetSetupHistoryRequest:
      type: object
      properties:
        resourceName:
          type: string
          description: The name of the resource for which you are requesting information.
        pageToken:
          type: string
          description: The token to advance to the next page of results from your request. To get a page token, perform an
            initial GetSetupHistory request. If your results are paginated, the response will return a next page token that
            you can specify as the page token in a subsequent request.
      required:
      - resourceName
    GetSetupHistoryResult:
      type: object
      properties:
        setupHistory:
          type: array
          items:
            $ref: '#/components/schemas/SetupHistory'
          description: The historical information that's returned.
        nextPageToken:
          type: string
          description: The token to advance to the next page of results from your request. A next page token is not returned
            if there are no more results to display. To get the next page of results, perform another GetSetupHistory request
            and specify the next page token using the pageToken parameter.
    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
    RegionSetupInProgressException:
      type: object
      properties:
        code:
          type: string
        docs:
          type: string
          description: Regions and Availability Zones for Lightsail
        message:
          type: string
        tip:
          type: string
          description: Opt-in Regions typically take a few minutes to finish setting up before you can work with them. Wait
            a few minutes and try again.
    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
    SetupExecutionDetails:
      type: object
      properties:
        command:
          type: string
          description: The command that was executed.
        dateTime:
          type: string
          format: date-time
          description: The timestamp for when the request was run.
        name:
          type: string
          description: The name of the target resource.
        status:
          type: string
          enum:
          - succeeded
          - failed
          - inProgress
          description: The status of the SetupInstanceHttps request.
        standardError:
          type: string
          description: The text written by the command to stderr.
        standardOutput:
          type: string
          description: The text written by the command to stdout.
        version:
          type: string
          description: The current version of the script..
    SetupHistory:
      type: object
      properties:
        operationId:
          type: string
          description: A GUID that's used to identify the operation.
        request:
          $ref: '#/components/schemas/SetupRequest'
        resource:
          $ref: '#/components/schemas/SetupHistoryResource'
        executionDetails:
          type: array
          items:
            $ref: '#/components/schemas/SetupExecutionDetails'
          description: Describes the full details of the request.
        status:
          type: string
          enum:
          - succeeded
          - failed
          - inProgress
          description: The status of the request.
    SetupHistoryResource:
      type: object
      properties:
        name:
          type: string
          description: The name of the Lightsail resource.
        arn:
          type: string
          description: The Amazon Resource Name (ARN) of the Lightsail resource.
        createdAt:
          type: string
          format: date-time
          description: The timestamp for when the resource was created.
        location:
          $ref: '#/components/schemas/ResourceLocation'
        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 Lightsail resource type. For example, Instance.
    SetupRequest:
      type: object
      properties:
        instanceName:
          type: string
          description: The name of the Lightsail instance.
        domainNames:
          type: array
          items:
            type: string
          description: The name of the domain and subdomains that the SSL/TLS certificate secures.
        certificateProvider:
          type: string
          enum:
          - LetsEncrypt
          description: The Certificate Authority (CA) that issues the SSL/TLS certificate.
    UnauthenticatedException:
      type: object
      properties:
        code:
          type: string
        docs:
          type: string
        message:
          type: string
        tip:
          type: string
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)