查询实例列表
GET
/
gpu-instance
/
openapi
/
v1
/
gpu
/
instances
curl --request GET \
--url https://api.ppinfra.com/gpu-instance/openapi/v1/gpu/instances \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'
{
"instances": [
{
"id": "<string>",
"name": "<string>",
"clusterId": "<string>",
"clusterName": "<string>",
"status": "<string>",
"imageUrl": "<string>",
"cpuNum": "<string>",
"memory": "<string>",
"gpuNum": "<string>",
"createdAt": "<string>",
"lastStartedAt": "<string>",
"lastStoppedAt": "<string>",
"useTime": "<string>",
"billingMode": "<string>",
"productId": "<string>",
"productName": "<string>",
"rootfsSize": 123,
"statusError": {
"state": "<string>",
"message": "<string>"
},
"envs": [
{
"key": "<string>",
"value": "<string>"
}
],
"diskSize": 123
}
],
"pageSize": 123,
"pageNum": 123,
"total": 123
}
请求头
枚举值: application/json
Bearer 身份验证格式,例如:Bearer {{API 密钥}}。
查询参数
每页返回的最大条目数
当前页码
实例名称(支持模糊查询)
产品名称(支持模糊查询)
实例状态
响应参数
每页返回的最大条目数
当前页码
curl --request GET \
--url https://api.ppinfra.com/gpu-instance/openapi/v1/gpu/instances \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'
{
"instances": [
{
"id": "<string>",
"name": "<string>",
"clusterId": "<string>",
"clusterName": "<string>",
"status": "<string>",
"imageUrl": "<string>",
"cpuNum": "<string>",
"memory": "<string>",
"gpuNum": "<string>",
"createdAt": "<string>",
"lastStartedAt": "<string>",
"lastStoppedAt": "<string>",
"useTime": "<string>",
"billingMode": "<string>",
"productId": "<string>",
"productName": "<string>",
"rootfsSize": 123,
"statusError": {
"state": "<string>",
"message": "<string>"
},
"envs": [
{
"key": "<string>",
"value": "<string>"
}
],
"diskSize": 123
}
],
"pageSize": 123,
"pageNum": 123,
"total": 123
}