华为乾坤-创建站点:响应示例

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

响应示例

返回状态码为200:创建站点成功,响应体参考createSiteOut。

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" : "",
	"success" : [
		{
			"id" : "ea25fdbf-8dee-4823-bac2-5bfe8e3359ca",
			"name" : "site1",
			"description" : "site1",
			"type" : ["AP"],
			"pattern" : 1,
			"latitude" : "50",
			"longtitude" : "111",
			"longitude" : "111",
			"contact" : "David",
			"tag" : ["abcd"],
			"isolated" : false,
			"email" : "xxx@xxx.xxx",
			"phone" : "152XXXXXXXX",
			"postcode" : "215000",
			"address" : "66 JiangYun Road",
			"approvalSwitch" : false,
			"autoApprovalSwitch" : false,
			"autoTopoCheck" : false,
			"validityPeriod" : 1,
			"siteCode" : "",
			"siteCodeExpireTime" : 1686131018523,
			"siteTag" : ""
		}
	],
	"fail" : [
		{
			"errcode" : "-1",
			"errmsg" : "cfgOriginId 不存在",
			"data" : [
				{
					"name" : "site1"
				}
			]
		}
	]
}

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