You can call this operation to obtain the orderers of the consortium.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeFabricConsortiumOrderers |
The operation that you want to perform. Set the value to DescribeFabricConsortiumOrderers. |
ConsortiumId | String | Yes | consortium-aaaaaa-akpcsjjac2jd |
The ID of the consortium. |
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 orderers of the consortium. |
||
CreateTime | String | 1544411108000 |
The time when the consortium was created. |
Domain | String | domain |
The domain name. |
InstanceType | String | ecs.n1.small |
The instance type. |
OrdererName | String | order1 |
The name of the orderer. |
Port | Integer | 7050 |
The port of the orderer. |
UpdateTime | String | 1544411108000 |
The time when the orderer 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=DescribeFabricConsortiumOrderers
&ConsortiumId=consortium-aaaaaa-akpcsjjac2jd
&<Common request parameters>
Successful response examples
XML
format
<DescribeFabricConsortiumOrderersResponse>
<Result>
<OrdererName>order1</OrdererName>
<Port>7050</Port>
<Domain>ordasdaerer1.orzxczcZXXweqwxsczxzXcxzxXzg1.alumunum.com</Domain>
<CreateTime>2018-07-01 09:00:00</CreateTime>
<UpdateTime>2018-07-02 09:00:00</UpdateTime>
<InstanceType>ecs.n1.small</InstanceType>
</Result>
<Result>
<OrdererName>order2</OrdererName>
<Port>7050</Port>
<Domain>orderer2.org1.alumunum.com</Domain>
<CreateTime>2018-07-01 09:00:00</CreateTime>
<UpdateTime>2018-07-02 09:00:00</UpdateTime>
<InstanceType>ecs.n1.small</InstanceType>
</Result>
<RequestId>98B37CF5-AB0C-423E-8335-81A54899577E</RequestId>
<Success>true</Success>
<ErrorCode>200</ErrorCode>
</DescribeFabricConsortiumOrderersResponse>
JSON
format
{
"Result":[
{
"Port":7050,
"Domain":"ordasdaerer1.orzxczcZXXweqwxsczxzXcxzxXzg1.alumunum.com",
"CreateTime":"2018-07-01 09:00:00",
"UpdateTime":"2018-07-02 09:00:00",
"OrdererName":"order1",
"InstanceType":"ecs.n1.small"
},
{
"Port":7050,
"Domain":"orderer2.org1.alumunum.com",
"CreateTime":"2018-07-01 09:00:00",
"UpdateTime":"2018-07-02 09:00:00",
"OrdererName":"order2",
"InstanceType":"ecs.n1.small"
}
],
"RequestId":"98B37CF5-AB0C-423E-8335-81A54899577E",
"ErrorCode":200,
"Success":true
}
Error codes
For more information about error codes, see Error codes.