GET
/
gpu-instance
/
openapi
/
v1
/
endpoint
curl --request GET \
  --url https://api.ppinfra.com/gpu-instance/openapi/v1/endpoint \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>'
{
  "endpoint": {
    "id": "<string>",
    "name": "<string>",
    "appName": "<string>",
    "state": {
      "state": "<string>",
      "error": "<string>",
      "message": "<string>"
    },
    "url": "<string>",
    "workerConfig": {
      "minNum": 123,
      "maxNum": 123,
      "freeTimeout": "<string>",
      "maxConcurrent": "<string>",
      "gpuNum": 123,
      "cudaVersion": "<string>"
    },
    "policy": {
      "type": "<string>",
      "value": "<string>"
    },
    "image": {
      "image": "<string>",
      "authId": "<string>",
      "command": "<string>"
    },
    "rootfsSize": 123,
    "volumeMounts": [
      {
        "type": "<string>",
        "id": "<string>",
        "size": 123,
        "mountPath": "<string>"
      }
    ],
    "envs": [
      {
        "key": "<string>",
        "value": "<string>"
      }
    ],
    "ports": [
      {
        "port": 123
      }
    ],
    "workers": [
      {
        "id": "<string>",
        "state": {
          "state": "<string>",
          "error": "<string>",
          "message": "<string>"
        },
        "log": "<string>",
        "metrics": "<string>",
        "healthy": true
      }
    ],
    "products": [
      {
        "id": "<string>"
      }
    ],
    "healthy": {
      "path": "<string>",
      "initialDelay": 123,
      "period": 123,
      "timeout": 123,
      "successThreshold": 123,
      "failureThreshold": 123
    },
    "clusterID": "<string>",
    "log": "<string>"
  }
}

请求头

Authorization
string
required

Bearer 身份验证格式,例如:Bearer {{API 密钥}}。

请求头

Content-Type
string
required

枚举值:application/json。

Authorization
string
required

Bearer 身份验证格式,例如:Bearer {{API 密钥}}。

响应参数

endpoint
object
required

Endpoint 信息。