获取组织列表
更新时间:2020-04-09
获取组织列表
接口描述 获取组织列表。
权限说明 请求发起人需要具有合法的AccessKeyID和SecretAccessKey才能发起请求。
注意事项
如果请求中没有用户验证信息(即匿名访问),返回403 Forbidden
,错误信息:AccessDenied
。
请求(Request)
-
请求语法
Plain Text1GET /v1/quorum/consortium/orgs HTTP/1.1 2Host: bbe.bj.baidubce.com 3x-bce-date: <x-bce-date> 4x-bce-request-id: <x-bce-request-id> 5Authorization: <Authorization>
- 请求头域 除公共头域外,无其它特殊头域。
-
请求参数
无
响应(Response)
- 响应头域 除公共头域外,无其它特殊头域。
-
响应参数
名称 类型 描述 pageNo Integer 查询结果页码 pageSize Integer 当前页面包含结果条数 result []OrgInfo 组织结果列表,结构具体定义见附录说明 失败响应参考错误码部分。
示例
-
请求示例
Plain Text1GET /v1/quorum/consortium/orgs HTTP/1.1 2Host: bbe.bj.baidubce.com 3x-bce-date: 2019-10-23T06:26:02Z 4x-bce-request-id: b9485394-c7dc-3cfa-d454-57c34773d08c 5Authorization: bce-auth-v1/98cdcde27d8e464d895222fd8023a029/2019-10-23T06:26:02Z/1800/host/1e88313cae40a47550bdf0e3bfa591c06e4443c1ed690d510032e084676b00f8
-
响应示例
Plain Text1200 2Content-Length: 532 3Content-Type: application/json; charset=utf-8 4Date: Wed, 23 Oct 2019 06:26:02 GMT 5{ 6 "pageNo": 1, 7 "pageSize": 2, 8 "result": [{ 9 "uuid": "bd1f706b-965e-ea99-1071-57b5903b3d73", 10 "name": "org0", 11 "domain": "org0", 12 "description": "test", 13 "userId": "eca97e148cb74e9683d7b7240829d1ff", 14 "createTime": "2019-07-29T16:16:11+08:00" 15 }, 16 { 17 "uuid": "60548153-1930-434f-8c36-0ba827ae9368", 18 "name": "test-org", 19 "domain": "test-org", 20 "description": "test-org", 21 "userId": "eca97e148cb74e9683d7b7240829d1ff", 22 "createTime": "2019-10-23T15:10:56+08:00" 23 } 24 ] 25}