You can call this operation to obtain the list of channels that the organization has joined.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
Action | String | Yes | DescribeFabricOrganizationChannels | The operation that you want to perform. Set the value to DescribeFabricOrganizationChannels. |
OrganizationId | String | Yes | peers-aaaaaa2-1eqnj5o5**** | The ID of the organization. |
Location | String | No | cn-hangzhou | The location. |
RegionId | String | No | cn-hangzhou | The ID of the region. |
Response parameters
Parameter | Type | Example | Description |
ErrorCode | Integer | 200 | The error code. |
RequestId | String | 1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3 | The ID of the API request. |
Result | The list of channels that the organization has joined. | ||
BatchTimeout | Integer | 2 | The amount of time to wait after the first transaction arrives for additional transactions before cutting a block. |
BlockCount | Integer | 3 | The number of blocks. |
ChaincodeCount | Integer | 2 | The number of chaincodes. |
ChannelId | String | chan-channelx-1l1hmckuuisxo | The ID of the channel. |
ChannelName | String | mychannel | The name of the channel. |
ConsortiumId | String | consortium-lianmenyumingyi-hc5d1bwlulg7 | The ID of the consortium. |
ConsortiumName | String | name | The name of the consortium. |
CreateTime | String | 1533025590 | The time when the channel was created. |
DeleteTime | String | 1533025590 | The time when the channel was deleted. |
DeleteTime | String | 1533025590 | The time when the channel was deleted. |
Deleted | Boolean | true | Indicates whether the object has been deleted. |
Deleted | Boolean | true | Indicates whether the object has been deleted. |
MaxMessageCount | Integer | 12 | The maximum number of transactions that are permitted in a block. |
MemberCount | Integer | 3 | The number of members. |
OwnerBid | String | 253 | The business ID of the creator. |
OwnerName | String | uid-5324 | The creator. |
OwnerUid | Integer | 5324 | The user ID of the creator. |
PreferredMaxBytes | Integer | 24 | The preferred maximum number of bytes allowed for. |
RequestId | String | 1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3 | The ID of the API request. |
State | String | Running | The status. |
SupportChannelConfig | Boolean | true | Indicates whether custom parameters are supported. |
UpdateTime | String | 1533025590 | The time when the channel was last updated. |
Success | Boolean | true | Indicates whether the call is successful. A value of true indicates that the call is successful. A value of false indicates that the call has failed. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=DescribeFabricOrganizationChannels
&OrganizationId=peers-aaaaaa2-1eqnj5o5****
&<Common request parameters>
Successful response examples
XML
format
<DescribeFabricOrganizationChannelsResponse>
<Result>
<ConsortiumName>perf914</ConsortiumName>
<Deleted>false</Deleted>
<ConsortiumId>consortium-perf914-37cfcff9pa2c7a</ConsortiumId>
<UpdateTime>2018-08-07T11:00:25.000+0000</UpdateTime>
<ChaincodeCount>18</ChaincodeCount>
<OwnerBid>26842</OwnerBid>
<ChannelId>chan-first-channel-31hlgpen5k5lig</ChannelId>
<Name>first-asdadaaaa aaaaaaaaaa dadscsdfasdasdafdscxzdwearq</Name>
<BlockCount>0</BlockCount>
<OwnerUid>116748157028****</OwnerUid>
<DeleteTime></DeleteTime>
<State>Running</State>
<RequestId>23732B15-5165-4C85-8FFA-964C5D187AC2</RequestId>
<CreateTime>2018-08-07T11:00:25.000+0000</CreateTime>
<MemberCount>3</MemberCount>
<OwnerName>uid-116748157028****</OwnerName>
</Result>
<Result>
<ConsortiumName>perf914</ConsortiumName>
<Deleted>false</Deleted>
<ConsortiumId>consortium-perf914-37cfcff9pa2c7a</ConsortiumId>
<UpdateTime>2018-08-08T08:05:52.000+0000</UpdateTime>
<ChaincodeCount>0</ChaincodeCount>
<OwnerBid>26842</OwnerBid>
<ChannelId>chan-yyp-1jpjolifn8g22k</ChannelId>
<Name>yyp</Name>
<BlockCount>0</BlockCount>
<OwnerUid>116748157028****</OwnerUid>
<DeleteTime></DeleteTime>
<State>Running</State>
<RequestId>A6A0364C-FE54-4387-B44F-86D9A9BF346D</RequestId>
<CreateTime>2018-08-08T08:05:52.000+0000</CreateTime>
<MemberCount>1</MemberCount>
<OwnerName>uid-116748157028****</OwnerName>
</Result>
</Result>
<ConsortiumName>perf914</ConsortiumName>
<Deleted>false</Deleted>
<ConsortiumId>consortium-perf914-37cfcff9pa2c7a</ConsortiumId>
<UpdateTime>2018-08-09T06:33:53.000+0000</UpdateTime>
<ChaincodeCount>7</ChaincodeCount>
<OwnerBid>26842</OwnerBid>
<ChannelId>chan-forthchannel-386gkfagakdgjl</ChannelId>
<Name>forthchannel</Name>
<BlockCount>0</BlockCount>
<OwnerUid>116748157028****</OwnerUid>
<DeleteTime></DeleteTime>
<State>Running</State>
<RequestId>98BCF502-527C-4CDB-9C0A-BF2790295F27</RequestId>
<CreateTime>2018-08-09T06:33:53.000+0000</CreateTime>
<MemberCount>2</MemberCount>
<OwnerName>uid-116748157028****</OwnerName>
</Result>
<RequestId>CAA5D19F-FB7A-4F69-AF1E-1BA37E9547C5</RequestId>
<Success>true</Success>
<ErrorCode>200</ErrorCode>
</DescribeFabricOrganizationChannelsResponse>
JSON
format
{
"Result":[
{
"ConsortiumName":"perf914",
"Deleted":false,
"ConsortiumId":"consortium-perf914-37cfcff9pa2c7a",
"UpdateTime":"2018-08-07T11:00:25.000+0000",
"ChaincodeCount":18,
"OwnerBid":"26842",
"ChannelId":"chan-first-channel-31hlgpen5k5lig",
"Name":"first-asdadaaaa aaaaaaaaaa dadscsdfasdasdafdscxzdwearq",
"BlockCount":0,
"OwnerUid":116748157028****,
"DeleteTime":"",
"State":"Running",
"CreateTime":"2018-08-07T11:00:25.000+0000",
"RequestId":"23732B15-5165-4C85-8FFA-964C5D187AC2",
"MemberCount":3,
"OwnerName":"uid-116748157028****"
},
{
"ConsortiumName":"perf914",
"Deleted":false,
"ConsortiumId":"consortium-perf914-37cfcff9pa2c7a",
"UpdateTime":"2018-08-08T08:05:52.000+0000",
"ChaincodeCount":0,
"OwnerBid":"26842",
"ChannelId":"chan-yyp-1jpjolifn8g22k",
"Name":"yyp",
"BlockCount":0,
"OwnerUid":116748157028****,
"DeleteTime":"",
"State":"Running",
"CreateTime":"2018-08-08T08:05:52.000+0000",
"RequestId":"A6A0364C-FE54-4387-B44F-86D9A9BF346D",
"MemberCount":1,
"OwnerName":"uid-116748157028****"
},
{
"ConsortiumName":"perf914",
"Deleted":false,
"ConsortiumId":"consortium-perf914-37cfcff9pa2c7a",
"UpdateTime":"2018-08-09T06:33:53.000+0000",
"ChaincodeCount":7,
"OwnerBid":"26842",
"ChannelId":"chan-forthchannel-386gkfagakdgjl",
"Name":"forthchannel",
"BlockCount":0,
"OwnerUid":116748157028****,
"DeleteTime":"",
"State":"Running",
"CreateTime":"2018-08-09T06:33:53.000+0000",
"RequestId":"98BCF502-527C-4CDB-9C0A-BF2790295F27",
"MemberCount":2,
"OwnerName":"uid-116748157028****"
}
],
"RequestId":"CAA5D19F-FB7A-4F69-AF1E-1BA37E9547C5",
"ErrorCode":200,
"Success":true
}
Error codes
For more information about error codes, see Error codes.