华为乾坤-新增用户信息:响应示例

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

响应示例

返回状态码为201:创建成功,返回用户ID,响应体参考AddAccessUserOutput。

HTTP/1.1 201 Created
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" : "5b988058-e092-4310-a0ad-575e9b50e2db",
		"userGroupId" : "51cdcbe3-5e14-492b-ab27-86950b661d19",
		"modifyDate" : "1571710215000",
		"userName" : "test",
		"roleIds" : [
			 ""
		],
		"email" : "xxx@example.com",
		"telephone" : "1xxxxxxxxxx",
		"vaildPeriod" : "1571710215000",
		"maxAccessNum" : 1,
		"accessType" : "deny",
		"description" : "0",
		"nextUpdateUserpass" : true,
		"deviceManagerFlag" : true,
		"name" : "",
		"bindInfo" : {
			"bindDeviceInfo" : [
				{
					"deviceIp" : "10.1.1.1",
					"port" : "20",
					"vlan" : "3377"
				}
			],
			"bindAccDeviceInfo" : [
				{
					"deviceIp" : "10.1.1.1",
					"port" : "20",
					"vlan" : "3377"
				}
			],
			"bindEsn" : "21500829352SH1903955,21500829352SH1903977",
			"bindIP" : "10.1.1.1,10.1.1.2",
			"bindImsi" : "12312,668",
			"bindMac" : "11-11-11-11-11-11,22-22-22-22-22-22"
		},
		"fields" : [
			{
				"customFieldId" : "ea25fdbf-8dee-4823-bac2-5bfe8e3359cb",
				"customFieldValue" : "aaa"
			}
		],
		"accountStatus" : 0
	}
}

返回状态码为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

返回状态码为500:内部错误。

HTTP/1.1 500 Internal Server Error
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_0000002128520818.html