服务列表

获取所有服务的列表数据

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

请求参数

参数名称 类型 描述 必填 示例值
appLabel string 服务分类类型:
网站服务(type__website)、数据存储(type__database)、
上传下载(type__transfer)、缓存服务(type__cache)、
工具软件(type__tool)、操作系统(type__os
type__website
s_id number 服务ID 192.168.1.10
page number 页码 1
pageSize number 每页数据数量 10
orderBy string 按照服务ID排序 升序:“id,asc”,降序:“id,desc” id,desc

请求示例:

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


获取某个服务的数据

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

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

请求参数

参数名称 类型 描述 必填 示例值
id number 服务ID 1

请求示例:

发起请求
curl -k "https://{你网站的ip或者域名}:9966/?a=getOneData&c=service&id={服务ID}&v=99999&globalApiNonceStr={随机字符串}&getJson=1&globalApiTimestamp={时间戳}&globalApiSign={签名字符串}"
返回结果
{
    "data": {
        "id": 107,
        "uid": 1,
        "name": "ue7486994bfa_discuz_run",
        "appId": 4000000008,
        "swarmId": 1,
        "nodeId": 1,
        "networkId": 1,
        "nodeLabelId": 0,
        "deploySortId": 1,
        "tasks": 1,
        "elasticTasks": "",
        "deployDataHash": "2020-05-13 17:55:47",
        "deployVersionIndex": "4408",
        "status": 1,
        "description": "",
        "cpuLimits": "0",
        "memLimits": "0",
        "snapshotBackupSwitch": "0",
        "remoteBackupSwitch": "0",
        "snapshotBackupWaitTime": 0,
        "remoteBackupWaitTime": 0,
        "remoteBackupExecTime": 2,
        "snapshotRetentionTime": 0,
        "linkServiceId": 0,
        "lastDeployTime": "2020-05-13 17:55:47",
        "lastDeployCronId": 2028,
        "appendScript": "",
        "created_at": "2020-05-13 17:55:18",
        "updated_at": "2020-05-13 18:01:02",
        "allowProxyFastcgi": "0",
        "dbPassword": "5kLYgPf4dYnwwhtkZx0M32iNe5AtiH7BggPokEzjOgY=",
        "dbServiceId": "69",
        "donotSaveSecretInfo": "1",
        "PHP_fpm_pm_max_children": "5",
        "PHP_memory_limit": "128M",
        "PHP_short_open_tag": "1",
        "qcloudSecretId": "",
        "qcloudSecretKey": "",
        "upload_max_filesize": "20M",
        "serviceId": 107,
        "letsencryptSwitch": "0",
        "forceJumpToHttps": 0,
        "sslCrtContents": "",
        "sslKeyContents": "",
        "mountServiceName": "",
        "serverBlockAppends": "",
        "locationBlockAppends": "try_files $uri $uri/ /index.html;",
        "rewriteContents": "",
        "bindDirDomain": "",
        "indexDirName": "public",
        "NGINX_worker_connections": 1024,
        "NGINX_worker_processes": 1,
        "NGINX_read_timeout": 300,
        "NGINX_send_timeout": 300,
        "nginxAuthPassword": "",
        "jumpUrl301": "",
        "jumpUrl302": "",
        "sftpSwitch": "0",
        "sftpPort": 0,
        "sftpPassword": "",
        "svnSwitch": "0",
        "svnUsername": "",
        "svnPassword": "",
        "svnUrl": "",
        "svnLocalDir": "",
        "wafErrorMessage": "",
        "wafSwitch01": "0",
        "wafCheckUrl01": "/",
        "wafCheckSeconds01": 5,
        "wafCheckCounts01": 100,
        "wafKeepSeconds01": 1800,
        "wafIpWhiteList01": "",
        "wafIpBlackList01": "",
        "argsFilterSwitch01": "1",
        "wafBrowserCheckSwitch01": "1",
        "rateSwitch": "0",
        "perConnRate": 0,
        "perIpConn": 0,
        "perSecRate": 0,
        "servicePortOne": "80",
        "containerPortOne": "80",
        "protocol": "tcp",
        "ports": "80:80/tcp",
        "domains": "ue7486994bfa.discuz.run",
        "domainOne": "ue7486994bfa.discuz.run"
    },
    "msg": {
        "message": "", // 提交请求执行结果的信息
        "msgType": "success", // 提交请求执行结果的状态,有success、error、info、warning、fail
        "msgMark": null,
        "msgCode": null,
        "jumpUrl": null,
        "waitTime": 2
    },
    "currentInfo": {},
    "softwareInfo": {}
}
Copyright © 广州市万岁云计算有限公司 2020 all right reserved,powered by Gitbook文档最近一次修订时间: 2020-08-11 15:31:24

results matching ""

    No results matching ""