-
请求示例 HTTP的示例 POST /controller/campus/v1/networkservice/networkconfig/site-templates 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
{
"name" : "siteTemplate1",
"types" : [
"AP"
],
"custom" : true,
"parentId" : "fbde1c5d-5b94-49e3-a912-48641015e451",
"configIdentifies" : [
"snmp"
]
}
-
响应示例 返回状态码为201:成功创建的站点模板信息。 HTTP/1.1 201 Created
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" : {
"id" : "fbde1c5d-5b94-49e3-a912-48641015e451",
"name" : "siteTemplate1",
"types" : [
"AP"
],
"capabilities" : ["AP","FW","LSW"],
"custom" : true,
"configIdentifies" : "snmp"
}
} 返回状态码为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
-
响应示例 返回状态码为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
{
"pageIndex" : 1,
"pageSize" : 20,
"totalRecords" : 1,
"errcode" : "0",
"errmsg" : "",
"data" : [
{
"id" : "fbde1c5d-5b94-49e3-a912-48641015e451",
"name" : "siteTemplate1",
"type" : "lsw",
"devices" : 1,
"organizationName" : "lsw"
}
]
} 返回状态码为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
-
URI /controller/campus/v1/networkservice/networkconfig/site-template-binding-relationship/{siteTemplateId}/sites 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteTemplateId 是 string 36个字符。 - 站点模板ID,UUID格式。 "fbde1c5d-5b94-49e3-a912-48641015e451" 表2 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 pageSize 否 int32 [0-1000] - 每页大小,默认值为20。 20 pageIndex 否 int32 [0-1000] - 页码。 1 sort 否 string 0~32个字符。 - 排序字段,支持name。 "name"
-
响应参数 返回状态码为200:查询绑定的站点列表。 表3 GetSiteListDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 pageIndex int32 [0-1000] - 页码。 1 pageSize int32 [0-1000] - 每页大小。 20 totalRecords int32 [0-1000] - 总数。 1 errcode string 0~32个字符。 0 错误码。 "0" errmsg string 0~1000个字符。 错误信息。 "" data ARRAY_REFERENCE 0-100个列表项,详细请参见表4。 站点列表。 - 表4 SiteRespDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 id string 32~36个字符。 - 站点ID,UUID格式。 "fbde1c5d-5b94-49e3-a912-48641015e451" name string 0~128个字符。 - 站点名称。 "siteTemplate1" type string 0~32个字符。 - 类型。 "lsw" devices int32 [0-10000] - 设备数量。 1 organizationName string 0~128个字符。 - 组织名称。 "lsw" 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。 返回状态码为500:内部服务错误。 详细信息请参见实际响应消息体。
-
请求示例 HTTP的示例 GET /controller/campus/v1/networkservice/networkconfig/site-template-binding-relationship/fbde1c5d-5b94-49e3-a912-48641015e451/sites?pageSize=20&pageIndex=1&sort=name 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
{
"pageIndex" : 1,
"pageSize" : 20,
"totalRecords" : 1,
"errcode" : "0",
"errmsg" : "",
"data" : [
{
"id" : "fbde1c5d-5b94-49e3-a912-48641015e451",
"name" : "siteTemplate1",
"types" : [
"AP"
],
"capabilities" : ["AP","FW","LSW"],
"custom" : true,
"configIdentifies" : "snmp"
}
]
} 返回状态码为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 /controller/campus/v1/networkservice/networkconfig/site-templates?pageSize=20&pageIndex=1&sort=name&keyWord=siteTem1 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 GetSiteTempResponseDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 pageIndex int32 [0-1000] - 页码。 1 pageSize int32 [0-1000] - 每页大小。 20 totalRecords int32 [0-10000] - 总数。 1 errcode string 0~1000个字符。 0 错误码。 "0" errmsg string 0~1000个字符。 错误信息。 "" data ARRAY_REFERENCE 0-100个列表项,详细请参见表4。 站点模板列表。 - 返回状态码为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" : "",
"data" : {
"id" : "fbde1c5d-5b94-49e3-a912-48641015e451",
"name" : "siteTemplate1",
"types" : [
"AP"
],
"capabilities" : ["AP","FW","LSW"],
"custom" : true,
"configIdentifies" : "snmp"
}
} 返回状态码为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
-
URI /controller/campus/v1/networkservice/networkconfig/site-template-binding-relationship/{siteId}/site-template 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteId 是 string 36个字符。 - 站点ID,UUID格式。 "fbde1c5d-5b94-49e3-a912-48641015e451"
-
请求示例 HTTP的示例 GET /controller/campus/v1/networkservice/networkconfig/site-template-binding-relationship/fbde1c5d-5b94-49e3-a912-48641015e451/site-template 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 GetSiteTempDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~32个字符。 0 错误码。 "0" errmsg string 0~1000个字符。 错误信息。 "" data REFERENCE 详细请参见表4。 站点模板。 - 返回状态码为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" : "",
"data" : {
"id" : "fbde1c5d-5b94-49e3-a912-48641015e451",
"name" : "siteTemplate1",
"types" : [
"AP"
],
"capabilities" : ["AP","FW","LSW"],
"custom" : true,
"configIdentifies" : "snmp"
},
"list" : [
{
"id" : "fbde1c5d-5b94-49e3-a912-48641015e451",
"name" : "siteTemplate1",
"types" : [
"AP"
],
"capabilities" : ["AP","FW","LSW"],
"custom" : true,
"configIdentifies" : "snmp"
}
]
} 返回状态码为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的示例 POST /controller/campus/v1/networkservice/networkconfig/site-templates/duplication 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
{
"name" : "siteTemplate1",
"oriTemplateId" : "75b930a2-11c7-4612-af1c-75b930a2",
"cloneType" : "CLONE_SINGLE",
"destPath" : "CURRENT_PATH"
}