-
响应示例 返回状态码为200:站点VTY接口配置结果,返回结构体参见SiteVtyResponseDto。 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" : {
"timeOut" : 15,
"screenLength" : 36,
"aclTpId" : "fbde1c5d-5b94-49e3-a912-48641015e45d"
}
} 返回状态码为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
-
请求参数 表2 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteVtyDto 是 REFERENCE 详细请参见表3。 站点VTY接口配置信息,结构体参见SiteVtyDto。 - 表3 SiteVtyDto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 timeOut 是 int32 [0-35791] - 设备登录超时时间,单位:分钟,取值范围0~35791。 15 screenLength 是 int32 [0-512] - 分屏行数,取值范围0~512。 36 aclTpId 否 string - - ACL模板ID,用于限制登录用户的权限,清空时输入空字符串""。ACL模板可以通过第三方开放接口/controller/campus/v3/profile/acl得到。UUID格式。 "fbde1c5d-5b94-49e3-a912-48641015e45d"
-
请求示例 HTTP的示例 PUT /controller/campus/v1/networkservice/networkconfig/net/vty/sites/fbde1c5d-5b94-49e3-a912-48641015e45c/vty 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
{
"timeOut" : 15,
"screenLength" : 36,
"aclTpId" : "fbde1c5d-5b94-49e3-a912-48641015e45d"
}
-
请求示例 HTTP的示例 GET /controller/campus/v1/networkservice/networkconfig/net/vty/sites/fbde1c5d-5b94-49e3-a912-48641015e45c/vty 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:站点VTY接口配置结果,返回结构体参见SiteVtyResponseDto。 表2 SiteVtyResponseDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" data REFERENCE 详细请参见表3。 - - 表3 SiteVtyDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 timeOut int32 [0-35791] - 设备登录超时时间,单位:分钟,取值范围0~35791。 15 screenLength int32 [0-512] - 分屏行数,取值范围0~512。 36 aclTpId string - - ACL模板ID,用于限制登录用户的权限,清空时输入空字符串""。ACL模板可以通过第三方开放接口/controller/campus/v3/profile/acl得到。UUID格式。 "fbde1c5d-5b94-49e3-a912-48641015e45d" 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。 返回状态码为500:内部服务错误。 详细信息请参见实际响应消息体。
-
响应示例 返回状态码为200:站点VTY接口配置结果,返回结构体参见SiteVtyResponseDto。 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" : {
"timeOut" : 15,
"screenLength" : 36,
"aclTpId" : "fbde1c5d-5b94-49e3-a912-48641015e45d"
}
} 返回状态码为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