Skip to content

microvms: document fork and the fork_id and forked_from filters - #1369

Open
rak16 wants to merge 2 commits into
digitalocean:mainfrom
rak16:rahmadkhan/microvms-fork
Open

rak16 wants to merge 2 commits into
digitalocean:mainfrom
rak16:rahmadkhan/microvms-fork

Conversation

@rak16

@rak16 rak16 commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Summary

Documents MicroVM fork: one request that creates one or more copies of a running or paused MicroVM.

Ready for review; hold merge until the fork rollout starts. Fork is behind the fork feature gate and is not enabled for any team yet.

What changed

  • New operation POST /v2/microvms/{microvm_id}/fork (microvms_post_fork), scope microvm:create.
    • Request: optional count, name, tags.
    • Response (201): microvms (the copies, in creating), fork_id, checkpoint_id.
    • The description states that the request is not idempotent and how to check for the copies with forked_from before retrying.
  • MicroVM object: fork_id and forked_from, present only on a MicroVM a fork created.
  • GET /v2/microvms: fork_id and forked_from filters.
  • GET /v2/microvms/options: the fork feature in the features description.
  • responses/errors.yml#/conflict: updated the 409 example code from CONFLICT to ALREADY_EXISTS to match microdroplet-api (codes.AlreadyExists → HTTP 409 ALREADY_EXISTS).
  • Tag description mentions fork.

Testing

make lint passes with 0 errors. The warnings it prints are in files this PR does not touch.

Related

Add POST /v2/microvms/{microvm_id}/fork, the fork_id and forked_from fields
on a MicroVM, the two matching list filters, and the fork feature gate.
@rak16
rak16 marked this pull request as ready for review November 26, 2026 16:50

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant