查询 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
}Endpoint
查询 Endpoint 列表
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
}请求头
Bearer 身份验证格式,例如:Bearer {{API 密钥}}。
查询参数
返回数量限制。整数,取值 >= 0。
分页游标。字符串,长度限制:0-1024 字符。
搜索关键字。
成员 ID 过滤,多个用英文逗号分隔。
最后修改于 2026年6月22日
⌘I