查询应用市场Pod
获取应用市场中所有可用的Pod列表,支持分页查询和按名称筛选。无需认证: 此接口为公开接口,无需提供API Key即可访问。
请求参数
页码,从1开始
每页数量
Pod名称,支持模糊搜索
响应参数
响应状态码
响应消息
返回数据
curl --request GET \
--url https://www.chenyu.cn/api/open/v2/pod/list
{
"code": 123,
"msg": "<string>",
"data": {
"pod_list": [
{
"title": "<string>",
"uuid": "<string>",
"remark": "<string>",
"pod_tag": [
{}
],
"price": {
"hour": 123,
"day": 123,
"week": 123,
"month": 123,
"year": 123
}
}
],
"total": 123
}
}
查询应用市场中可用的Pod列表
curl --request GET \
--url https://www.chenyu.cn/api/open/v2/pod/list
{
"code": 123,
"msg": "<string>",
"data": {
"pod_list": [
{
"title": "<string>",
"uuid": "<string>",
"remark": "<string>",
"pod_tag": [
{}
],
"price": {
"hour": 123,
"day": 123,
"week": 123,
"month": 123,
"year": 123
}
}
],
"total": 123
}
}
import requests
url = "https://www.chenyu.cn/api/open/v2/pod/list"
headers = {
"Content-Type": "application/json"
}
params = {
"page": 1,
"page_size": 10,
"name": "pytorch"
}
response = requests.get(url, headers=headers, params=params)
result = response.json()
print(f"总共找到 {result['data']['total']} 个Pod")
for pod in result['data']['pod_list']:
print(f"Pod名称: {pod['title']}")
print(f"描述: {pod['remark']}")
print(f"按小时价格: {pod['price']['hour']} 元")
print("---")
{
"code": 0,
"msg": "success",
"data": {
"pod_list": [
{
"title": "PyTorch 深度学习环境",
"uuid": "pod_12345678-1234-1234-1234-123456789012",
"remark": "预装PyTorch 2.0,支持CUDA 11.8,适合深度学习训练",
"pod_tag": ["v1.0", "v1.1", "v2.0"],
"price": {
"hour": 2.5,
"day": 50.0,
"week": 300.0,
"month": 1200.0,
"year": 12000.0
}
}
],
"total": 1
}
}