Skip to content
Ona Docs

ListGateways

gateways.list(GatewayListParams**kwargs) -> SyncGatewaysPage[Gateway]
POST/gitpod.v1.GatewayService/ListGateways

ListGateways

ParametersExpand Collapse
token: Optional[str]
page_size: Optional[int]
maximum100
minimum0
ReturnsExpand Collapse
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

ListGateways

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)
{
  "gateways": [
    {
      "name": "name",
      "url": "url",
      "region": "region"
    }
  ],
  "pagination": {
    "nextToken": "nextToken"
  }
}
Returns Examples
{
  "gateways": [
    {
      "name": "name",
      "url": "url",
      "region": "region"
    }
  ],
  "pagination": {
    "nextToken": "nextToken"
  }
}