服务列表

获取所有服务的列表数据

  • 接口说明:获取所有服务的列表数据
  • 接口地址:a=list&c=service&m=admin
  • 请求方式:GET

请求参数

参数名称类型描述必填示例值
appLabelstring服务分类类型:
网站服务(typewebsite)、数据存储(typedatabase)、
上传下载(typetransfer)、缓存服务(typecache)、
工具软件(typetool)、操作系统(typeos
type__website
s_idnumber服务ID192.168.1.10
pagenumber页码1
pageSizenumber每页数据数量10
orderBystring按照服务ID排序 升序:“id,asc”,降序:“id,desc”id,desc

请求示例:

发起请求
  1. curl -k "https://{你网站的ip或者域名}:9966/?a=list&c=service&m=admin&appLabel={服务分类}&pageSize={页码}&v=99999&globalApiNonceStr={随机字符串}&getJson=1&globalApiTimestamp={时间戳}&globalApiSign={签名字符串}"
返回结果
  1. {
  2. "columns": [], //表头数据
  3. "pageInfo": {}, // 分页信息
  4. "dataSource": [], //列表数据
  5. "msg": {
  6. "message": "", // 提交请求执行结果的信息
  7. "msgType": "success", // 提交请求执行结果的状态,有success、error、info、warning、fail
  8. "msgMark": null,
  9. "msgCode": null,
  10. "jumpUrl": null,
  11. "waitTime": 2
  12. },
  13. "currentInfo": {},
  14. "softwareInfo": {}
  15. }

获取某个服务的数据

说明 不同类型的服务,返回的数据所包含键值可能不一样

  • 接口说明:获取某个服务的数据
  • 接口地址:a=getOneData&c=service
  • 请求方式:GET

请求参数

参数名称类型描述必填示例值
idnumber服务ID1

请求示例:

发起请求
  1. curl -k "https://{你网站的ip或者域名}:9966/?a=getOneData&c=service&id={服务ID}&v=99999&globalApiNonceStr={随机字符串}&getJson=1&globalApiTimestamp={时间戳}&globalApiSign={签名字符串}"
返回结果
  1. {
  2. "data": {
  3. "id": 107,
  4. "uid": 1,
  5. "name": "ue7486994bfa_discuz_run",
  6. "appId": 4000000008,
  7. "swarmId": 1,
  8. "nodeId": 1,
  9. "networkId": 1,
  10. "nodeLabelId": 0,
  11. "deploySortId": 1,
  12. "tasks": 1,
  13. "elasticTasks": "",
  14. "deployDataHash": "2020-05-13 17:55:47",
  15. "deployVersionIndex": "4408",
  16. "status": 1,
  17. "description": "",
  18. "cpuLimits": "0",
  19. "memLimits": "0",
  20. "snapshotBackupSwitch": "0",
  21. "remoteBackupSwitch": "0",
  22. "snapshotBackupWaitTime": 0,
  23. "remoteBackupWaitTime": 0,
  24. "remoteBackupExecTime": 2,
  25. "snapshotRetentionTime": 0,
  26. "linkServiceId": 0,
  27. "lastDeployTime": "2020-05-13 17:55:47",
  28. "lastDeployCronId": 2028,
  29. "appendScript": "",
  30. "created_at": "2020-05-13 17:55:18",
  31. "updated_at": "2020-05-13 18:01:02",
  32. "allowProxyFastcgi": "0",
  33. "dbPassword": "5kLYgPf4dYnwwhtkZx0M32iNe5AtiH7BggPokEzjOgY=",
  34. "dbServiceId": "69",
  35. "donotSaveSecretInfo": "1",
  36. "PHP_fpm_pm_max_children": "5",
  37. "PHP_memory_limit": "128M",
  38. "PHP_short_open_tag": "1",
  39. "qcloudSecretId": "",
  40. "qcloudSecretKey": "",
  41. "upload_max_filesize": "20M",
  42. "serviceId": 107,
  43. "letsencryptSwitch": "0",
  44. "forceJumpToHttps": 0,
  45. "sslCrtContents": "",
  46. "sslKeyContents": "",
  47. "mountServiceName": "",
  48. "serverBlockAppends": "",
  49. "locationBlockAppends": "try_files $uri $uri/ /index.html;",
  50. "rewriteContents": "",
  51. "bindDirDomain": "",
  52. "indexDirName": "public",
  53. "NGINX_worker_connections": 1024,
  54. "NGINX_worker_processes": 1,
  55. "NGINX_read_timeout": 300,
  56. "NGINX_send_timeout": 300,
  57. "nginxAuthPassword": "",
  58. "jumpUrl301": "",
  59. "jumpUrl302": "",
  60. "sftpSwitch": "0",
  61. "sftpPort": 0,
  62. "sftpPassword": "",
  63. "svnSwitch": "0",
  64. "svnUsername": "",
  65. "svnPassword": "",
  66. "svnUrl": "",
  67. "svnLocalDir": "",
  68. "wafErrorMessage": "",
  69. "wafSwitch01": "0",
  70. "wafCheckUrl01": "/",
  71. "wafCheckSeconds01": 5,
  72. "wafCheckCounts01": 100,
  73. "wafKeepSeconds01": 1800,
  74. "wafIpWhiteList01": "",
  75. "wafIpBlackList01": "",
  76. "argsFilterSwitch01": "1",
  77. "wafBrowserCheckSwitch01": "1",
  78. "rateSwitch": "0",
  79. "perConnRate": 0,
  80. "perIpConn": 0,
  81. "perSecRate": 0,
  82. "servicePortOne": "80",
  83. "containerPortOne": "80",
  84. "protocol": "tcp",
  85. "ports": "80:80/tcp",
  86. "domains": "ue7486994bfa.discuz.run",
  87. "domainOne": "ue7486994bfa.discuz.run"
  88. },
  89. "msg": {
  90. "message": "", // 提交请求执行结果的信息
  91. "msgType": "success", // 提交请求执行结果的状态,有success、error、info、warning、fail
  92. "msgMark": null,
  93. "msgCode": null,
  94. "jumpUrl": null,
  95. "waitTime": 2
  96. },
  97. "currentInfo": {},
  98. "softwareInfo": {}
  99. }