Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server: get actual disk size #236

Closed
martinvonwittich opened this issue Apr 27, 2020 · 3 comments · Fixed by #269
Closed

Server: get actual disk size #236

martinvonwittich opened this issue Apr 27, 2020 · 3 comments · Fixed by #269
Labels

Comments

@martinvonwittich
Copy link

Not sure if this is the right place for this bug report, because I think this is actually a missing feature in the API, but I can't find a repository for that.

With hcloud server list --output json, I can get a list of my servers in JSON format. This'll provide the server type's disk size as .server_type.disk:

martin@martin ~ % cat list.json | jq '.[] | select(.name == "some-server") | .server_type.disk'       
80

Unfortunately, this doesn't necessarily represent the server's actual disk size, and I don't see a field in the JSON for the actual disk size. In this case, the server has been rescaled from CX21 to CX31 with the check box "CPU and RAM only" checked, so it's actual disk size is 40.

The web interface is able to display the actual disk size. Could we get this feature in the API/hcloud too? That would be very useful for us to identify servers that were accidentally rescaled with the "CPU and RAM only" option.

@github-actions
Copy link
Contributor

This issue has been marked as stale because it has not had recent activity. The bot will close the issue if no further action occurs.

@github-actions github-actions bot added the stale label May 28, 2020
@martinvonwittich
Copy link
Author

This issue has been marked as stale because it has not had recent activity. The bot will close the issue if no further action occurs.

Uh, could you please not?

@LKaemmerling LKaemmerling added pinned and removed stale labels May 28, 2020
@LKaemmerling
Copy link
Member

@martinvonwittich the next CLI release will include a new field which represents the current disk size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants