Skip to content

Commit 3c92763

Browse files
author
Adrien Pensart
committed
feat(compute): support KeyName in server create
1 parent 2adf797 commit 3c92763

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

openstack/compute/v2/servers/requests.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,9 @@ type CreateOpts struct {
240240
// Tags allows a server to be tagged with single-word metadata.
241241
// Requires microversion 2.52 or later.
242242
Tags []string `json:"tags,omitempty"`
243+
244+
// KeyName is the name of the key pair.
245+
KeyName string `json:"key_name,omitempty"`
243246
}
244247

245248
// ToServerCreateMap assembles a request body based on the contents of a

0 commit comments

Comments
 (0)