华为乾坤-修改AP VPN配置:请求示例

时间:2025-02-17 11:36:30

请求示例

HTTP的示例
PUT /controller/campus/api/v1/networkconfig/apvpn 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
{
	"id" : "e4d2b0e95bb94ef0a75b6a530d0b41be",
	"ipsecConnectionName" : "vpn1",
	"deviceName" : "AirEngine6760R-51_FBF792C3",
	"deviceId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e",
	"peerAddress" : "192.168.1.1" ,
	"localIdType" : "ip",
	"localIdValue" : "myhost.example.com",
	"refinedAcl" : [
		{
			"priority" : 1,
			"action" : true,
			"protocol" : "tcp",
			"sourceIp" : "192.168.1.0/24",
			"sourceIpPort" : "1000",
			"desIp" : "192.168.1.0/24",
			"port" : "1000",
			"description" : "acl信息"
		}
	],
	"filterAcl" : [
		{
			"priority" : 1,
			"action" : true,
			"protocol" : "tcp",
			"sourceIp" : "192.168.1.0/24",
			"sourceIpPort" : "1000",
			"desIp" : "192.168.1.0/24",
			"port" : "1000",
			"description" : "acl信息"
		}
	],
	"ipsecTemplateId" : "f285e423-492a-41ef-a4b8-5a687fc6832a",
	"preSharedKey" : "IAm@example"
}
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000001852676870.html