查询国标下级平台信息

接口调用说明

请求地址 : /v1/api/platform/info
请求方式 : POST

请求头

参数名 参数值 是否必须
Content-Type application/json
X-Token 实际 accessToken

请求报文体

名称 类型 是否必须 备注
platformId string 下级平台 id
//示例数据
{
  "platformId": "37010200002000000001"
}

响应报文

名称 类型 是否必须 备注
code int 状态码
msg String 状态码解释信息
data Object 返回内容

data 内容如下:

名称 类型 是否必须 备注
platformId string 平台 ID
platformName string 平台名称
platformIp string 下级平台安装地址(即下级级联平台内网地址)
platformPort int 下级级联平台的端口号
enableAuth boolean 是否对下级平台鉴权
platformType string 级联平台类型(厂商) 取值:
uniview-宇视
hikvision-海康
dahua-大华
huawei-华为
other-其他
streamTransportMode string 流传输模式
UDP-UDP 方式
TCP_PASSIVE-TCP 被动
platformOwnerIp string 所属服务 IP 地址 (多网域场景下级平台 使用本地的某个网域 的 IP 地址)
sipServerId string 上级级联国标平台服务编码 ID
sipServerDomain string 上级级联国标平台服务域
sipServerIp string 上级级联国标平台服务 IP 地址
sipServerPort int 上级级联国标平台服务 port 端口
platformStatus int 平台状态 0-离线 1-在线
//示例数据
{
  "code": 1000,
  "msg": "OK",
  "data": {
    "platformId": "37010200002000000001",
    "platformName": "xx",
    "platformIp": "1.1.1.1",
    "platformPort": "1234",
    "enableAuth": true,
    "platformType": "hikvision",
    "streamTransportMode": "UDP",
    "platformOwnerIp": "1.1.1.2",
    "sipServerId": "37010200002001000009",
    "sipServerDomain": "37010200002001000009",
    "sipServerIp": "192.168.89.250",
    "sipServerPort": 21500,
    "platformStatus": 0
  }
}

错误码

状态码 状态描述
1000 成功
1001 参数错误
1002 请求异常
1006 AccessToken 异常或过期
2019 平台 ID 不存在

results matching ""

    No results matching ""