VPC 환경에서 이용 가능합니다.
블록체인 네트워크 Organization Orderer 노드의 연결 정보를 JSON 형식의 파일로 다운로드합니다.
요청
요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.
| 메서드 | URI | 
|---|---|
| GET | /networks/{networkId}/orderers/{ordererId}/export | 
요청 헤더
Blockchain Service API에서 공통으로 사용하는 헤더에 대한 정보는 Blockchain Service 공통 헤더를 참조해 주십시오.
요청 경로 파라미터
파라미터에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 | 
|---|---|---|---|
networkId | 
Long | Required | 네트워크 아이디
  | 
ordererId | 
String | Required | Orderer 아이디
  | 
요청 예시
요청 예시는 다음과 같습니다.
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'
응답
응답 형식을 설명합니다.
응답 바디
응답 바디에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 | 
|---|---|---|---|
tls_root_certs | 
String | - | 루트(Root) TLS 인증서 정보 | 
network_id | 
Long | - | 네트워크 아이디 | 
orderer_id | 
Long | - | Orderer 아이디 | 
node_name | 
String | - | Orderer 노드 이름 | 
msp_id | 
String | - | Orderer MSP 아이디 | 
msp_name | 
String | - | Orderer MSP 이름 | 
type | 
String | - | Orderer 구성 타입
  | 
version | 
Integer | - | Orderer 구성 버전
  | 
end_point_url | 
String | - | Orderer의 Endpoint URL 주소
  | 
응답 상태 코드
Blockchain Service API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Blockchain Service 공통 응답 상태 코드를 참조해 주십시오.
응답 예시
응답 예시는 다음과 같습니다.
Orderer 구성이 단일 노드(RAFT_1) 타입인 경우
Orderer 구성이 단일 노드(RAFT_1) 타입인 경우의 응답 예시는 다음과 같습니다.
{
  "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]"
}
Orderer 구성이 다중 노드(RAFT_5) 타입인 경우
Orderer 구성이 다중 노드(RAFT_5) 타입인 경우의 응답 예시는 다음과 같습니다.
{
  "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]"
}