华为乾坤-批量修改策略行为模板:请求示例

时间:2025-02-17 11:38:20

请求示例

HTTP的示例
PUT /controller/campus/v1/sdwan/policy/traffic/behavior-profile 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
{
	"trafficBehaviors" : [
		{
			"id" : "00000000-0000-0000-0000-000000000000",
			"name" : "templateName",
			"type" : "qos",
			"redirectInfo" : {
				"nextHopType" : "ip",
				"nextHop" : "192.168.2.254",
				"nextHopSiteId" : "000000-0000-0000-0000-000000000000",
				"nextHopSiteName" : "site",
				"trackIp" : "192.168.2.2",
				"backupNextHop" : "192.168.2.224",
				"backupNextHopSiteId" : "000000-0000-0000-0000-000000000000",
				"backupNextHopSiteName" : "site",
				"backupTrackIp" : "192.168.2.222"
			},
			"qosInfo" : {
				"id" : "00000000-0000-0000-0000-000000000000",
				"name" : "templateName",
				"inboundCar" : {
					"enableInboundQos" : false,
					"cirValue" : 1,
					"cirPercentage" : 10,
					"pirValue" : 1,
					"pirPercentage" : 10
				},
				"enableQueuePriority" : false,
				"priorityLevel" : "highest",
				"guaranteedBandwidthValue" : 1,
				"guaranteedBandwidthPercentage" : 10,
				"enableBandwidthLimit" : false,
				"limitType" : "CAR",
				"limitBandwidthValue" : 1,
				"limitBandwidthPeakValue" : 1,
				"limitBandwidthPercentage" : 10,
				"enableRemarkDscp" : false,
				"remarkDscpValue" : 10,
				"enableRemark8021p" : false,
				"remark8021pValue" : 1,
				"enableRemarkMplsExp" : false,
				"remarkMplsExpValue" : 6,
				"enableStatistic" : false,
				"enableWred" : false,
				"wredProfileId" : "00000000-0000-0000-0000-000000000000",
				"wredProfileName" : "wredProfileName",
				"enableQueueLength" : false,
				"queueByteLength" : 3000,
				"queuePacketLength" : 10,
				"wanEnable" : true,
				"lanEnable" : false,
				"tcpOptimization" : {
					"enableTcpOptimization" : false,
					"congestionControlAlgorithm" : "BBR",
					"sendBufferMax" : 6000
				},
				"weightFixEnable" : false
			}
		}
	]
}
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000001870588721.html