查詢園區空間用途信息

路徑 /campuslink/paas/space/usage/list
版本號 1.2.0
協議 HTTPS
請求方法 POST
是否需要用戶身份鑒權
超時時間 10000

請求參數

名稱 類型 是否必選 示例值 描述
appId String 應用實例id
parentUsageCode String 父級空間用途code

返回數據

名稱 類型 示例值 描述
code Int

響應碼, 200: 成功

message String

錯誤消息

localizedMsg String

本地語言錯誤消息

data JSON

響應結果

usesCode String

空間用途code

usesName String

空間用途名稱

hasChild Boolean

是否有子級用途

示例

請求示例

{
	"id": "1509086454180",
	"version": "1.0",
	"request":{
		"apiVer": "1.2.0"
	},
	"params":{
		"appId": "value0",
		"parentUsageCode": "value1"
	}
}

正常返回示例

JSON 格式

{
  "id": "4de2c367-c1db-417c-aa15-8c585e595d92",
  "code": 200,
  "message": null,
  "localizedMsg": null,
  "data": [
    {
      "usesEncoded": null,
      "hasChild": false,
      "name": "酒店",
      "id": "2F10",
      "class": "com.aliyun.iotx.campuslink.si.dto.space.CampusSpaceUsesTypeDTO",
      "usesCode": "hotel",
      "parentId": null
    },
    {
      "usesEncoded": null,
      "hasChild": false,
      "name": "裙樓",
      "id": "2F11",
      "class": "com.aliyun.iotx.campuslink.si.dto.space.CampusSpaceUsesTypeDTO",
      "usesCode": "annex",
      "parentId": null
    }
  ]
}

異常返回示例

JSON 格式

{
    "id": "4de2c367-c1db-417c-aa15-8c585e595d92",
    "code": 28402,
    "message": "no access to the project",
    "localizedMsg": "無權訪問該項目",
    "data": null
}

錯誤碼

HttpCode 錯誤碼 錯誤信息 描述
500 500 Internal Error Internal Error
503 503 Service Unavailable Service Unavailable
403 403 Request Limited Request Limited
401 401 Empty Signature Empty Signature
400 400 Request Format Error Request Format Error
200 20003 Find Backend Error Find Backend Error
200 20004 Backend Service Error Backend Service Error
200 20055 Backend Service Invalid Request Format Error
200 20056 Hsf Invoke Timeout Hsf Invoke Timeout
200 401 Request Authorized Error Request Authorized Error
200 403 Request Forbidden Request Forbidden
200 500 Server Error Server Error
200 2402 iotToken not exist iottoken不存在
200 2402 iotToken not exist
200 460 iotToken is blank iotToken為空
200 2402 iottoken invalid iottoken已經失效
200 2401 refreshToken invalid refreshToken已經失效
200 2402 iotToken not exist
200 403 request forbidden. 請求被禁止
200 2477 import thirdaccount failed 導入三方賬號失敗
200 460 thirdAccountMetaList is blank 三方賬號列表為空
200 403 request forbidden. 請求被禁止
200 403 request forbidden. 請求被禁止
200 460 request parameter error. 入參不正確
200 460 identityIds need between 1-50 入參錯誤
200 403 request forbidden. 請求被禁止
200 2453 app not exist appkey不存在
200 2405 identity is not existed 統一身份id不存在
200 2407 auth identity exception 不存在相應的openId