調用DescribeFabricConsortiumChannels獲取聯盟的通道列表。
調試
您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
請求參數
名稱 |
類型 |
是否必選 |
示例值 |
描述 |
Action | String | 是 | DescribeFabricConsortiumChannels | 系統規定參數。取值:DescribeFabricConsortiumChannels。 |
ConsortiumId | String | 是 | consortium-lianmenyumingyi-hc5d1bwl**** | 聯盟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 | 1544411108000 | 更新時間 |
ChaincodeCount | Integer | 2 | 鏈碼數量 |
PreferredMaxBytes | Integer | 102410241 | 首選最大字節數 |
MemberJoinedCount | String | 3 | 加入聯盟的成員數量 |
State | String | Running | 狀態 |
CreateTime | String | 1544411108000 | 創建時間 |
SupportChannelConfig | Boolean | true | 是否支持自定義配置參數 |
OwnerName | String | uid-* | 創建者 |
OwnerUid | Long | 212 | 創建者Uid |
OwnerBid | String | 26842 | 創建者Bid |
MaxMessageCount | Integer | 200 | 塊包含最大消息條目 |
MemberCount | Integer | 3 | 通道成員數量 |
NeedJoined | Boolean | true | 是否需要加入 |
RequestId | String | 1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3 | 請求ID |
ConsortiumId | String | consortium-lianmenyumingyi-hc5d1bwl**** | 聯盟ID |
ChannelName | String | mychammel | 通道名稱 |
DeleteTime | String | 1544411108000 | 刪除時間 |
ChannelId | String | chan-channelx-1l1hmckuuisxo | 通道ID |
ConsortiumChannelId | Integer | 1 | 聯盟中通道序列 |
Deleted | Boolean | true | 是否刪除 |
ConsortiumName | String | name | 聯盟名稱 |
BlockCount | Integer | 2 | 塊數量 |
示例
請求示例
http(s)://[Endpoint]/?Action=DescribeFabricConsortiumChannels
&ConsortiumId=consortium-lianmenyumingyi-hc5d1bwl****
&Location=cn-hangzhou
&公共請求參數
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeFabricConsortiumChannelsResponse>
<RequestId>1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3</RequestId>
<Success>true</Success>
<ErrorCode>200</ErrorCode>
<Result>
<BatchTimeout>2</BatchTimeout>
<UpdateTime>1544411108000</UpdateTime>
<ChaincodeCount>2</ChaincodeCount>
<PreferredMaxBytes>102410241</PreferredMaxBytes>
<MemberJoinedCount>3</MemberJoinedCount>
<State>Running</State>
<CreateTime>1544411108000</CreateTime>
<SupportChannelConfig>true</SupportChannelConfig>
<OwnerName>uid-*</OwnerName>
<OwnerUid>212</OwnerUid>
<OwnerBid>26842</OwnerBid>
<MaxMessageCount>200</MaxMessageCount>
<MemberCount>3</MemberCount>
<NeedJoined>true</NeedJoined>
<RequestId>1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3</RequestId>
<ConsortiumId>consortium-lianmenyumingyi-hc5d1bwl****</ConsortiumId>
<ChannelName>mychammel</ChannelName>
<DeleteTime>1544411108000</DeleteTime>
<ChannelId>chan-channelx-1l1hmckuuisxo</ChannelId>
<ConsortiumChannelId>1</ConsortiumChannelId>
<Deleted>true</Deleted>
<ConsortiumName>name</ConsortiumName>
<BlockCount>2</BlockCount>
</Result>
</DescribeFabricConsortiumChannelsResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3",
"Success" : true,
"ErrorCode" : 200,
"Result" : [ {
"BatchTimeout" : 2,
"UpdateTime" : "1544411108000",
"ChaincodeCount" : 2,
"PreferredMaxBytes" : 102410241,
"MemberJoinedCount" : "3",
"State" : "Running",
"CreateTime" : "1544411108000",
"SupportChannelConfig" : true,
"OwnerName" : "uid-*",
"OwnerUid" : 212,
"OwnerBid" : "26842",
"MaxMessageCount" : 200,
"MemberCount" : 3,
"NeedJoined" : true,
"RequestId" : "1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3",
"ConsortiumId" : "consortium-lianmenyumingyi-hc5d1bwl****",
"ChannelName" : "mychammel",
"DeleteTime" : "1544411108000",
"ChannelId" : "chan-channelx-1l1hmckuuisxo",
"ConsortiumChannelId" : 1,
"Deleted" : true,
"ConsortiumName" : "name",
"BlockCount" : 2
} ]
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
文檔內容是否對您有幫助?