-
响应示例 返回状态码为200:查询成功。 HTTPS 200 OK
Date: Thu,13 Sep 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json
{
"pageIndex": 1,
"pageSize": 100,
"totalRecord": 1,
"errcode": "0",
"errmsg": "",
"data": [
{
"id": "5c37d9e8-cdf6-11e8-a4fc-286ed488d001",
"serialNumber": "IC1-Huawei-AR502H-GW-0001",
"aliasName": "CPE101",
"mac": "xx-xx-xx-xx-xx-xx",
"configTime": '2022-05-12 15:30:00',
"status": 0,
"failReason": ""
}
]
} 返回状态码为400:查询失败。 HTTPS 400 Bad Requests
Date: Thu,13 Sep 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json
{
"errcode": "0x00c8000d",
"errmsg": "The parameter pageIndex is null."
} 返回状态码为500:内部错误。 HTTP/1.1 500 Internal Server Error
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
-
响应参数 返回状态码为200:查询成功。 表2 ConfigResultOut对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 pageIndex int32 [1-100000] - 页面索引 "1" pageSize int32 [1-100] - 页面大小。 "10" totalRecord int32 [0-10000000] - 总数 "10" errcode string 0~128个字符。 - 错误码。 - errmsg string 0~256个字符。 - 错误信息。 - data ARRAY_REFERENCE 0-1000个列表项,详细请参见表3。 CPE命令下发返回结果。 - 表3 ConfigResultDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 id string 1~64个字符。 - 标识。 "5c37d9e8-cdf6-11e8-a4fc-286ed488df6b" serialNumber string 0~128个字符。 - 身份标识 - aliasName string 0~128个字符。 - 别名 "CPE101" mac string 0~64个字符。 - cpe mac地址 "xx-xx-xx-xx-xx-xx" configTime string 0~128个字符。 - 下发时间。 "2022-05-12 15:30:00" status int32 [0-8] - 状态 - failReason string 0~2048个字符。 - 失败原因 - 返回状态码为400:查询失败。 CommonErrDto对象的参数列表,详细请参见表5。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
-
请求示例 HTTP的示例 GET /controller/campus/api/campusoamservice/v1/cpe/cli/tasks?queryParam=pageSize::10|pageIndex::1|sort::configTime|keyword::test|status::0 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-AC
CES S-TOKEN: x-yyyyyy
-
URI /controller/campus/api/campusoamservice/v1/cpe/cli/tasks 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 queryParam 是 string 0~1024个字符。 - 查询任务状态请求体。 "pageSize::10|pageIndex::1|sort::configTime|keyword::test|status::0"
-
请求示例 HTTP的示例 POST /controller/campus/api/campusoamservice/v1/cpe/cli/reconfig HTTPS
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN:CA48D152F6B19D84:637C38259E6974E17788348128A430FEE150E874752CE754B6BF855281219925
{
"taskIds": [
"5c37d9e8-cdf6-11e8-a4fc-286ed488d001","5c37d9e8-cdf6-11e8-a4fc-286ed488d002"
]
}
-
响应示例 返回状态码为200:下发成功。 HTTPS 200 OK
Date: Thu,13 Sep 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json
{
"errcode": "0",
"errmsg": "",
"successList": [
"IC1-Huawei-AR502H-GW-0001"
],
"failList": [
{
"id": "5c37d9e8-cdf6-11e8-a4fc-286ed488d002",
"serialNumber": "IC1-Huawei-AR502H-GW-0002",
"errcode": "0x00c80049",
"errmsg": "WAC is not online"
}
]
} 返回状态码为400:重下发失败。 HTTPS 400 Bad Requests
Date: Thu,13 Sep 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json
{
"errcode": "0x00c8000d",
"errmsg": "The parameter ids is null."
} 返回状态码为500:内部错误。 HTTP/1.1 500 Internal Server Error
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
-
请求示例 HTTP的示例 POST /controller/campus/api/campusoamservice/v1/cpe/cli HTTPS
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN:CA48D152F6B19D84:637C38259E6974E17788348128A430FEE150E874752CE754B6BF855281219925
{
"ids": [
"5c37d9e8-cdf6-11e8-a4fc-286ed488d001","5c37d9e8-cdf6-11e8-a4fc-286ed488d002"
],
"commands": [
"reboot"
],
"cliAnonymous": true
}
-
响应示例 返回状态码为200:下发成功。 HTTPS 200 OK
Date: Thu,13 Sep 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json
{
"errcode": "0",
"errmsg": "",
"successList": [
"IC1-Huawei-AR502H-GW-0001"
],
"failList": [
{
"id": "5c37d9e8-cdf6-11e8-a4fc-286ed488d002",
"serialNumber": "IC1-Huawei-AR502H-GW-0002",
"errcode": "0x00c80049",
"errmsg": "WAC is not online"
}
]
} 返回状态码为400:下发失败。 HTTPS 400 Bad Requests
Date: Thu,13 Sep 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json
{
"errcode": "0x00c8000d",
"errmsg": "The parameter ids is null."
} 返回状态码为500:内部错误。 HTTP/1.1 500 Internal Server Error
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive