Skip to content

Commit 33ffd38

Browse files
author
Adrien Pensart
committed
feat(compute): support user data update during rebuild
1 parent 0fc32bd commit 33ffd38

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

openstack/compute/v2/servers/requests.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,10 @@ type RebuildOpts struct {
486486
// Personality [optional] includes files to inject into the server at launch.
487487
// Rebuild will base64-encode file contents for you.
488488
Personality Personality `json:"personality,omitempty"`
489+
490+
// Configuration information or scripts to use upon rebuild. Must be Base64 encoded. Restricted to 65535 bytes.
491+
// If null is specified, the existing user_data is unset.
492+
UserData *string `json:"user_data"`
489493
}
490494

491495
// ToServerRebuildMap formats a RebuildOpts struct into a map for use in JSON

0 commit comments

Comments
 (0)