调用DescribeFabricOrganizationChannels获取该组织加入的通道列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
| 名称 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | DescribeFabricOrganizationChannels |
系统规定参数。取值:DescribeFabricOrganizationChannels。 |
| OrganizationId | String | 是 | peers-aaaaaa2-1eqnj5o5**** |
组织ID |
| Location | String | 否 | cn-hangzhou |
位置 |
返回数据
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| RequestId | String | 1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3 |
请求ID |
| Success | Boolean | true |
是否成功 |
| ErrorCode | Integer | 200 |
错误码 |
| Result | Array of Result |
组织加入的通道列表 |
|
| BatchTimeout | Integer | 2 |
批处理超时时间,单位秒 |
| UpdateTime | String | 1533025590 |
更新时间 |
| ChaincodeCount | Integer | 2 |
链码数量 |
| PreferredMaxBytes | Integer | 24 |
首选最大字节数 |
| State | String | Running |
状态 |
| CreateTime | String | 1533025590 |
创建时间 |
| SupportChannelConfig | Boolean | true |
是否支持自定义配置参数 |
| OwnerName | String | uid-116748157028**** |
创建者 |
| OwnerUid | Long | 116748157028**** |
创建者Uid |
| OwnerBid | String | 26842 |
创建者Bid |
| MaxMessageCount | Integer | 12 |
块包含最大消息条目 |
| MemberCount | Integer | 3 |
成员数量 |
| RequestId | String | 1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3 |
请求ID |
| ConsortiumId | String | consortium-perf914-37cfcff9pa**** |
联盟ID |
| ChannelName | String | mychannel |
通道名 |
| DeleteTime | String | 1533025590 |
删除时间 |
| ChannelId | String | chan-first-channel-31hlgpen5k**** |
通道ID |
| Deleted | Boolean | true |
是否已经删除 |
| ConsortiumName | String | name |
联盟名称 |
| BlockCount | Integer | 3 |
块数量 |
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeFabricOrganizationChannels
&OrganizationId=peers-aaaaaa2-1eqnj5o5****
&Location=cn-hangzhou
&公共请求参数
正常返回示例
XML格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeFabricOrganizationChannelsResponse>
<RequestId>1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3</RequestId>
<Success>true</Success>
<ErrorCode>200</ErrorCode>
<Result>
<BatchTimeout>2</BatchTimeout>
<UpdateTime>1533025590</UpdateTime>
<ChaincodeCount>2</ChaincodeCount>
<PreferredMaxBytes>24</PreferredMaxBytes>
<State>Running</State>
<CreateTime>1533025590</CreateTime>
<SupportChannelConfig>true</SupportChannelConfig>
<OwnerName>uid-116748157028****</OwnerName>
<OwnerBid>26842</OwnerBid>
<MaxMessageCount>12</MaxMessageCount>
<MemberCount>3</MemberCount>
<RequestId>1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3</RequestId>
<ConsortiumId>consortium-perf914-37cfcff9pa****</ConsortiumId>
<ChannelName>mychannel</ChannelName>
<DeleteTime>1533025590</DeleteTime>
<ChannelId>chan-first-channel-31hlgpen5k****</ChannelId>
<Deleted>true</Deleted>
<ConsortiumName>name</ConsortiumName>
<BlockCount>3</BlockCount>
</Result>
</DescribeFabricOrganizationChannelsResponse>
JSON格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3",
"Success" : true,
"ErrorCode" : 200,
"Result" : [ {
"BatchTimeout" : 2,
"UpdateTime" : "1533025590",
"ChaincodeCount" : 2,
"PreferredMaxBytes" : 24,
"State" : "Running",
"CreateTime" : "1533025590",
"SupportChannelConfig" : true,
"OwnerName" : "uid-116748157028****",
"OwnerBid" : "26842",
"MaxMessageCount" : 12,
"MemberCount" : 3,
"RequestId" : "1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3",
"ConsortiumId" : "consortium-perf914-37cfcff9pa****",
"ChannelName" : "mychannel",
"DeleteTime" : "1533025590",
"ChannelId" : "chan-first-channel-31hlgpen5k****",
"Deleted" : true,
"ConsortiumName" : "name",
"BlockCount" : 3
} ]
}
错误码
访问错误中心查看更多错误码。