华为乾坤-创建内联链路:请求示例

时间:2025-05-12 15:31:49

请求示例

HTTP的示例
POST /controller/campus/v1/sdwan/net/site/interlink 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
{
	"interLinks" : [
		{
			"id" : "a99f794e-b510-438c-a75d-de59f02347eb",
			"interLink" : {
				"type" : "l3-interface",
				"enableGre" : false,
				"vlanMin" : 4000,
				"vlanMax" : 4008,
				"extendVlans" : ["1:9"],
				"portPairs" : [
					{
						"device1PortId" : "a99f794e-b510-438c-a75d-de59f02347eb",
						"device2PortId" : "a99f794e-b510-438c-a75d-de59f02347eb",
						"device1Id" : "a99f794e-b510-438c-a75d-de59f02347eb",
						"device1PortType" : "GE",
						"device1PortNum" : "0/0/1",
						"device1PortAddress" : "192.168.101.1",
						"device1PortMask" : 24,
						"device2Id" : "a99f794e-b510-438c-a75d-de59f02347eb",
						"device2PortType" : "GE",
						"device2PortNum" : "0/0/1",
						"device2PortAddress" : "192.168.101.1",
						"device2PortMask" : 24
					}
				],
				"mtu" : 1500,
				"mss" : 1200
			}
		}
	]
}
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000001898665429.html