云服务器内容精选

  • 响应示例 返回状态码为200:修改AP设备射频配置结果。 HTTP/1.1 200 OK Date: Sun,16 Feb 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" : { "deviceId" : "fbde1c5d-5b94-49e3-a912-48641015e45c", "deviceName" : "21500829352SH1904172", "radio2dot4Enabled" : true, "radio2dot4Power" : "auto", "radio2dot4Channel" : "auto", "radio2dot4Bandwidth" : "auto", "antenna2Dot4Gain" : "6", "radio2BandwidthEnable" : true, "radio5Enabled" : true, "radio5Power" : "auto", "radio5Channel" : "auto", "radio5Channel2" : "auto", "antenna5Gain" : "6", "radio5Bandwidth" : "auto", "radio5BandwidthEnable" : true, "radio2th5Enabled" : true, "radio2th5Power" : "auto", "radio2th5Channel" : "auto", "antenna2th5Gain" : "0", "radio2th5Bandwidth" : "auto", "radio2th5BandwidthEnable" : true, "flexibleRadio" : 1, "radio2RFType" : 1 } } 返回状态码为400:校验异常。 HTTP/1.1 400 Bad Request Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 请求示例 HTTP的示例 PUT /controller/campus/v3/networkconfig/device/fbde1c5d-5b94-49e3-a912-48641015e45c/apradio/radios 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 { "radio2dot4Enabled" : true, "radio2dot4Power" : "auto", "radio2dot4Channel" : "auto", "radio2dot4Bandwidth" : "auto", "antenna2Dot4Gain" : "6", "radio2BandwidthEnable" : true, "radio5Enabled" : true, "radio5Power" : "auto", "radio5Channel" : "auto", "radio5Channel2" : "auto", "antenna5Gain" : "6", "radio5Bandwidth" : "auto", "radio5BandwidthEnable" : true, "radio2th5Enabled" : true, "radio2th5Power" : "auto", "radio2th5Channel" : "auto", "antenna2th5Gain" : "0", "radio2th5Bandwidth" : "auto", "radio2th5BandwidthEnable" : true, "flexibleRadio" : 1, "radio2RFType" : 1 }
  • 请求参数 表2 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 apDeviceRadioApiDto 是 REFERENCE 详细请参见表3。 修改AP设备射频配置入参。 - 表3 ApDeviceRadioApiDto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 radio2dot4Enabled 是 boolean true false - 2.4G射频使能状态。 true radio2dot4Power 是 string - - 2.4G射频发射功率,auto,[1,127]。 "auto" radio2dot4Channel 是 string - - 2.4G射频信道,不同国家码,对应不同的射频信道范围。 "auto" radio2dot4Bandwidth 是 string auto 20mhz 40mhz-plus 40mhz-minus - 2.4G调优频宽,调优带宽时选择auto,此时2.4G信道也应该为auto。 "auto" antenna2Dot4Gain 是 string - - 2.4G射频天线增益,0~30,室内AP天线增益不支持修改。 "6" radio2BandwidthEnable 否 boolean true false - 带宽使能,在调优场景2.4g有可能变5g,此时要支持dbs功能。 true radio5Enabled 是 boolean true false - 5G射频使能状态。 true radio5Power 是 string - - 5G射频发射功率,auto,[1,127]。 "auto" radio5Channel 是 string - - 5G射频信道,不同国家码,对应不同的射频信道范围。 "auto" radio5Channel2 否 string - - 5G射频第二信道/6G信道, 当radio5Bandwidth为80plus80mhz时,为必填项,不同国家码,对应不同的射频信道范围。 "auto" antenna5Gain 是 string - - 5G射频天线增益,0~30,室内AP天线增益不支持修改。 "6" radio5Bandwidth 是 string auto 20mhz 40mhz-plus 40mhz-minus 80mhz 80plus80mhz 160mhz - 5G射频频宽,调优带宽时选择auto,此时5G信道也应该为auto。 "auto" radio5BandwidthEnable 否 boolean true false - 5G射频的带宽使能。 true radio2th5Enabled 否 boolean true false - 第二个5G/6G射频使能。 true radio2th5Power 否 string 1~4个字符。 - 第二个5G/6G射频发射功率,(范围auto或者1~127)。 "auto" radio2th5Channel 否 string 1~4个字符。 - 第二个5G/6G射频发射信道,请参照各国家的信道码要求填写。 "auto" antenna2th5Gain 否 string 1~2个字符。 - 第二个5G/6G射频天线增益(范围0~30)。 "0" radio2th5Bandwidth 否 string auto 20mhz 40mhz-plus 40mhz-minus 80plus80mhz 80mhz 160mhz 320mhz - 第二个5G/6G射频频宽。 "auto" radio2th5BandwidthEnable 否 boolean true false - 第二个5G/6G射频的带宽使能。 true flexibleRadio 否 int32 - - DCA双频调优开关:disable 0,enable:1。 1 radio2RFType 否 int32 - 1 wlan-radio 0/0/2接口射频类型 2.4g:0/5g:1/6g:2。默认值为1。 1
  • 响应示例 返回状态码为200:AP设备射频配置信息。 HTTP/1.1 200 OK Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "successList" : [ "" ], "failedList" : [ { "deviceId" : "", "errcode" : "0", "errmsg" : "" } ] } 返回状态码为400:校验异常。 HTTP/1.1 400 Bad Request Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 请求示例 HTTP的示例 PUT /controller/campus/v3/networkconfig/device/switchradiomode 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 { "radioMode" : "5G", "siteId" : "aade1c5d-5b94-49e3-a912-48641015e45d", "deviceIdList" : ["fbde1c5d-5b94-49e3-a912-48641015e45c"] }