华为乾坤-新增该站点模板的SSID配置:请求示例

时间:2025-02-17 11:37:32

请求示例

HTTP的示例
POST /controller/campus/v3/networkconfig/site-templates/fbde1c5d-5b94-49e3-a912-48641015e45c/apssid 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" : "Huawei-Guest",
	"pki" : "default",
	"tags" : [
		{
			"name" : "testApTag"
		}
	],
	"enable" : true,
	"timeTemplateId" : "2c3918cb-f0bd-44e3-963b-119870bfc779",
	"connectionMode" : "nat",
	"vlans" : [
		{
			"vlanId" : 10,
			"vlanDesc" : "work"
		}
	],
	"customVlans" : [
		{
			"priority" : 0,
			"vlanId" : 10,
			"vlanDesc" : "work",
			"tags" : [
				{
					"name" : "testApTag"
				}
			]
		}
	],
	"vlanMode" : "vlanId",
	"vlanPoolId" : "1e930b21-a307-45a9-96a2-f1443ca84f39",
	"vlanPoolName" : "vlanPool",
	"hidedEnable" : false,
	"autoOffTrackLinkEnable" : false,
	"arpCheckEnable" : true,
	"ipCheckEnable" : true,
	"dhcpStrictEnable" : false,
	"dhcpv6SlaacStrictEnable" : 0,
	"mdnsSnoopingEnable" : false,
	"dnsSnoopingEnable" : false,
	"gameSpeedUpEnable" : false,
	"relativeRadios" : 3,
	"relativeOnlyTwoRadios" : 3,
	"dtimInterval" : 1,
	"advertiseApNameSwitch" : true,
	"frequencyNavigation" : true,
	"maxUserNumber" : 64,
	"blackAndWhite" : {
		"bindingType" : 2,
		"terminalMacList" : [
			 "XX:XX:XX:XX:XX:XX"
		],
		"terminalOUIList" : [
			 "02:02:01"
		]
	},
	"userSeparation" : false,
	"separationOption" : "disable",
	"userL2LanIsolate" : false,
	"staNetworkDetect" : true,
	"muMiMo" : true,
	"associationTimeout" : 5,
	"erSuSwitch" : true,
	"userFlowSyslogEnable" : false,
	"multiLinkOper" : false,
	"lay3RoamSwitch" : true,
	"suExtendedRangeSwitch" : false,
	"muRtsSwitch" : false,
	"muRtsThreshold" : 2347,
	"forbiddenOldTerminal" : false,
	"reachMaxSta" : 1,
	"igmpSnooping" : false,
	"multicast2Unicast" : "disable",
	"bcmcDenyAll" : false,
	"bonjourTransparent" : false,
	"powerSave" : false,
	"beacon2gRate" : "1Mbps",
	"beacon5gRate" : "6Mbps",
	"beacon6gRate" : "6Mbps",
	"sipPort" : 5060,
	"timeTemplateName" : "全天",
	"seaSwitch" : false,
	"overDsPrivate" : "disable",
	"ssidAuth" : {
		"mode" : "ppsk",
		"oweTransitionMode" : true,
		"transitionOpenSsid" : "de5813f8ff1e41f5ba9c324da70b49ed",
		"pskEncryptType" : "wpa2",
		"wepType" : "WEP40",
		"wepDefaultKey" : 0,
		"enableMacAuth" : false,
		"securityKey" : "",
		"saeEncryptType" : "",
		"saeSecurityKey" : "",
		"pskSaeEncryptType" : "",
		"pskSaeSecurityKey" : "",
		"securityKeyType" : "AES",
		"dot1xEncryptType" : "",
		"dot1xQuietPeriod" : 60,
		"dot1xQuietTimes" : 10,
		"macAutoBinding" : true,
		"macAuthMethod" : "",
		"escapeStrategy" : "noAuth",
		"escapeProfileName" : "escapeStrategy1",
		"escapeProfileId" : "5871926c-2a5e-4340-a931-19ce019a231c",
		"portal" : {
			"mode" : "portalThirdIndirect",
			"pushProtocol" : "https",
			"freeAuthEnable" : true,
			"authExpireUnit" : "day",
			"authExpire" : 10,
			"escapeStrategy" : 2,
			"escapeProfileName" : "escapeStrategy1",
			"escapeProfileId" : "5871926c-2a5e-4340-a931-19ce019a231c",
			"freeAclTmplId" : "b90f8190-e12f-4323-95f3-4018309209c4",
			"freeAclTmplName" : "free-acl-name",
			"controllerPortalType" : "haca",
			"masterPortalTmplId" : "0b6d8077-947a-41d0-a539-c8a02c5fe6dc",
			"masterPortalTmplName" : "",
			"bakPortalEnable" : false,
			"bakPortalTmplId" : "0b6d8077-947a-41d0-a539-c8a02c5fe6dc",
			"bakPortalTmplName" : "",
			"authRedirectUrlCarryEnable" : false,
			"radiusEnable" : false,
			"radiusTmplId" : "0b6d8077-947a-41d0-a539-c8a02c5fe6dc",
			"radiusTmplName" : "",
			"fastPushEnable" : true,
			"portalPageId" : "0b6d8077-947a-41d0-a539-c8a02c5fe6dc",
			"wechatUrlAuthEnable" : false,
			"weComAuthEnable" : false,
			"dingTalkEnable" : false,
			"normalEnable" : false,
			"registerEnable" : false,
			"registerExpire" : 2,
			"registerExpireUnit" : "hour",
			"userRegisterMaxAccessNumber" : 0,
			"userGroupId" : "0b6d8077-947a-41d0-a539-c8a02c5fe6dc",
			"smsAuthEnable" : false,
			"smsPasswordExpire" : 5,
			"smsPasswordExpireUnit" : "minute",
			"smsUserRegisterEnable" : false,
			"smsUserExpire" : 2,
			"smsUserExpireUnit" : "hour",
			"smsUserMaxAccessNumber" : 0,
			"smsUserGroupId" : "0b6d8077-947a-41d0-a539-c8a02c5fe6dc",
			"emailAuthEnable" : false,
			"passCodeEnable" : false,
			"oneKeyAuthEnable" : false,
			"anonymousEnable" : false,
			"socialMediaEnable" : false,
			"twitterEnable" : false,
			"sinaEnable" : false,
			"qqEnable" : false,
			"qrCodeAuthEnable" : false,
			"qrCodeRegisterEnable" : false,
			"googleEnable" : false,
			"accountingEnable" : false,
			"accountingExpire" : 15,
			"interconnectionMode" : "API",
			"userNameKey" : "用户",
			"passwordKey" : "",
			"urlMatchMode" : 0,
			"successUrlKey" : "",
			"authFailedUrlKey" : "",
			"logoutSuccessUrlKey" : "",
			"logoutFailedUrlKey" : "",
			"logoutUrlKey" : "",
			"radiusModelId" : "0b6d8077-947a-41d0-a539-c8a02c5fe6dc"
		},
		"radius" : {
			"radiusTmplId" : "b90f8190-e12f-4323-95f3-4018309209c4",
			"radiusTmplName" : "test",
			"staticEnable" : false,
			"iconnectAccessEnable" : "",
			"autoReauthenTime" : "",
			"hacaEnable" : false
		},
		"haca" : {
			"authComponentId" : "00000000-0000-0000-0000-000000000000",
			"authComponentIp" : "10.20.0.0",
			"bakAuthComponentId" : "00000000-0000-0000-0000-000000000000",
			"bakAuthComponentIp" : "10.20.0.0"
		}
	},
	"vapBackupConfig" : {
		"vapBackupEnable" : false,
		"radiusBackupTmplId" : "cf23f275-01e6-4301-890e-407e1d78c53e",
		"rejectNewAccess" : false
	},
	"ssidPolicy" : {
		"securityPolicy" : {
			"highReliableSliceAclTplId" : "b90f8190-e12f-4323-95f3-4018309209c4",
			"highReliableSliceAclTplName" : "test-slice-acl",
			"highReliableSliceAclTplIdIpv6" : "b90f8190-e12f-4323-95f3-4018309209c4",
			"highReliableSliceAclTplNameIpv6" : "test-slice-acl",
			"securityAclTmplId" : "b90f8190-e12f-4323-95f3-4018309209c4",
			"securityAclTmplName" : "test-security-acl",
			"securityIPv6AclTmplId" : "b90f8190-e12f-4323-95f3-4018309209c4",
			"securityIPv6AclTmplName" : "test-security-acl",
			"ipsecAclTmplId" : "b90f8190-e12f-4323-95f3-4018309209c5",
			"ipsecAclTmplName" : "test-ipsec-acl",
			"tcpAdjustMss" : 1380,
			"appTrafficAcls" : {
				"appTrafficAclList" : [
					{
						"direction" : "inbound",
						"index" : 0,
						"dscp" : 1,
						"appTrafficAclTplId" : "b90f8190-e12f-4323-95f3-4018309209c5",
						"appTrafficAclName" : "test-tunnel-acl"
					}
				]
			},
			"tunnelAclTmplId" : "b90f8190-e12f-4323-95f3-4018309209c5",
			"tunnelAclTmplName" : "test-tunnel-acl",
			"urlFilter" : {
				"enable" : true,
				"mode" : 1,
				"urls" : [
					 ""
				],
				"hostNames" : [
					 ""
				]
			},
			"appsPolicys" : {
				"siteSaList" : [
					{
						"appId" : 1,
						"type" : "app",
						"appType" : 1,
						"appName" : "test_name",
						"action" : "permit",
						"dscp" : 1,
						"car" : 1000
					}
				]
			}
		},
		"ssidRateLimit" : {
			"upEnable" : true,
			"upLimit" : "50.0",
			"downEnable" : true,
			"downLimit" : "50.0"
		},
		"terminalRateLimit" : {
			"upEnable" : true,
			"upLimit" : "50.0",
			"downEnable" : true,
			"downLimit" : "50.0",
			"timeRange" : [
				{
					"timeTemplateId" : "b90f8190-e12f-4323-95f3-4018309209c4",
					"upEnable" : true,
					"upLimit" : "50.0",
					"downEnable" : true,
					"downLimit" : "50.0"
				}
			]
		},
		"terminalDynamicRateLimit" : {
			"dynamicEnable" : false,
			"dynamicLimit" : 16
		},
		"ipv6Enable" : false,
		"ndTrustPort" : false
	},
	"dot11r" : false,
	"overDs" : false,
	"reassociateTimeout" : 1,
	"serviceGuarantee" : "performanceFirst",
	"activeDullClient" : false,
	"wmmScene" : "default",
	"edcaClientConfigList" : [
		{
			"accessCategory" : "acvo",
			"aifsn" : 10,
			"ecwmax" : 10,
			"ecwmin" : 10,
			"txoplimit" : 10
		}
	],
	"insertOption82Enable" : false,
	"option82" : {
		"circuitId" : {
			"connectorPattern" : "colon",
			"contentType" : "ap-mac",
			"format" : "ascii",
			"userDefinedText" : "xxx"
		},
		"remoteId" : {
			"connectorPattern" : "colon",
			"contentType" : "ap-mac",
			"format" : "ascii",
			"userDefinedText" : "xxx"
		}
	},
	"forwardMode" : "direct",
	"softgreProfileId" : "fbde1c5d-5b94-49e3-a912-48641015e45f",
	"configName" : "ssid-tmp-config-name",
	"phyProtection" : "security-priority"
}
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000001852298036.html