Amazon Managed Blockchain
API Reference (API Version 2018-09-24)

CreateNetwork

Creates a new blockchain network using Amazon Managed Blockchain.

Request Syntax

POST /networks HTTP/1.1 Content-type: application/json { "ClientRequestToken": "string", "MemberConfiguration": { "Description": "string", "FrameworkConfiguration": { "Fabric": { "AdminPassword": "string", "AdminUsername": "string" } }, "Name": "string" }, "NetworkConfiguration": { "Description": "string", "Framework": "string", "FrameworkVersion": "string", "Name": "string" } }

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

ClientRequestToken

An idempotency token. Set to an arbitrary unique value.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Required: Yes

MemberConfiguration

Configuration properties for the first member within the network.

Type: MemberConfiguration object

Required: Yes

NetworkConfiguration

Configuration properties for the blockchain network.

Type: NetworkConfiguration object

Required: Yes

Response Syntax

HTTP/1.1 200 Content-type: application/json { "MemberId": "string", "NetworkId": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

MemberId

The unique identifier for the first member within the network.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 32.

NetworkId

The unique identifier for the network.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 32.

Errors

For information about the errors that are common to all actions, see Common Errors.

AccessDeniedException

HTTP Status Code: 403

InternalServiceErrorException

HTTP Status Code: 500

InvalidRequestException

HTTP Status Code: 400

ResourceAlreadyExistsException

HTTP Status Code: 409

ResourceLimitExceededException

HTTP Status Code: 429

ThrottlingException

HTTP Status Code: 429

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: