Route per-instance start API#2618
Merged
Merged
Conversation
4771e98 to
cd01956
Compare
jemoreira
reviewed
Jun 2, 2026
jemoreira
left a comment
Member
There was a problem hiding this comment.
LG but please wait until support for the operation is added in cvd before merging this one
873914f to
c2ce32f
Compare
c2ce32f to
6782cf8
Compare
jemoreira
approved these changes
Jun 8, 2026
jemoreira
left a comment
Member
There was a problem hiding this comment.
I don't see anything related to snapshots in this change, should the title be updated?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Exposes per-instance start functionality through the HO API. This change ensures that users can start a specific stopped instance, with support for passing a SnapshotID in the request body to boot the instance from a snapshot.
Key Changes
Dedicated Handler: Implemented newStartCVDInstanceHandler and startCVDInstanceHandler in controller.go. This handler correctly decodes the apiv1.StartCVDRequest from the POST request body.
StartCVDInstanceAction: Added StartCVDInstanceAction in startcvdaction.go to handle the logic. It validates the request, locates the snapshot if provided, and invokes cvdCLI.LazySelectInstance().Start(opts).
Route Redirection: Updated controller.go to map /cvds/{group}/{name}/:start to newStartCVDInstanceHandler instead of the group instance command handler.
Bug
b/459780275
Document
go/cuttlefish-per-instance-control
Backend pr
#2617