You can call this operation to create a consortium.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CreateFabricConsortium | The operation that you want to perform. Set the value to CreateFabricConsortium. |
ChannelPolicy | String | Yes | Any | The policy that is used to create the channel. |
ConsortiumName | String | Yes | aaaaa | The name of the consortium. |
Domain | String | Yes | helloworld | The domain name. |
Location | String | Yes | cn-hangzhou | The location information. |
OrdererType | String | Yes | etcdraft | The type of the orderer. |
SpecName | String | Yes | basic | The specification. |
ConsortiumDescription | String | No | some | The description of the consortium. |
OrderersCount | Integer | No | 2 | The number of orderers. |
Organization.N.OrganizationId | String | No | peers-yidio-1tuigx42b1goc | The ID of the organization. |
PaymentDuration | Integer | Yes | 2 | The payment duration. |
PaymentDurationUnit | String | Yes | Month | The unit of the payment duration. |
PeersCount | Integer | No | 2 | The number of peer nodes. |
RegionId | String | No | cn-hangzhou | The ID of the region. |
ZoneId | String | No | random | The available zone. |
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 result list of the operation. | ||
ChannelCount | Integer | 0 | The number of channels. |
ChannelPolicy | String | Any | The policy that is used to create a channel. |
ClusterState | String | Pending | The status of the cluster. |
CodeName | String | lianmenyumingyi | The prefix of the domain name. |
ConsortiumId | String | consortium-lianmenyumingyi-hc5d1bwlulg7 | The ID of the consortium. |
ConsortiumName | String | myconsortium | The name of the consortium. |
CreateTime | String | 1544086901984 | The creation time. |
Description | String | String | The description. |
Domain | String | hello | The domain name. |
MemberCount | Integer | 2 | The number of members. |
OrdererCount | Integer | 1 | The number of orderers. |
OrdererType | String | etcdraft | The type of the orderer. |
OwnerBid | String | 26842 | The business ID of the creator. |
OwnerUid | Long | 1019556 | The user ID of the creator. |
RegionId | String | cn-hangzhou | The ID of the region. |
ServiceState | String | Pending | The status of the service. |
SpecName | String | basic | The specification. |
ZoneId | String | cn-hangzhou | The available zone. |
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=CreateFabricConsortium&ChannelPolicy=Any&ConsortiumName=aaaaa&Domain=helloworld&Location=cn-hangzhou&OrdererType=etcdraft&SpecName=basic&<Common request parameters>
Successful response examples
XML
format
<CreateFabricConsortiumResponse> <result> <CodeName>Alibaba Group Blockchain Consortium</CodeName> <ClusterState>Pending</ClusterState> <ConsortiumId>c-93k8d34jy79y79</ConsortiumId> <CreateTime>1999-05-10 09:00:00</CreateTime> <OwnerBid>12312</OwnerBid> <OrdererCount>1</OrdererCount> <OrdererType>etcdraft</OrdererType> <ConsortiumName>Alibaba Group </ConsortiumName> <OrganizationCount>3</OrganizationCount> <ChannelCount>0</ChannelCount> <ChannelPolicy>ANY</ChannelPolicy> <Description>string</Description> <Domain>domain</Domain> <MemberCount>2</MemberCount> <ServiceState>Pending</ServiceState> </result> <RequestId>2537DB1B-F478-431E-A847-5DDAAE2BD251</RequestId> <ErrorCode>200</ErrorCode> <Success>true</Success></CreateFabricConsortiumResponse>
JSON
format
{ “result”:{ “ConsortiumName”:”Alibaba Group”, “Description”:”string”, “ConsortiumId”:”c-93k8d34jy79y79”, “Domain”:”domain”, “OrganizationCount”:3, “OwnerBid”:12312, “ChannelCount”:0, “ClusterState”:”Pending”, “CreateTime”:”1999-05-10 09:00:00”, “CodeName”:”Alibaba Group Blockchain Consortium”, “OrdererType”:”etcdraft”, “ServiceState”:”Pending”, “MemberCount”:2, “OrdererCount”:1, “ChannelPolicy”:”ANY” }, “RequestId”:”2537DB1B-F478-431E-A847-5DDAAE2BD251”, “Success”:true, “ErrorCode”:200}
Error codes
For more information about error codes, see Error codes.
</article>
</main>