华为乾坤-查询指定站点的SSID配置:响应示例

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

响应示例

返回状态码为200:站点内SSID信息,返回结构体参见QuerySsidResponse。

HTTP/1.1 200 OK
Date: Sun,16 Feb 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" : [
		{
			"id" : "de5813f8ff1e41f5ba9c324da70b49ed",
			"name" : "Huawei-Guest",
			"pki" : "default",
			"tags" : [
				{
					"name" : "testApTag"
				}
			],
			"strategyId" : "6e930b21-a107-45a9-96a2-f1443ca82f39",
			"enable" : true,
			"connectionMode" : "bridge",
			"vlans" : [
				{
					"priority" : 0,
					"vlanId" : 10,
					"vlanDesc" : "work",
					"tags" : [
						{
							"name" : "testApTag"
						}
					]
				}
			],
			"vlanId" : 10,
			"vlanDesc" : "work",
			"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" : 10,
			"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,
			"timeTemplateId" : "b90f8190-e12f-4323-95f3-4018309209c4",
			"timeTemplateName" : "全天",
			"seaSwitch" : false,
			"overDsPrivate" : "disable",
			"blackAndWhite" : {
				"bindingType" : 2,
				"terminalMacList" : [
					 "XX:XX:XX:XX:XX:XX"
				],
				"terminalOUIList" : [
					 "02:02:01"
				]
			},
			"ssidAuth" : {
				"mode" : "ppsk",
				"oweTransitionMode" : true,
				"transitionOpenSsid" : "de5813f8ff1e41f5ba9c324da70b49ed",
				"pskEncryptType" : "wpa2",
				"wepType" : "WEP40",
				"wepDefaultKey" : 0,
				"enableMacAuth" : false,
				"saeEncryptType" : "",
				"saeSecurityKey" : "",
				"pskSaeEncryptType" : "",
				"pskSaeSecurityKey" : "",
				"securityKey" : "",
				"securityKeyType" : "AES",
				"dot1xEncryptType" : "",
				"dot1xQuietPeriod" : 60,
				"dot1xQuietTimes" : 10,
				"portal" : {
					"mode" : "portalDisable",
					"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-rule",
					"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" : "",
					"radiusTmplName" : "",
					"staticEnable" : "",
					"iconnectAccessEnable" : "",
					"autoReauthenTime" : "",
					"hacaEnable" : ""
				},
				"macAutoBinding" : true,
				"macAuthMethod" : "",
				"escapeStrategy" : "noAuth",
				"escapeProfileName" : "escapeStrategy1",
				"escapeProfileId" : "5871926c-2a5e-4340-a931-19ce019a231c",
				"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",
					"tunnelAclTmplId" : "b90f8190-e12f-4323-95f3-4018309209c5",
					"tunnelAclTmplName" : "test-tunnel-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"
							}
						]
					},
					"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-config-name",
			"phyProtection" : "security-priority"
		}
	]
}

返回状态码为400:校验异常。

HTTP/1.1 400 Bad Request
Date: Sun,16 Feb 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000001898798993.html