-
请求示例 HTTP的示例 PUT /v1/oam/config/sites/fbde1c5d-5b94-49e3-a912-48641015e45c/ledconfig 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
{
"ledOffEnable" : true,
"timeTplEnable" : true,
"timeTplId" : "ea25fdbf-8dee-4823-bac2-5bfe8e3359ca"
}
-
响应参数 返回状态码为200:返回下发站点闪灯配置结果。 表4 LedConfigResult对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "" 返回状态码为400:接口入参非法的返回体。 详细信息请参见实际响应消息体。 返回状态码为500:接口发生内部错误后的返回体。 详细信息请参见实际响应消息体。
-
响应示例 返回状态码为200:返回下发站点闪灯配置结果。 HTTP/1.1 200 OK
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
{
"errcode" : "0",
"errmsg" : ""
} 返回状态码为400:接口入参非法的返回体。 HTTP/1.1 400 Bad Request
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
返回状态码为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
-
请求参数 表2 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 requestDto 是 REFERENCE 详细请参见表3。 请求Dto - 表3 LedConfigRequest对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 ledOffEnable 是 boolean true false true 闪灯关闭配置开关参数,默认值为:true。 true timeTplEnable 是 boolean true false true 闪灯时间模板配置开关参数,默认值为:true。 true timeTplId 否 string 1~64个字符。 - 闪灯时间模板id,UUID格式。 "ea25fdbf-8dee-4823-bac2-5bfe8e3359ca"
-
响应示例 返回状态码为200:查询站点闪灯配置状态的返回结果。 HTTP/1.1 200 OK
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
{
"errcode" : "0",
"errmsg" : "",
"data" : [
{
"ledOffEnable" : true,
"timeTplEnable" : true,
"timeTplId" : "ea25fdbf-8dee-4823-bac2-5bfe8e3359ca"
}
]
} 返回状态码为400:接口入参非法的返回体。 HTTP/1.1 400 Bad Request
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
返回状态码为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的示例 GET /v1/oam/config/sites/fbde1c5d-5b94-49e3-a912-48641015e45c/ledconfig HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-yyyyyy
-
响应参数 返回状态码为200:查询站点闪灯配置状态的返回结果。 表2 QueryLedConfigStatusResult对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "" data ARRAY_REFERENCE 0-2个列表项,详细请参见表3。 查询设备闪灯配置的状态。 - 表3 LedConfigStatus对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 ledOffEnable boolean true false true 闪灯关闭配置开关参数,默认值为:true。 true timeTplEnable boolean true false true 闪灯时间模板配置开关参数,默认值为:true。 true timeTplId string 1~64个字符。 - 闪灯时间模板id,UUID格式。 "ea25fdbf-8dee-4823-bac2-5bfe8e3359ca" 返回状态码为400:接口入参非法的返回体。 详细信息请参见实际响应消息体。 返回状态码为500:接口发生内部错误后的返回体。 详细信息请参见实际响应消息体。