Amazon Lightsail Static IPs API

The Static IPs API from Amazon Lightsail — 6 operation(s) for static ips.

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 6

POST /#AttachStaticIp Attach Static Ip #
POST /#DetachStaticIp Detach Static Ip #
POST /#GetStaticIp Get Static Ip #
POST /#GetStaticIps Get Static Ips #
POST /#AllocateStaticIp Allocate Static Ip #
POST /#ReleaseStaticIp Release Static Ip #

Documentation

Specifications

Schemas & Data

Other Resources

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-static-ips-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-static-ips-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Lightsail Static Ips API
  version: '2016-11-28'
  description: Generated from AWS's published Smithy model for Amazon Lightsail. 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://lightsail.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /#AttachStaticIp:
    post:
      operationId: AttachStaticIp
      summary: Attach Static Ip
      description: Attaches a static IP address to a specific Amazon Lightsail instance.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AttachStaticIpResult'
        '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.AttachStaticIp
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/AttachStaticIpRequest'
      tags:
      - Static Ips
  /#DetachStaticIp:
    post:
      operationId: DetachStaticIp
      summary: Detach Static Ip
      description: Detaches a static IP from the Amazon Lightsail instance to which it is attached.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/DetachStaticIpResult'
        '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.DetachStaticIp
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/DetachStaticIpRequest'
      tags:
      - Static Ips
  /#GetStaticIp:
    post:
      operationId: GetStaticIp
      summary: Get Static Ip
      description: Returns information about an Amazon Lightsail static IP.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/GetStaticIpResult'
        '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.GetStaticIp
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/GetStaticIpRequest'
      tags:
      - Static Ips
  /#GetStaticIps:
    post:
      operationId: GetStaticIps
      summary: Get Static Ips
      description: Returns information about all static IPs in the user's account.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/GetStaticIpsResult'
        '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.GetStaticIps
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/GetStaticIpsRequest'
      tags:
      - Static Ips
  /#AllocateStaticIp:
    post:
      operationId: AllocateStaticIp
      summary: Allocate Static Ip
      description: Allocates a static IP address.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AllocateStaticIpResult'
        '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.AllocateStaticIp
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/AllocateStaticIpRequest'
      tags:
      - Static Ips
  /#ReleaseStaticIp:
    post:
      operationId: ReleaseStaticIp
      summary: Release Static Ip
      description: Deletes a specific static IP from your account.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ReleaseStaticIpResult'
        '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.ReleaseStaticIp
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/ReleaseStaticIpRequest'
      tags:
      - Static Ips
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
    AllocateStaticIpRequest:
      type: object
      properties:
        staticIpName:
          type: string
          description: The name of the static IP address.
      required:
      - staticIpName
    AllocateStaticIpResult:
      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.
    AttachStaticIpRequest:
      type: object
      properties:
        staticIpName:
          type: string
          description: The name of the static IP.
        instanceName:
          type: string
          description: The instance name to which you want to attach the static IP address.
      required:
      - staticIpName
      - instanceName
    AttachStaticIpResult:
      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.
    DetachStaticIpRequest:
      type: object
      properties:
        staticIpName:
          type: string
          description: The name of the static IP to detach from the instance.
      required:
      - staticIpName
    DetachStaticIpResult:
      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.
    GetStaticIpRequest:
      type: object
      properties:
        staticIpName:
          type: string
          description: The name of the static IP in Lightsail.
      required:
      - staticIpName
    GetStaticIpResult:
      type: object
      properties:
        staticIp:
          $ref: '#/components/schemas/StaticIp'
    GetStaticIpsRequest:
      type: object
      properties:
        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 GetStaticIps 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.
    GetStaticIpsResult:
      type: object
      properties:
        staticIps:
          type: array
          items:
            $ref: '#/components/schemas/StaticIp'
          description: An array of key-value pairs containing information about your get static IPs request.
        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 GetStaticIps 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
    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.
    ReleaseStaticIpRequest:
      type: object
      properties:
        staticIpName:
          type: string
          description: The name of the static IP to delete.
      required:
      - staticIpName
    ReleaseStaticIpResult:
      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.
    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
    StaticIp:
      type: object
      properties:
        name:
          type: string
          description: The name of the static IP (StaticIP-Ohio-EXAMPLE).
        arn:
          type: string
          description: The Amazon Resource Name (ARN) of the static IP (arn:aws:lightsail:us-east-2:123456789101:StaticIp/9cbb4a9e-f8e3-4dfe-b57e-12345EXAMPLE).
        supportCode:
          type: string
          description: The support code. Include this code in your email to support when you have questions about an instance
            or another resource in Lightsail. This code enables our support team to look up your Lightsail information more
            easily.
        createdAt:
          type: string
          format: date-time
          description: The timestamp when the static IP was created (1479735304.222).
        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 resource type (usually StaticIp).
        ipAddress:
          type: string
          description: The static IP address.
        attachedTo:
          type: string
          description: The instance where the static IP is attached (Amazon_Linux-1GB-Ohio-1).
        isAttached:
          type: boolean
          description: A Boolean value indicating whether the static IP is attached.
    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)