Download connection profile of MSP
- Print
- PDF
Download connection profile of MSP
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Download the organization's access information as a file.
Request
Request URL
GET {BLOCKCHAINSERVICE API_URL}/networks/{networkId}/organizations/{mspId}/connection
Request Parameter
Parameter Name | Parameter Name | Type | Restriction | Description |
---|---|---|---|---|
networkId | Yes | long | Path Parameter | Network ID |
mspId | Yes | String | Path Parameter | MSP ID |
Example of Request
curl -X GET "http://blockchainservice.apigw.ntruss.com/api/v1/networks/{networkId}/organizations/{mspId}/connection \
-H "x-ncp-apigw-timestamp: {x-ncp-apigw-timestamp}" \
-H "x-ncp-iam-access-key: {x-ncp-iam-access-key}" \
-H "x-ncp-apigw-signature-v2: {x-ncp-apigw-signature-v2}"
Response
Response Body
- response header : content-disposition: attachment; filename="connection_property_{MSP NAME}.json"
Category | Type | Description |
---|---|---|
status | string | Indicates whether response was successful |
file.name | string | Network name |
file.description | string | Description |
file.version | string | version |
file.client.organization | string | Organization name |
file.organizations.{mspId}.mspid | string | MSP ID |
file.organizations.{mspId}.peers[] | string | Peer address |
file.organizations.{mspId}.certificateAuthorities[] | string | Peer authrity address |
file.peers | string | Peer access address |
file.orderers | string | Orderer access address |
file.certificateAuthorities | string | authrity address |
Example of Response
{
"name": "my-network",
"description": "Connection profile for Naver Cloud Blockchain Service. Network ID: 100, MSP ID: org1-msp",
"version": "1.0.0",
"client": {
"organization": "org1-msp"
},
"organizations": {
"org1-msp": {
"mspid": "org1-msp",
"peers": [
"org1-peer-test-hlf-peer.bc-test.kr.blockchain.naverncp.com:443"
],
"certificateAuthorities": [
"org1-peer-test-hlf-peer.bc-test.kr.blockchain.naverncp.com:443"
]
}
},
"peers": {
"org1-peer-test-hlf-peer.bc-test.kr.blockchain.naverncp.com:443": {
"url": "grpcs://org1-peer-test-hlf-peer.bc-test.kr.blockchain.naverncp.com:443",
"tlsCACerts": {
"pem": "-----BEGIN CERTIFICATE-----sample-----END CERTIFICATE-----\n"
},
"grpcOptions": {
"ssl-target-name-override": "org1-peer-test-hlf-peer.bc-test.kr.blockchain.naverncp.com:443"
}
}
},
"certificateAuthorities": {
"org1-peer-test-hlf-peer.bc-test.kr.blockchain.naverncp.com:443": {
"url": "https://org1-peer-test-hlf-peer.bc-test.kr.blockchain.naverncp.com:443",
"tlsCACerts": {
"pem": "-----BEGIN CERTIFICATE-----sample-----END CERTIFICATE-----\n"
}
}
}
}
Was this article helpful?