获取 Endpoint 参数限制范围
curl --request GET \
--url https://api.ppio.com/gpu-instance/openapi/v1/endpoint/limit \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'import requests
url = "https://api.ppio.com/gpu-instance/openapi/v1/endpoint/limit"
headers = {
"Content-Type": "<content-type>",
"Authorization": "<authorization>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Content-Type': '<content-type>', Authorization: '<authorization>'}
};
fetch('https://api.ppio.com/gpu-instance/openapi/v1/endpoint/limit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ppio.com/gpu-instance/openapi/v1/endpoint/limit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ppio.com/gpu-instance/openapi/v1/endpoint/limit"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ppio.com/gpu-instance/openapi/v1/endpoint/limit")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ppio.com/gpu-instance/openapi/v1/endpoint/limit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"minRootfsSize": 123,
"maxRootfsSize": 123,
"freeRootfsSize": 123,
"minLocalVolumeSize": 123,
"maxLocalVolumeSize": 123,
"freeLocalVolumeSize": 123,
"minWorkerNum": 123,
"maxWorkerNum": 123,
"minFreeTimeout": 123,
"maxFreeTimeout": 123,
"minConcurrencyNum": 123,
"maxConcurrencyNum": 123,
"minQueueWaitTime": 123,
"maxQueueWaitTime": 123,
"minRequestNum": 123,
"maxRequestNum": 123,
"minGPUNum": 123,
"maxGPUNum": 123,
"minRequestTimeout ": 123,
"maxRequestTimeout": 123,
"cudaVersionList": [
"<string>"
]
}Endpoint
获取 Endpoint 参数限制范围
GET
/
gpu-instance
/
openapi
/
v1
/
endpoint
/
limit
获取 Endpoint 参数限制范围
curl --request GET \
--url https://api.ppio.com/gpu-instance/openapi/v1/endpoint/limit \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'import requests
url = "https://api.ppio.com/gpu-instance/openapi/v1/endpoint/limit"
headers = {
"Content-Type": "<content-type>",
"Authorization": "<authorization>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Content-Type': '<content-type>', Authorization: '<authorization>'}
};
fetch('https://api.ppio.com/gpu-instance/openapi/v1/endpoint/limit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ppio.com/gpu-instance/openapi/v1/endpoint/limit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ppio.com/gpu-instance/openapi/v1/endpoint/limit"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ppio.com/gpu-instance/openapi/v1/endpoint/limit")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ppio.com/gpu-instance/openapi/v1/endpoint/limit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"minRootfsSize": 123,
"maxRootfsSize": 123,
"freeRootfsSize": 123,
"minLocalVolumeSize": 123,
"maxLocalVolumeSize": 123,
"freeLocalVolumeSize": 123,
"minWorkerNum": 123,
"maxWorkerNum": 123,
"minFreeTimeout": 123,
"maxFreeTimeout": 123,
"minConcurrencyNum": 123,
"maxConcurrencyNum": 123,
"minQueueWaitTime": 123,
"maxQueueWaitTime": 123,
"minRequestNum": 123,
"maxRequestNum": 123,
"minGPUNum": 123,
"maxGPUNum": 123,
"minRequestTimeout ": 123,
"maxRequestTimeout": 123,
"cudaVersionList": [
"<string>"
]
}请求头
string
必填
枚举值:application/json。
string
必填
Bearer 身份验证格式,例如:Bearer {{API 密钥}}。
响应参数
integer
必填
系统盘最小容量大小。单位为 GB。
integer
必填
系统盘最大容量大小。单位为 GB。
integer
必填
免费系统盘容量大小。单位为 GB。
integer
必填
本地存储卷最小容量大小。单位为 GB。
integer
必填
本地存储卷最大容量大小。单位为 GB。
integer
必填
免费本地存储卷容量大小。单位为 GB。
integer
必填
最小工作节点数量。
integer
必填
最大工作节点数量。
integer
必填
最小空闲超时时间。单位为秒。
integer
必填
最大空闲超时时间。单位为秒。
integer
必填
最小并发数。
integer
必填
最大并发数。
integer
必填
最小队列等待时间。单位为秒。
integer
必填
最大队列等待时间。单位为秒。
integer
必填
最小请求数量。
integer
必填
最大请求数量。
integer
必填
最小 GPU 数量。
integer
必填
最大 GPU 数量。
integer
必填
最小请求超时。
integer
必填
最大请求超时。
string[]
必填
支持的 CUDA 版本列表。
最后修改于 2026年3月25日
⌘I