You can call this operation to create an organization.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateFabricOrganization

The operation that you want to perform. Set the value to CreateFabricOrganization.

Domain String Yes domain

The domain name.

Location String Yes cn-hangzhou

The available zone.

OrganizationName String Yes name

The name of the organization.

SpecName String Yes basic

The name of the specification.

Description String No description

The description.

PaymentDuration Integer No 12

The payment duration.

PaymentDurationUnit String No 2

The unit of the payment duration.

PeersCount Integer No 2

The number of nodes.

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 result list of the operation.

ClusterState String Pending

The status of the cluster.

CodeName String name

The prefix of the domain name.

ConsortiumCount Integer 2

The number of consortia.

CreateTime String 1544086901984

The creation time.

Domain String domain

The domain name.

OrganizationDescription String desc

The description of the organization.

OrganizationId String zuzhiyumingyi-hc5d1bwlulg7

The ID of the organization.

OrganizationName String zuzhiyumingyi

The name of the organization.

OwnerBid String 26842

The business ID of the creator.

OwnerName String name

The name of the user who created the organization.

OwnerUid Integer 1019556

The user ID of the creator.

PeerCount Integer 3

The number of organization nodes.

RegionId String cn-hangzhou

The region of the organization.

RequestId String 1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3

The ID of the API request.

ServiceState String Pending

The status of the service.

SpecName String baisc

The specification of the node.

UserCount Integer 2

The number of organization users.

ZoneId String zone

The available zone of the organization node.

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=CreateFabricOrganization
&Domain=domain
&Location=cn-hangzhou
&OrganizationName=name
&SpecName=basic
&<Common request parameters>

Successful response examples

XML format

<CreateFabricOrganizationResponse>
	  <result>
		    <CodeName>Alibaba Group Blockchain  Consortium</CodeName>
		    <ClusterState>Pending</ClusterState>
		    <OrganizationId>c-93k8d34jy79y79</OrganizationId>
		    <CreateTime>1999-05-10 09:00:00</CreateTime>
		    <OwnerBid>12312</OwnerBid>
		    <OrganizationName>Alibaba Group </OrganizationName>
		    <SpecName>basic</SpecName>
		    <ConsortiumCount>0</ConsortiumCount>
		    <PeerCount>3</PeerCount>
		    <Description>string</Description>
		    <Domain>domain</Domain>
		    <UserCount>2</UserCount>
		    <ServiceState>Pending</ServiceState>
	  </result>
	  <RequestId>2537DB1B-F478-431E-A847-5DDAAE2BD251</RequestId>
	  <ErrorCode>200</ErrorCode>
	  <Success>true</Success>
</CreateFabricOrganizationResponse>

JSON format

{
	"result":{
		"Description":"string",
		"Domain":"domain",
		"OrganizationId":"c-93k8d34jy79y79",
		"OwnerBid":12312,
		"OrganizationName":"Alibaba Group",
		"ClusterState":"Pending",
		"ConsortiumCount":0,
		"UserCount":2,
		"SpecName":"basic",
		"CreateTime":"1999-05-10 09:00:00",
		"Name":"Alibaba Group Blockchain Consortium",
		"PeerCount":3,
		"ServiceState":"Pending"
	},
	"RequestId":"2537DB1B-F478-431E-A847-5DDAAE2BD251",
	"Success":true,
	"ErrorCode":200
}

Error codes

For more information about error codes, see Error codes.