云服务器内容精选

  • 请求示例 HTTP的示例 GET /controller/campus/v2/banner/banner/be6e6d19-815a-4959-93ea-0e369ce3be0f/sites 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
  • 响应示例 返回状态码为200:接口调用成功,响应体参考BannerSiteResponse。 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" : "", "applySite" : ["be6e6d19-815a-4959-93ea-0e369ce3be0f"] } 返回状态码为400:Invalid tag value 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/v2/banner/banner/be6e6d19-815a-4959-93ea-0e369ce3be0f/sites 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 { "usedSiteIds" : [ "" ], "unusedSiteIds" : [ "" ] }
  • 响应示例 返回状态码为200:接口调用成功,响应体参考CommonResponse。 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" : "" } 返回状态码为400:Invalid tag value 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的示例 POST /controller/campus/v2/banner/banner 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 { "id" : "", "templateName" : "templateName", "bannerBefore" : "header shell information Telecom Italia S.p.A.", "bannerAfter" : "UNAUTHORIZED ACCESS TO THIS NETWORK DEVICE IS PROHIBITED You must haveexplicit permission to access or configure this deviceAll activities performed on this device may be logged based on TISecurity Policy" }
  • 响应示例 返回状态码为200:接口调用成功,响应体参考CommonResponse。 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" : "" } 返回状态码为400:Invalid tag value 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
  • 响应参数 返回状态码为200:接口调用成功,响应体参考CommonResponse。 表3 CommonResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码,0表示成功,非0表示失败。 "0" errmsg string - - 错误信息。 - 返回状态码为400:Invalid tag value 详细信息请参见实际响应消息体。
  • 请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 bannerInfo 是 REFERENCE 详细请参见表2。 需要存储的banner对象 - 表2 BannerInfo对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 id 否 uuid - - Banner id,uuid格式 - templateName 否 string - - banner模板名称 "templateName" bannerBefore 否 string - - 登录前显示的命令行信息 "header shell information Telecom Italia S.p.A." bannerAfter 否 string - - 登录后显示的命令行信息 "UNAUTHORIZED ACCESS TO THIS NETWORK DEVICE IS PROHIBITED You must haveexplicit permission to access or configure this deviceAll activities performed on this device may be logged based on TISecurity Policy"