-
响应示例 返回状态码为200:删除成功,响应体参考CommonResponse。 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" : ""
} 返回状态码为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参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 delTargetHostInfo 是 REFERENCE 详细请参见表3。 删除SNMP目标主机信息 - 表3 DelTargetHostInfo对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 name 是 string 1~32个字符。 - 指定SNMP目标主机名。 "hostName"
-
请求示例 HTTP的示例 POST /controller/campus/v1/sdwan/snmp/trap/00000000-0000-0000-0000-000000000000/targetHost/delete 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" : "hostName"
}
-
响应示例 返回状态码为200:配置成功,响应体参考SnmpUserResponse。 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" : {
"config-status" : "reserved",
"errorInfo" : "",
"agentEnable" : true,
"allIpv4Interface" : false,
"passwordMinLength" : 8,
"usmUserCmplxCheck" : false,
"sysContact" : "R&D Beijing, Huawei Technologies co.,Ltd.",
"sysLocation" : "Beijing China",
"mibViews" : {
"mibView" : [
{
"viewName" : "view1",
"whiteList" : [
"iso"
],
"blackList" : [
"internet"
]
}
]
},
"v3Groups" : {
"group" : [
{
"groupName" : "group",
"securityLevel" : "privacy",
"acl" : 2000,
"readView" : "view1",
"writeView" : "view1",
"notifyView" : "view1"
}
]
},
"usmUsers" : {
"usmUser" : [
{
"name" : "user",
"groupName" : "group",
"authProtocol" : "sha2-512",
"authKey" : "Example@123",
"privProtocol" : "aes256",
"privKey" : "Example@234"
}
]
}
}
} 返回状态码为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/sdwan/snmp/user/00000000-0000-0000-0000-000000000000 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
{
"config-status" : "reserved",
"errorInfo" : "",
"agentEnable" : true,
"allIpv4Interface" : false,
"passwordMinLength" : 8,
"usmUserCmplxCheck" : false,
"sysContact" : "R&D Beijing, Huawei Technologies co.,Ltd.",
"sysLocation" : "Beijing China",
"mibViews" : {
"mibView" : [
{
"viewName" : "view1",
"whiteList" : [
"iso"
],
"blackList" : [
"internet"
]
}
]
},
"v3Groups" : {
"group" : [
{
"groupName" : "group",
"securityLevel" : "privacy",
"acl" : 2000,
"readView" : "view1",
"writeView" : "view1",
"notifyView" : "view1"
}
]
},
"usmUsers" : {
"usmUser" : [
{
"name" : "user",
"groupName" : "group",
"authProtocol" : "sha2-512",
"authKey" : "Example@123",
"privProtocol" : "aes256",
"privKey" : "Example@234"
}
]
}
}
-
请求示例 HTTP的示例 POST /controller/campus/v1/sdwan/snmp/user/00000000-0000-0000-0000-000000000000/mibView/delete 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
{
"names" : [
"view1"
]
}
-
响应示例 返回状态码为200:删除成功,响应体参考CommonResponse。 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" : ""
} 返回状态码为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:配置成功,响应体参考SnmpUserResponse。 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" : {
"config-status" : "reserved",
"errorInfo" : "",
"agentEnable" : true,
"allIpv4Interface" : false,
"passwordMinLength" : 8,
"usmUserCmplxCheck" : false,
"sysContact" : "R&D Beijing, Huawei Technologies co.,Ltd.",
"sysLocation" : "Beijing China",
"mibViews" : {
"mibView" : [
{
"viewName" : "view1",
"whiteList" : [
"iso"
],
"blackList" : [
"internet"
]
}
]
},
"v3Groups" : {
"group" : [
{
"groupName" : "group",
"securityLevel" : "privacy",
"acl" : 2000,
"readView" : "view1",
"writeView" : "view1",
"notifyView" : "view1"
}
]
},
"usmUsers" : {
"usmUser" : [
{
"name" : "user",
"groupName" : "group",
"authProtocol" : "sha2-512",
"authKey" : "Example@123",
"privProtocol" : "aes256",
"privKey" : "Example@234"
}
]
}
}
} 返回状态码为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的示例 PUT /controller/campus/v1/sdwan/snmp/user/00000000-0000-0000-0000-000000000000 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
{
"config-status" : "reserved",
"errorInfo" : "",
"agentEnable" : true,
"allIpv4Interface" : false,
"passwordMinLength" : 8,
"usmUserCmplxCheck" : false,
"sysContact" : "R&D Beijing, Huawei Technologies co.,Ltd.",
"sysLocation" : "Beijing China",
"mibViews" : {
"mibView" : [
{
"viewName" : "view1",
"whiteList" : [
"iso"
],
"blackList" : [
"internet"
]
}
]
},
"v3Groups" : {
"group" : [
{
"groupName" : "group",
"securityLevel" : "privacy",
"acl" : 2000,
"readView" : "view1",
"writeView" : "view1",
"notifyView" : "view1"
}
]
},
"usmUsers" : {
"usmUser" : [
{
"name" : "user",
"groupName" : "group",
"authProtocol" : "sha2-512",
"authKey" : "Example@123",
"privProtocol" : "aes256",
"privKey" : "Example@234"
}
]
}
}
-
响应示例 返回状态码为200:删除成功,响应体参考CommonResponse。 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" : ""
} 返回状态码为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:删除成功,响应体参考CommonResponse。 表2 CommonResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errCode string 0~10个字符。 - 错误码。 "0" errMsg string 0~255个字符。 - 错误描述。 "" 返回状态码为400:请求参数错误。 详细信息请参见实际响应消息体。 返回状态码为500:内部异常。 详细信息请参见实际响应消息体。
-
请求示例 HTTP的示例 DELETE /controller/campus/v1/sdwan/snmp/trap/00000000-0000-0000-0000-000000000000 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的示例 GET /controller/campus/v1/sdwan/snmp/trap/00000000-0000-0000-0000-000000000000 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:配置成功,响应体参考SnmpResponse。 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" : {
"config-status" : "reserved",
"errorInfo" : "",
"trapSwitch" : true,
"trapQueueSize" : 1000,
"trapSourceInterfaceName" : "GE0/0/0",
"serverSource" : "192.168.1.1",
"targetHosts" : {
"targetHost" : [
{
"name" : "hostName",
"address" : "192.168.2.1",
"isPublicNet" : false,
"notifyType" : "trap",
"portNumber" : 162,
"vpnInstanceName" : "underlay_1",
"interfaceName" : "GE0/0/1",
"userName" : "user",
"securityLevel" : "privacy"
}
]
},
"traps" : {
"trap" : [
{
"featureName" : "IFNET",
"trapName" : "linkdown"
}
]
}
}
} 返回状态码为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