Firecracker Hotplug API

The Hotplug API from Firecracker — 1 operation(s) for hotplug.

Operations 3

PUT /hotplug/memory Configures the hotpluggable memory #
PATCH /hotplug/memory Updates the size of the hotpluggable memory region #
GET /hotplug/memory Retrieves the status of the hotpluggable memory #

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/firecracker-hotplug-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

firecracker-hotplug-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Firecracker Actions Hotplug API
  description: RESTful public-facing API. The API is accessible through HTTP calls on specific URLs carrying JSON modeled data. The transport medium is a Unix Domain Socket.
  version: 1.16.0-dev
  termsOfService: ''
  contact:
    email: firecracker-maintainers@amazon.com
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
- url: http://localhost/
tags:
- name: Hotplug
paths:
  /hotplug/memory:
    put:
      summary: Configures the hotpluggable memory
      operationId: putMemoryHotplug
      description: Configure the hotpluggable memory, which is a virtio-mem device, with an associated memory area that can be hot(un)plugged in the guest on demand using the PATCH API.
      responses:
        204:
          description: Hotpluggable memory configured
        default:
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Hotplug
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MemoryHotplugConfig'
        description: Hotpluggable memory configuration
        required: true
    patch:
      summary: Updates the size of the hotpluggable memory region
      operationId: patchMemoryHotplug
      description: Updates the size of the hotpluggable memory region. The guest will plug and unplug memory to hit the requested memory.
      responses:
        204:
          description: Hotpluggable memory configured
        default:
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Hotplug
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MemoryHotplugSizeUpdate'
        description: Hotpluggable memory size update
        required: true
    get:
      summary: Retrieves the status of the hotpluggable memory
      operationId: getMemoryHotplug
      description: Reuturn the status of the hotpluggable memory. This can be used to follow the progress of the guest after a PATCH API.
      responses:
        200:
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MemoryHotplugStatus'
        default:
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Hotplug
components:
  schemas:
    Error:
      type: object
      properties:
        fault_message:
          type: string
          description: A description of the error condition
          readOnly: true
    MemoryHotplugStatus:
      type: object
      description: The status of the hotpluggable memory device (virtio-mem)
      properties:
        total_size_mib:
          type: integer
          description: Total size of the hotpluggable memory in MiB.
        slot_size_mib:
          type: integer
          description: Slot size for the hotpluggable memory in MiB.
        block_size_mib:
          type: integer
          description: (Logical) Block size for the hotpluggable memory in MiB.
        plugged_size_mib:
          type: integer
          description: Plugged size for the hotpluggable memory in MiB.
        requested_size_mib:
          type: integer
          description: Requested size for the hotpluggable memory in MiB.
    MemoryHotplugConfig:
      type: object
      description: The configuration of the hotpluggable memory device (virtio-mem)
      properties:
        total_size_mib:
          type: integer
          description: Total size of the hotpluggable memory in MiB.
        slot_size_mib:
          type: integer
          default: 128
          minimum: 128
          description: Slot size for the hotpluggable memory in MiB. This will determine the granularity of hot-plug memory from the host. Refer to the device documentation on how to tune this value.
        block_size_mib:
          type: integer
          default: 2
          minimum: 2
          description: (Logical) Block size for the hotpluggable memory in MiB. This will determine the logical granularity of hot-plug memory for the guest. Refer to the device documentation on how to tune this value.
    MemoryHotplugSizeUpdate:
      type: object
      description: An update to the size of the hotpluggable memory region.
      properties:
        requested_size_mib:
          type: integer
          description: New target region size.