云服务器内容精选

  • 请求示例 HTTP的示例 DELETE /controller/campus/api/v1/networkconfig/lswospf/fbb684c8-0d37-496f-bafa-4b06d5151e2e/a63b91f86bbe415a92a4a5af437c858f/area 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: 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" : [ { "id" : "60e2e8a3cdf3470ea4d4f468c8b74095" } ] }
  • URI /controller/campus/api/v1/networkconfig/lswospf/{deviceId}/{ospfId}/area 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deviceId 是 string 36个字符。 - 设备ID,UUID格式。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" ospfId 是 string 32个字符。 - OSPF ID。 "a63b91f86bbe415a92a4a5af437c858f"
  • URI /controller/campus/api/v1/networkconfig/lswospf/{deviceId}/{ospfId}/area 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deviceId 是 string 36个字符。 - 设备ID,UUID格式。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" ospfId 是 string 32个字符。 - OSPF ID。 "a63b91f86bbe415a92a4a5af437c858f"
  • 请求示例 HTTP的示例 PUT /controller/campus/api/v1/networkconfig/lswospf/fbb684c8-0d37-496f-bafa-4b06d5151e2e/a63b91f86bbe415a92a4a5af437c858f/area 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 { "processId" : "1", "area" : { "areaType" : "stub", "areaId" : "60e2e8a3cdf3470ea4d4f468c8b74095", "areaUUID" : "", "networkList" : ["192.168.0.1/24"], "abrSummaryList" : [ { "ipAddress" : "192.168.0.1/24" } ], "stubNoSummary" : false } }
  • 响应示例 返回状态码为200:lsw ospf区域信息返回结构体。 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 { "data" : { "processId" : "1", "area" : { "areaType" : "stub", "areaId" : "60e2e8a3cdf3470ea4d4f468c8b74095", "areaUUID" : "", "networkList" : ["192.168.0.1/24"], "abrSummaryList" : [ { "ipAddress" : "192.168.0.1/24" } ], "stubNoSummary" : false } }, "errcode" : "0", "errmsg" : "" }
  • 响应示例 返回状态码为200:LswOspfInfo Information 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 { "data" : { "pageIndex" : 1, "pageSize" : 20, "totalRecords" : 10, "totalPage" : 20, "ospfResList" : [ { "routerId" : "10.0.0.1", "processUUID" : "", "processId" : "auto", "opaqueLsa" : "", "gracefulRestart" : "", "staticProtocol" : { "enable" : true, "cost" : "1" }, "directProtocol" : { "enable" : true, "cost" : "1" }, "bgpProtocol" : { "enable" : true, "cost" : "1" }, "bandwidthReference" : "23", "preference" : "10", "silentInterfaceList" : { "all" : true, "interfaceNameList" : [ "" ] } } ] }, "errcode" : "0", "errmsg" : "" } 返回状态码为400:Error response 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 { "errorCode" : "", "errorMsg" : "" }
  • 响应参数 返回状态码为200:LswOspfInfo Information 表3 QueryOspfListRes对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 data REFERENCE 详细请参见表4。 ospf信息 - errcode string 1~128个字符。 - 错误码 "0" errmsg string 1~512个字符。 - 错误信息 - 表4 OspfInfoList对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 pageIndex int32 [1-65535] - 页面索引 1 pageSize int32 [1-100] - 每页显示记录数 20 totalRecords int32 [1-65535] - 全量记录数 10 totalPage int32 [1-65535] - 总体分页数 20 ospfResList ARRAY_REFERENCE 详细请参见表7。 ospf查询信息 - 返回状态码为400:Error response ErrorRsp对象的参数列表,详细请参见表10。
  • URI /controller/campus/api/v1/networkconfig/lswospf/{deviceId} 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deviceId 是 string 36个字符。 - 设备ID,UUID格式。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" 表2 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 filter 否 string 0~256个字符。 - 过滤条件。pageIndex::1|pageSize::20|processId::1 -
  • 请求示例 HTTP的示例 GET /controller/campus/api/v1/networkconfig/lswospf/fbb684c8-0d37-496f-bafa-4b06d5151e2e 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: 表3 DeleteResponseDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 1~128个字符。 - 错误码 "0" errmsg string 1~512个字符。 - 错误信息 - data ARRAY_REFERENCE 详细请参见表4。 删除成功列表。 - 表4 DeleteResultInfo对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 id string 32~36个字符。 - 删除ID。 "60e2e8a3cdf3470ea4d4f468c8b74095"
  • 响应示例 返回状态码为200: 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" : [ { "id" : "60e2e8a3cdf3470ea4d4f468c8b74095" } ] }
  • 请求示例 HTTP的示例 DELETE /controller/campus/api/v1/networkconfig/lswospf/fbb684c8-0d37-496f-bafa-4b06d5151e2e 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
  • 请求示例 HTTP的示例 POST /controller/campus/api/v1/networkconfig/lswospf/fbb684c8-0d37-496f-bafa-4b06d5151e2e 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 { "routerId" : "10.0.0.1", "processUUID" : "", "processId" : "auto", "opaqueLsa" : "", "gracefulRestart" : "", "staticProtocol" : { "enable" : true, "cost" : "1" }, "directProtocol" : { "enable" : true, "cost" : "1" }, "bgpProtocol" : { "enable" : true, "cost" : "1" }, "bandwidthReference" : "23", "preference" : "10", "silentInterfaceList" : { "all" : true, "interfaceNameList" : [ "" ] } }
  • 响应示例 返回状态码为200:LswOspfInfo Information 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 { "data" : { "routerId" : "10.0.0.1", "processUUID" : "", "processId" : "auto", "opaqueLsa" : "", "gracefulRestart" : "", "staticProtocol" : { "enable" : true, "cost" : "1" }, "directProtocol" : { "enable" : true, "cost" : "1" }, "bgpProtocol" : { "enable" : true, "cost" : "1" }, "bandwidthReference" : "23", "preference" : "10", "silentInterfaceList" : { "all" : true, "interfaceNameList" : [ "" ] } }, "errcode" : "0", "errmsg" : "" } 返回状态码为400:Error response 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 { "errorCode" : "", "errorMsg" : "" }