Network 정보 조회

Prev Next

VPC 환경에서 이용 가능합니다.

블록체인 네트워크의 상세 정보를 조회합니다.

요청

요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.

메서드 URI
GET /networks/{networkId}

요청 헤더

Blockchain Service API에서 공통으로 사용하는 헤더에 대한 정보는 Blockchain Service 공통 헤더를 참조해 주십시오.

요청 경로 파라미터

파라미터에 대한 설명은 다음과 같습니다.

필드 타입 필수 여부 설명
networkId Long Required 네트워크 아이디

요청 예시

curl --location --request GET 'https://blockchainservice.apigw.ntruss.com/api/v1/networks/{networkId}' \
--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'

응답

응답 형식을 설명합니다.

응답 바디

응답 바디에 대한 설명은 다음과 같습니다.

필드 타입 필수 여부 설명
content Object - 네트워크 상세 정보
content.networkId Long - 네트워크 아이디
content.networkName String - 네트워크 이름
content.blockchainFrameworkCodeName String - Hyperledger Fabric 버전 정보
content.nksClusterName String - Ncloud Kubernetes Service 클러스터 이름
content.nodeAffinityLabel String - 블록체인 노드가 배치된 Ncloud Kubernetes Service 클러스터 노드풀의 라벨 이름
content.status String - 네트워크 상태
  • ACTIVE | DEPLOY | DELETE
    • ACTIVE: 운영 중
    • DEPLOY: 배포 중
    • DELETE: 삭제 중
content.peerCount Integer - Peer 노드 수
content.ordererCount Integer - Orderer 노드 수
content.channelCount Integer - 채널 노드 수
content.createDate LocalDateTime - 네트워크 생성 일시(YYYY-MM-DDTHH:MM:SS+0000)

응답 상태 코드

Blockchain Service API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Blockchain Service 공통 응답 상태 코드를 참조해 주십시오.

응답 예시

응답 예시는 다음과 같습니다.

{
    "content": {
        "networkId": 1630,
        "networkName": "******-blockchain-test1",
        "blockchainFrameworkCodeName": "Hyperledger Fabric 2.2.3",
        "nksClusterName": "blockchain-test (1.28.10)",
        "status": "ACTIVE",
        "peerCount": 1,
        "ordererCount": 1,
        "channelCount": 1,
        "createDate": "2024-07-29T07:25:39+0000"
    }
}