跳转到主要内容
GET
/
gpus
/
v2
/
endpoints
查询 Endpoint 列表
curl --request GET \
  --url https://api.ppio.com/gpus/v2/endpoints \
  --header 'Authorization: <authorization>'
{
  "data": [
    {
      "id": "endpoint-id",
      "name": "example-endpoint",
      "app_name": "example-app",
      "status": {
        "status": "running",
        "error": "",
        "message": ""
      },
      "url": "https://endpoint.example.com/endpoint-id",
      "product_id": "product-id",
      "worker_config": {
        "max_replicas": 2,
        "min_replicas": 0,
        "idle_timeout": 300,
        "max_concurrent_per_worker": 10,
        "gpu_num": 1,
        "rootfs_size_gb": 20,
        "min_cuda_version": "12.4",
        "request_timeout": 60
      },
      "policy": {
        "type": "queue",
        "value": 100
      },
      "image": "registry.example.com/namespace/image:tag",
      "registry_auth_id": "registry-auth-id",
      "entrypoint": "",
      "command": "go run main.go",
      "volumes": [
        {
          "id": "storage-id",
          "type": "network",
          "size": 123,
          "mount_point": "/data"
        }
      ],
      "envs": [
        {
          "key": "ENV_NAME",
          "value": "ENV_VALUE"
        }
      ],
      "ports": [
        8080
      ],
      "workers": [
        {
          "id": "worker-id",
          "status": {
            "status": "ready",
            "error": "",
            "message": ""
          },
          "log": "https://logs.example.com/worker-id",
          "health": true,
          "drain": false
        }
      ],
      "health_check": {
        "path": "/healthz",
        "port": 8080
      },
      "region_id": "region-id",
      "member_id": "member-id",
      "owner_id": "55555555-e29b-41d4-a716-446655440000",
      "created_at": 1710000000
    }
  ],
  "next_cursor": "next-endpoint-cursor",
  "has_more": true
}

请求头

Authorization
string
必填

Bearer 身份验证格式,例如:Bearer {{API 密钥}}

查询参数

limit
integer

返回数量限制。整数,取值 >= 0。

cursor
string

分页游标。字符串,长度限制:0-1024 字符。

keyword
string

搜索关键字。

member_ids
string

成员 ID 过滤,多个用英文逗号分隔。

响应

200 - application/json

查询成功

data
object[]

Endpoint 列表

next_cursor
string

下一页游标。无下一页时为空字符串

示例:

"next-endpoint-cursor"

has_more
boolean

是否还有下一页

示例:

true

最后修改于 2026年6月22日