Files
pyGoEdge-UserPanel/reference/goedge 文档/HTTPFastcgiService.md
2025-11-18 03:36:49 +08:00

3.0 KiB
Raw Blame History

HTTPFastcgiService

Fastcgi服务


createHTTPFastcgi

创建Fastcgi

  • 角色:admin, user
  • HTTPPOST https://backend.dooki.cloud/HTTPFastcgiService/createHTTPFastcgi
  • RPCrpc createHTTPFastcgi (CreateHTTPFastcgiRequest) returns (CreateHTTPFastcgiResponse);

请求对象 (CreateHTTPFastcgiRequest)

{
  "isOn": "bool // 是否启用",
  "address": "string",
  "paramsJSON": "bytes",
  "readTimeoutJSON": "bytes",
  "connTimeoutJSON": "bytes",
  "poolSize": "int32",
  "pathInfoPattern": "string"
}

响应对象 (CreateHTTPFastcgiResponse)

{
  "httpFastcgiId": "int64"
}

调用示例

curl -X POST "https://backend.dooki.cloud/HTTPFastcgiService/createHTTPFastcgi" \
  -H "Content-Type: application/json" \
  -H "X-Edge-Access-Token: <YOUR_TOKEN>" \
  -d '{
    ...
  }'

findEnabledHTTPFastcgi

获取Fastcgi详情

  • 角色:admin, user
  • HTTPPOST https://backend.dooki.cloud/HTTPFastcgiService/findEnabledHTTPFastcgi
  • RPCrpc findEnabledHTTPFastcgi (FindEnabledHTTPFastcgiRequest) returns (FindEnabledHTTPFastcgiResponse);

请求对象 (FindEnabledHTTPFastcgiRequest)

{
  "httpFastcgiId": "int64"
}

响应对象 (FindEnabledHTTPFastcgiResponse)

{
  "httpFastcgi": "HTTPFastcgi"
}

调用示例

curl -X POST "https://backend.dooki.cloud/HTTPFastcgiService/findEnabledHTTPFastcgi" \
  -H "Content-Type: application/json" \
  -H "X-Edge-Access-Token: <YOUR_TOKEN>" \
  -d '{
    ...
  }'

findEnabledHTTPFastcgiConfig

获取Fastcgi配置

  • 角色:admin, user
  • HTTPPOST https://backend.dooki.cloud/HTTPFastcgiService/findEnabledHTTPFastcgiConfig
  • RPCrpc findEnabledHTTPFastcgiConfig (FindEnabledHTTPFastcgiConfigRequest) returns (FindEnabledHTTPFastcgiConfigResponse);

请求对象 (FindEnabledHTTPFastcgiConfigRequest)

{
  "httpFastcgiId": "int64"
}

响应对象 (FindEnabledHTTPFastcgiConfigResponse)

{
  "httpFastcgiJSON": "bytes"
}

调用示例

curl -X POST "https://backend.dooki.cloud/HTTPFastcgiService/findEnabledHTTPFastcgiConfig" \
  -H "Content-Type: application/json" \
  -H "X-Edge-Access-Token: <YOUR_TOKEN>" \
  -d '{
    ...
  }'

updateHTTPFastcgi

修改Fastcgi

  • 角色:admin, user
  • HTTPPOST https://backend.dooki.cloud/HTTPFastcgiService/updateHTTPFastcgi
  • RPCrpc updateHTTPFastcgi (UpdateHTTPFastcgiRequest) returns (RPCSuccess);

请求对象 (UpdateHTTPFastcgiRequest)

{
  "httpFastcgiId": "int64",
  "isOn": "bool // 是否启用",
  "address": "string",
  "paramsJSON": "bytes",
  "readTimeoutJSON": "bytes",
  "connTimeoutJSON": "bytes",
  "poolSize": "int32",
  "pathInfoPattern": "string"
}

响应对象 (RPCSuccess)

{}

调用示例

curl -X POST "https://backend.dooki.cloud/HTTPFastcgiService/updateHTTPFastcgi" \
  -H "Content-Type: application/json" \
  -H "X-Edge-Access-Token: <YOUR_TOKEN>" \
  -d '{
    ...
  }'