You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(#19) Update vmfloaty to expect /api/v1 in URL for disk endpoint
This commit updates floaty to use a new endpoint to modify vms. Now you
can use the modify command to extend the disk space of a given vm. The
downside is this new endpoint only exists at /api/v1 on the pooler, and
the way Faraday works required an update to removing a leading slash for
each request endpoint. Users should update their URL in the floaty dot
file to include a /api/v1 at the end of the pooler url
Copy file name to clipboardExpand all lines: lib/vmfloaty.rb
+24-7
Original file line number
Diff line number
Diff line change
@@ -125,29 +125,46 @@ def run
125
125
126
126
command:modifydo |c|
127
127
c.syntax='floaty modify [hostname]'
128
-
c.summary='Modify a vms tagsand TTL'
128
+
c.summary='Modify a vms tags, TTL, and disk space'
129
129
c.description=''
130
130
c.example'Modifies myhost1 to have a TTL of 12 hours and adds a custom tag','floaty modify myhost1 --lifetime 12 --url https://myurl --token mytokenstring --tags \'{"tag":"myvalue"}\''
131
131
c.option'--verbose','Enables verbose output'
132
132
c.option'--url STRING',String,'URL of vmpooler'
133
133
c.option'--token STRING',String,'Token for vmpooler'
134
134
c.option'--lifetime INT',Integer,'VM TTL (Integer, in hours)'
135
+
c.option'--disk INT',Integer,'Increases VM disk space (Integer, in gb)'
135
136
c.option'--tags STRING',String,'free-form VM tagging (json)'
0 commit comments