feat: new APIs for traffic pricings #827
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The API has been updated to provide a better insight and more flexibility for displaying the pricing of traffic for servers and load balancers.
In addition to the new fields, the old fields are deprecated and will be set to
null
in the API on 2024-08-05.In the CLI this mostly affects the
hcloud server-type list
command, where we have previously shown a columntraffic
. This is no longer possible, because there is no single included traffic for a server type, and instead this depends on the location. We have set the field to-
and removed it from the default columns. The information is still available inhcloud server-type describe <server-type-name>
, now in the "Pricing" section of the output.This also affects the JSON and YAML output of both
hcloud server-type list
andhcloud server-type describe
as we use the API schema for this.You can learn more about this change in our changelog.
release-please Info
BEGIN_COMMIT_OVERRIDE
feat(server-type): show traffic details for each location in describe output
feat(load-balancer-type): show traffic details for each location in describe output
fix(server-type): remove deprecated traffic column
END_COMMIT_OVERRIDE