华为乾坤-查询站点:响应示例

时间:2023-12-08 14:36:23

响应示例

返回状态码为200:查询站点列表返回体,响应体参考querySitesOut。

HTTP/1.1 200 OK
Date: Sun,10 Sep 2023 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
	"errcode" : "0",
	"errmsg" : "",
	"totalRecords" : 1,
	"pageIndex" : 1,
	"pageSize" : 20,
	"data" : [
		{
			"id" : "ea25fdbf-8dee-4823-bac2-5bfe8e3359ca",
			"tenantId" : "ea25fdbf-8dee-4823-bac2-5bfe8e3359ca",
			"name" : "site1",
			"description" : "site1",
			"type" : ["AP"],
			"latitude" : "50",
			"longtitude" : "111",
			"longitude" : "111",
			"contact" : "David",
			"tag" : ["abcd"],
			"isolated" : false,
			"email" : "xxx@xxx.xxx",
			"phone" : "15277431823",
			"postcode" : "215000",
			"address" : "66 JiangYun Road"
		}
	]
}

返回状态码为400:参数校验异常,无响应体。

HTTP/1.1 400 Bad Request
Date: Sun,10 Sep 2023 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,10 Sep 2023 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/qiankuncs_cmn_08_0095.html