更新时间:2023-07-06 08:24:26下载pdf
本文介绍组织树查询的 API。
返回查询的组织对应的权限树形展示。
GET: /v1.0/iot-03/idaas/spaces/{space_id}/organizations
参数名 | 类型 | 参数位置 | 是否必填 | 说明 |
---|---|---|---|---|
code | String | uri | true | 组织标识 |
name | String | uri | true | 组织名称 |
space_id | String | uri | true | 隔离空间 ID |
参数名 | 类型 | 说明 |
---|---|---|
result | IdaasOrganizationTreeVO | 组织树结果 |
result
说明
参数名 | 类型 | 说明 |
---|---|---|
code | String | 组织标识 |
name | String | 组织名称 |
parent_code | String | 父组织标识 |
remark | String | 组织备注 |
full_path | String | 组织全路径 |
status | Integer | 是否启用
|
gmt_create | Long | 创建时间 |
gmt_modified | Long | 修改时间 |
child_organizations | List | 子节点权限 |
space_id | String | 隔离空间ID |
GET: /v1.0/iot-03/idaas/spaces/1400335346549391440/organizations?code=Acode&name=Aname
{
"result": {
"gmtModified": 1627440885439,
"code": "A",
"childOrganizations": [
{
"fullPath": "A/B",
"gmtModified": 1627440885439,
"code": "B",
"childOrganizations": [
{
"fullPath": "A/B/C",
"gmtModified": 1627440885439,
"code": "C",
"remark": "组织备注",
"gmtCreate": 1627440885439,
"spaceId": "1400335346549391442",
"parentCode": "B",
"name": "C组织",
"status": 0
}
],
"remark": "组织备注",
"gmtCreate": 1627440885439,
"spaceId": "1400335346549391442",
"parentCode": "A",
"name": "B组织",
"status": 0
},
{
"fullPath": "A/B'",
"gmtModified": 1627440885439,
"code": "B'",
"remark": "组织备注",
"gmtCreate": 1627440885439,
"spaceId": "1400335346549391442",
"parentCode": "A",
"name": "B'组织",
"status": 0
}
],
"remark": "组织备注",
"gmtCreate": 1627440885439,
"spaceId": "1400335346549391442",
"name": "A组织",
"status": 0
},
"t": 1629272469492,
"success": true
}
参考 错误码。
该内容对您有帮助吗?
是意见反馈该内容对您有帮助吗?
是意见反馈