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
By comparing the IDs of the server types, we can avoid additional API requests to get the name of each server type in the check. (available_type.id == server_type.id)
Please note, that it is possible, that a server type is temporarily unavailable in all locations/datacenters.
Bug Report
Current Behavior
We have an API wrapper, which create instance from the
client.servers.create()
. And it takes:location
(random selected fromclient.locations.get_all()
) andserver_types
(fixed value and get fromclient.server_types.get_by_name(server_type_name)
)We were using
cx21
to test but then we noticed the API will throw error ifcx21
isn unavailable in certain locations, like "Hillsboro US"Input Code
Expected behavior/code
It works for some location like
fsn1
because in this location,cx21
type exist. But for something in US, onlycpx21
available.I read through the doc i didn't see anywhere I can link (or get) the available server_types based on location.
Environment
Not Related
Possible Solution
add another function like
client.sever_type.get_by_location()
?Additional context/Screenshots
N/A
The text was updated successfully, but these errors were encountered: