Organization 연결 정보 다운로드
- 인쇄
- PDF
Organization 연결 정보 다운로드
- 인쇄
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Organization의 접속정보를 파일로 다운로드합니다.
요청
요청 URL
GET {BLOCKCHAINSERVICE API_URL}/networks/{networkId}/organizations/{mspId}/connection
요청 파라미터
파라미터명 | 필수 여부 | 타입 | 제약 사항 | 설명 |
---|---|---|---|---|
networkId | Yes | long | Path Parameter | 네트워크 아이디 |
mspId | Yes | String | Path Parameter | MSP 아이디 |
요청 예시
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 header : content-disposition: attachment; filename="connection_property_{MSP NAME}.json"
항목 | 타입 | 설명 |
---|---|---|
status | string | 응답 성공 여부 |
file.name | string | 네트워크명 |
file.description | string | 설명 |
file.version | string | 버전 |
file.client.organization | string | MSP 아이디 |
file.organizations.{mspId}.mspid | string | MSP 아이디 |
file.organizations.{mspId}.peers[] | string | peer 주소 |
file.organizations.{mspId}.certificateAuthorities[] | string | Peer 인증 주소 |
file.peers | string | Peer 접속 정보 |
file.orderers | string | Orderer 접속 정보 |
file.certificateAuthorities | string | 인증 정보 |
응답 예시
{
"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"
}
}
}
}
이 문서가 도움이 되었습니까?