Skip to main content

List the team's reserved TCP ports

get/v1/team/endpoints

List the team's reserved TCP ports (for team admins)

Request​

Authorization

  • Authorizationstringheaderrequired

    Key in the format Bearer <API-key>. Create a key on the API keys page.

Query Parameters

  • page_size integer<int64>
  • page integer<int64>
  • user_id integer<int64>

    Only ports of the user with this ID; 0 means ports of all members

  • search string

    Case-insensitive search by alias, address (hostname:port), and owner name and email

  • order_by string

    Sort order: created_at (default, newest first), alias (alphabetical), address (by host and port), owner (by owner name, or by email if there is no name)

Response

  • Array [
  • aliasstring

    Alias

    Example: postgres
    created_atstring<date-time>

    Creation date

    hostnamestring

    Hostname

    Example: ru.tuna.am
    idinteger<int64>

    Identifier

    Example: 42
    last_tunnels object[]

    Recent tunnels. Kept for compatibility; use GET /v1/endpoints/{id}/tunnels

  • Array [
  • addressstring

    Address

    Example: 5432
    command_namestring

    Command

    Possible values: [tcp, sshd, postgres, redis, mysql]

    Example: postgres
  • ]
  • locationstring

    Location: ru, nl, or global for a port in a cell zone, which doesn't need one

    Possible values: [ru, nl, global]

    Example: ru
    owner object
    activeboolean

    Active flag

    avatar_urlstring

    Avatar

    Example: https://www.gravatar.com/avatar/00000000000000000000000000000000
    emailstring

    Email

    Example: jane@example.com
    idinteger<int64>

    Identifier

    Example: 42
    namestring

    Name

    Example: Jane Doe
    rolestring

    Role

    Possible values: [primary_owner, owner, admin, member]

    Example: member
    portinteger<uint32>

    Port

    Possible values: <= 65535

    Example: 20001
    provisioned_bystring

    What created or modified the object: terraform means the Terraform provider, empty means another client

    typestring

    Endpoint type

    Possible values: [dynamic, static]

    Example: static
  • ]