Download organization connection information
    • PDF

    Download organization connection information

    • PDF

    Article summary

    Available in VPC

    Download the connection information of the blockchain network organization MSP 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}/organizations/{mspId}/connection

    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
    mspIdStringRequiredOrganization MSP ID

    Request example

    The following is a sample request.

    curl --location --request GET 'https://blockchainservice.apigw.ntruss.com/api/v1/networks/{networkId}/organizations/{mspId}/connection' \
    --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
    nameString-Network name
    descriptionString-Network detailed description
    versionString-Network version information
    client.organizationString-Organization MSP name
    channelsObject-Channel details
    channels.{channelId}Object-Channel ID information
    channels.{channelId}.orderersArray<String>-Orderer URL information
    channels.{channelId}.peersObject-Channel peer information
    channels.{channelId}.peers.{peerURL}Object-Peer URL and property information
    channels.{channelId}.peers.{peerURL}.endorsingPeerBoolean-Endorsing peer status
    • true | false
      • true: endorsing peer
      • false: not endorsing peer
    channels.{channelId}.peers.{peerURL}.chaincodeQueryBoolean-Whether chaincode can be installed on peer
    • true | false
      • true: installable
      • false: not installable
    channels.{channelId}.peers.{peerURL}.ledgerQueryBoolean-Whether to query propose to peer
    • true | false
      • true: proposal available
      • false: proposal unavailable
    channels.{channelId}.peers.{peerURL}.eventSourceBoolean-Whether the SDK's event listener can be targeted
    • true | false
      • true: targetable
      • false: not targetable
    channels.{channelId}.peers.{peerURL}.discoverBoolean-Whether peers can be connected (discovered)
    • true | false
      • true: connection available
      • false: connection unavailable
    organizationsObject-Organization details
    organizations.{mspId}Object-Organization MSP ID information
    organizations.{mspId}.mspidString-Organization MSP ID
    organizations.{mspId}.peersArray<String>-Organization peer address
    organizations.{mspId}.certificateAuthoritiesArray<String>-Organization peer CA authentication information
    orderersObject-Orderer information
    orderers.{ordererId}Object-Orderer URL address information
    orderers.{ordererId}.urlString-Orderer URL address
    orderers.{ordererId}.tlsCACertsObject-Orderer TLS authentication information
    orderers.{ordererId}.tlsCACerts.pemString-Orderer TLS authentication PEM key
    peersObject-Peer information
    peers.{peerId}Object-Peer ID information
    peers.{peerId}.urlString-Peer URL address
    peers.{peerId}.tlsCACertsObject-Peer TLS authentication information
    peers.{peerId}.tlsCACerts.pemString-Peer TLS authentication PEM key
    peers.{peerId}.grpcOptionsObject-gRPC option information
    peers.{peerId}.grpcOptions.ssl-target-name-overrideString-Standard properties defined in the gRPC library
    • Passed to the gRPC client constructor
    certificateAuthoritiesObject-CA details
    certificateAuthorities.{certId}Object-CA URL information
    certificateAuthorities.{certId}.urlString-CA URL address
    certificateAuthorities.{certId}.tlsCACertsObject-CA TLS authentication information
    certificateAuthorities.{certId}.tlsCACerts.pemArray<String>-CA TLS authentication PEM key

    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.

    {
        "name": "******-blockchain-test1",
        "description": "Connection profile for Naver Cloud Blockchain Service. Network ID: 1630, MSP ID: test-msp",
        "version": "1.0.0",
        "client": {
            "organization": "test-msp"
        },
        "channels": {
            "test-channel": {
                "orderers": [
                    "test-orderer1-******-***-ord.bc-gryy4rew.kr.blockchain.naverncp.com:443"
                ],
                "peers": {
                    "test-peer2-******-***-peer.bc-gryy4rew.kr.blockchain.naverncp.com:443": {
                        "endorsingPeer": true,
                        "chaincodeQuery": true,
                        "ledgerQuery": true,
                        "eventSource": true,
                        "discover": true
                    }
                }
            }
        },
        "organizations": {
            "test-msp": {
                "mspid": "test-msp",
                "peers": [
                    "test-peer2-******-***-peer.bc-gryy4rew.kr.blockchain.naverncp.com:443"
                ],
                "certificateAuthorities": [
                    "test-ca-******-***-ca.bc-gryy4rew.kr.blockchain.naverncp.com:443"
                ]
            }
        },
        "orderers": {
            "test-orderer1-******-***-ord.bc-gryy4rew.kr.blockchain.naverncp.com:443": {
                "url": "grpcs://test-orderer1-******-***-ord.bc-gryy4rew.kr.blockchain.naverncp.com:443",
                "tlsCACerts": {
                    "pem": "{pem}"
                }
            }
        },
        "peers": {
            "test-peer2-******-***-peer.bc-gryy4rew.kr.blockchain.naverncp.com:443": {
                "url": "grpcs://test-peer2-******-***-peer.bc-gryy4rew.kr.blockchain.naverncp.com:443",
                "tlsCACerts": {
                    "pem": "{pem}"
                },
                "grpcOptions": {
                    "ssl-target-name-override": "test-peer2-******-***-peer.bc-gryy4rew.kr.blockchain.naverncp.com"
                }
            }
        },
        "certificateAuthorities": {
            "test-ca-******-***-ca.bc-gryy4rew.kr.blockchain.naverncp.com:443": {
                "url": "https://test-ca-******-***-ca.bc-gryy4rew.kr.blockchain.naverncp.com:443",
                "tlsCACerts": {
                    "pem": [
                        "{pem}"
                    ]
                }
            }
        }
    }
    

    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.