## ListGateways `gateways.list(GatewayListParams**kwargs) -> SyncGatewaysPage[Gateway]` **post** `/gitpod.v1.GatewayService/ListGateways` ListGateways ### Parameters - `token: Optional[str]` - `page_size: Optional[int]` - `pagination: Optional[Pagination]` pagination contains the pagination options for listing gateways - `token: Optional[str]` Token for the next set of results that was returned as next_token of a PaginationResponse - `page_size: Optional[int]` Page size is the maximum number of results to retrieve per page. Defaults to 25. Maximum 100. ### Returns - `class Gateway: …` Gateway represents a system gateway that provides access to services - `name: str` name is the human-readable name of the gateway. name is unique across all gateways. - `url: str` url of the gateway - `region: Optional[str]` region is the geographical region where the gateway is located ### Example ```python import os from gitpod import Gitpod client = Gitpod( bearer_token=os.environ.get("GITPOD_API_KEY"), # This is the default and can be omitted ) page = client.gateways.list() page = page.gateways[0] print(page.name) ``` #### Response ```json { "gateways": [ { "name": "name", "url": "url", "region": "region" } ], "pagination": { "nextToken": "nextToken" } } ```