get_regions(config: ClientConfig | str | dict | None = None, *, refresh: bool = False, maxage: float | None = None, no_cache: bool = False) List[Region][source]#

Retrieve available Solver API regions.

  • config – Client configuration used for requests to Metadata API. Given as a ClientConfig object, it defines connection parameters in full. Raw config (full or partial) loaded from a file/env with load_config() can be passed in as a dict and is validated as ClientConfig. A string config value is interpreted as metadata_api_endpoint.

  • refresh – Force regions cache refresh.

  • maxage – Maximum allowed age, in seconds, of cached regions metadata.

  • no_cache – Do not use cache.


List of Region objects, each describing one region.

Added in version 0.11.0: Added get_regions().