## ListGateways `client.Gateways.List(ctx, params) (*GatewaysPage[Gateway], error)` **post** `/gitpod.v1.GatewayService/ListGateways` ListGateways ### Parameters - `params GatewayListParams` - `Token param.Field[string]` Query param - `PageSize param.Field[int64]` Query param - `Pagination param.Field[GatewayListParamsPagination]` Body param: pagination contains the pagination options for listing gateways - `Token string` Token for the next set of results that was returned as next_token of a PaginationResponse - `PageSize int64` Page size is the maximum number of results to retrieve per page. Defaults to 25. Maximum 100. ### Returns - `type Gateway struct{…}` Gateway represents a system gateway that provides access to services - `Name string` name is the human-readable name of the gateway. name is unique across all gateways. - `URL string` url of the gateway - `Region string` region is the geographical region where the gateway is located ### Example ```go package main import ( "context" "fmt" "github.com/gitpod-io/gitpod-sdk-go" "github.com/gitpod-io/gitpod-sdk-go/option" ) func main() { client := gitpod.NewClient( option.WithBearerToken("My Bearer Token"), ) page, err := client.Gateways.List(context.TODO(), gitpod.GatewayListParams{ }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", page) } ``` #### Response ```json { "gateways": [ { "name": "name", "url": "url", "region": "region" } ], "pagination": { "nextToken": "nextToken" } } ```