Skip to content

how to update snapshot name/description #3366

Answered by dougm
antiphy asked this question in Q&A
Discussion options

You must be logged in to vote

The method is RenameSnapshot
Currently the generated method is available, but looks like we don't have any govc command or helper methods. Untested example:

	req := types.RenameSnapshot{
		This:        snapshotRef,
		Name:        "current-snapshot",
		Description: "The Current Snapshot",
	}

	_, err := methods.RenameSnapshot(ctx, vm.Client(), &req)
	if err != nil {
		return err
	}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@antiphy
Comment options

Answer selected by dougm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants