-
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-AC
CES S-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,11 May 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" : ""
}
-
请求示例 HTTP的示例 GET /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
-
响应示例 返回状态码为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
{
"data" : {
"pageIndex" : 1,
"pageSize" : 20,
"totalRecords" : 30,
"totalPage" : 2,
"areaResList" : [
{
"areaType" : "stub",
"areaId" : "60e2e8a3cdf3470ea4d4f468c8b74095",
"areaUUID" : "",
"networkList" : ["192.168.0.1/24"],
"abrSummaryList" : [
{
"ipAddress" : "192.168.0.1/24"
}
],
"stubNoSummary" : false
}
]
},
"errcode" : "0",
"errmsg" : ""
}
-
响应参数 返回状态码为200: 表3 QueryAreaListRes对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 data REFERENCE 详细请参见表4。 区域配置信息 - errcode string 1~128个字符。 - 错误码 "0" errmsg string 1~512个字符。 - 错误信息 - 表4 AreaInfoList对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 pageIndex int32 [1-65535] - 页面索引。 1 pageSize int32 [1-65535] - 每页显示记录数。 20 totalRecords int32 [1-65535] - 全量记录数。 30 totalPage int32 [1-65535] - 总体分页数。 2 areaResList ARRAY_REFERENCE 详细请参见表8。 区域信息。 -
-
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" 表2 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 filter 否 string 0~256个字符。 - 查询过滤条件。pageIndex::1|pageSize::20|areaId::1 -
-
响应示例 返回状态码为200:lsw ospf区域信息返回结构体。 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
{
"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" : ""
}
-
请求示例 HTTP的示例 POST /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
}
}
-
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的示例 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,11 May 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,11 May 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 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
{
"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,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"errorCode" : "",
"errorMsg" : ""
}
-
请求示例 HTTP的示例 PUT /controller/campus/api/v1/networkconfig/lswospf/fbb684c8-0d37-496f-bafa-4b06d5151e2e/a63b91f86bbe415a92a4a5af437c858f 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" : [
""
]
}
}
-
URI /controller/campus/api/v1/networkconfig/lswospf/{deviceId}/{ospfId} 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deviceId 是 string 36个字符。 - 设备ID,UUID格式。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" ospfId 是 string 32个字符。 - ospf Id "a63b91f86bbe415a92a4a5af437c858f"