Download orderer connection information
    • PDF

    Download orderer connection information

    • PDF

    Article summary

    Available in VPC

    Download the connection information of the blockchain network organization orderer node as a JSON format file.

    Request

    The following describes the request format for the endpoint. The request format is as follows:

    MethodURI
    GET/networks/{networkId}/orderers/{ordererId}/export

    Request headers

    For headers common to all Blockchain Service APIs, see Common Blockchain Service headers.

    Request path parameters

    The following describes the parameters.

    FieldTypeRequiredDescription
    networkIdLongRequiredNetwork ID
    ordererIdStringRequiredOrderer ID

    Request example

    The following is a sample request.

    curl --location --request GET 'https://blockchainservice.apigw.ntruss.com/api/v1/networks/{networkId}/orderers/{ordererId}/export' \
    --header 'x-ncp-apigw-timestamp: {Timestamp}' \
    --header 'x-ncp-iam-access-key: {Access Key}' \
    --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
    --header 'Content-Type: application/json'
    

    Response

    The following describes the response format.

    Response body

    The following describes the response body.

    FieldTypeRequiredDescription
    tls_root_certsString-Root TLS certificate information
    network_idLong-Network ID
    orderer_idLong-Orderer ID
    node_nameString-Orderer node name
    msp_idString-Orderer MSP ID
    msp_nameString-Orderer MSP name
    typeString-Orderer configuration type
    • RAFT_1 | RAFT_5
      • RAFT_1: single node
      • RAFT_5: multiple nodes
    versionInteger-Orderer configuration version
    • 1 | 5
      • 1: RAFT_1 type (single node)
      • 5: RAFT_5 type (multiple nodes)
    end_point_urlString-Orderer's endpoint URL address
    • Single node (RAFT_1): 1 URL
    • Multiple nodes (RAFT_5): 5 URLs

    Response status codes

    For response status codes common to all Blockchain Service APIs, see Common Blockchain Service response status codes.

    Response example

    The following is a sample example.

    If orderer configuration is single-node (RAFT_1) type

    The following is a sample response when the orderer configuration is the single-node (RAFT_1) type.

    {
      "tls_root_certs" : "{tls_root_certs}",
      "network_id" : 1630,
      "orderer_id" : "25728701",
      "node_name" : "test-orderer",
      "msp_id" : "test-msp",
      "msp_name" : "test-msp",
      "type" : "RAFT_1",
      "version" : "1",
      "end_point_url" : "[test-orderer1-******-***-ord.bc-gryy4rew.kr.blockchain.naverncp.com]"
    }
    

    If orderer configuration is multi-node (RAFT_5) type

    The following is a sample response when the orderer configuration is the multi-node (RAFT_5) type.

    {
      "tls_root_certs" : "{tls_root_certs}",
      "network_id" : 1630,
      "orderer_id" : "24739528",
      "node_name" : "test-orderer2",
      "msp_id" : "test-msp",
      "msp_name" : "test-msp",
      "type" : "RAFT_5",
      "version" : "5",
      "end_point_url" : "[test-orderer25-******-***-ord.bc-gryy4rew.kr.blockchain.naverncp.com,    test-orderer23-******-***-ord.bc-gryy4rew.kr.blockchain.naverncp.com,   test-orderer21-******-***-ord.bc-gryy4rew.kr.blockchain.naverncp.com,  test-orderer24-******-***-ord.bc-gryy4rew.kr.blockchain.naverncp.com, test-orderer22-******-***-ord.bc-gryy4rew.kr.blockchain.naverncp.com]"
    }
    

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.