GET
/
gpu-instance
/
openapi
/
v1
/
image
/
prewarm
/
quota
获取镜像预热配额信息
curl --request GET \
  --url https://api.ppinfra.com/gpu-instance/openapi/v1/image/prewarm/quota \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>'
{
  "total": 123,
  "limit": 123,
  "perImageSize": 123
}

请求头

Content-Type
string
required
枚举值:application/json。
Authorization
string
required
Bearer 身份验证格式,例如:Bearer {{API 密钥}}。

示例

curl --location --request GET 'https://api.ppinfra.com/gpu-instance/openapi/v1/image/prewarm/quota' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{API_KEY}}'

响应参数

total
integer
required
已创建的预热任务数。
limit
integer
required
最大可创建的预热任务数。
perImageSize
integer
required
单个镜像允许的最大大小(GB)。

响应示例

{
  "total": 2,
  "limit": 5,
  "perImageSize": 100
}