MENU
      Rolling Upgrade 진행 상태 조회

        Rolling Upgrade 진행 상태 조회


        기사 요약

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

        설명

        Rolling Upgrade의 진행 상태를 조회합니다.

        요청

        요청 URL

        POST https://vpcsearchengine.apigw.ntruss.com/api/v2/cluster/getRollingUpgradeProgress  [KR]
        POST https://vpcsearchengine.apigw.ntruss.com/api/sgn-v2/cluster/getRollingUpgradeProgress [SGN]
        POST https://vpcsearchengine.apigw.ntruss.com/api/jpn-v2/cluster/getRollingUpgradeProgress [JPN]
        HTTP

        요청 헤더

        헤더명설명
        x-ncp-apigw-timestamp- 1970년 1월 1일 00:00:00 협정 세계시(UTC)부터의 경과 시간을 밀리초(Millisecond)로 나타냄
        - API Gateway 서버와 시간 차가 5분 이상 나는 경우 유효하지 않은 요청으로 간주
        x-ncp-apigw-timestamp:{Timestamp}
        x-ncp-iam-access-key네이버 클라우드 플랫폼 포털에서 발급받은 Access Key ID 값
        x-ncp-iam-access-key:{Account Access Key}
        x-ncp-apigw-signature-v2Access Key ID 값과 Secret Key로 암호화한 서명
        x-ncp-apigw-signature-v2:{API Gateway Signature}
        Content-TypeRequest body content type을 application/json으로 지정
        Content-Type: application/json

        요청 파라미터

        파라미터타입필수 여부설명
        ServiceGroupInstanceNoStringY대상 Cluster의 번호

        요청 예시

        GET https://vpcsearchengine.apigw.ntruss.com/api/v2/cluster/getRollingUpgradeProgress
        HOST: vpcsearchengine.apigw.ntruss.com
        Content-Type: application/json
        x-ncp-apigw-signature-v2: XFS2MSpvTMQZNVTtvymIzMwNeQ
        x-ncp-apigw-timestamp: 1709704983976
        x-ncp-iam-access-key: ANJNnR1jz1gUzaiS0aV2
        {
          "serviceGroupInstanceNo": "3427188"
        }
        HTTP
        curl -X 'POST' 'https://vpcsearchengine.beta-apigw.ntruss.com/api/v2/cluster/getRollingUpgradeProgress'
          -H 'accept: application/json'
          -H 'Content-Type: application/json'
          -H 'x-ncp-iam-access-key: ANJNnR1jz1gUzaiS0aV2'
          -H 'x-ncp-apigw-timestamp: 1709704983976'
          -H 'x-ncp-apigw-signature-v2: XFS2MSpvTMQZNVTtvymIzMwNeQ/gs3vf1pjgzwOo2g8='
          -d '{
          "serviceGroupInstanceNo": "3427188"
        }'
        Bash

        응답

        응답 파라미터

        public class GetRollingUpgradeProgressResponseVo {
            String name;
            Integer nodeCount;
            GetRollingUpgradeHistoryVersionResponseVo versionVo;
            List<NodeServerStatusVo> nodeStatusVoList;
        }
        
        public class GetRollingUpgradeHistoryVersionResponseVo {
            String currentVersionCode;
            String targetVersionCode;
            Date actionDate;
        }
        
        public class NodeServerStatusVo {
            String hostname;
            String status;
            String nodeRoleCode;
            Date updatedDate;
        }
        Java

        필드

        파라미터명타입설명
        nameString클러스터 이름
        nodeCountinteger클러스터 노드의 갯수
        versionVoGetRollingUpgradeHistoryVersionResponseVo업그레이드 버전에 대한 정보
        currentVersionCodeString업그레이드 전 현재 버전의 코드
        targetVersionCodeString업그레이드 후 버전의 코드
        actionDateDate버전 업그레이드 요청 시간
        nodeStatusVoListList<NodeServerStatusVo>노드별 상태 정보
        hostnameString노드의 hostname
        statusString진행상태
        nodeRoleCodeString노드별 역활 타입 코드 M:Manager, D:Data
        updatedDateDate노드의 진행상태 업데이트 시간

        응답 예시

        {
          "code": 0,
          "message": "SUCCESS",
          "result": {
            "name": "sso-test-270",
            "nodeCount": 5,
            "versionVo": {
              "currentVersionCode": "270",
              "targetVersionCode": "290",
              "actionDate": "2024-03-06 15:01:14"
            },
            "nodeStatusVoList": [
              {
                "hostname": "sso-test-270-m-1lv7",
                "status": "running",
                "nodeRoleCode": "M",
                "updatedDate": "2024-03-05 21:14:49"
              },
              {
                "hostname": "sso-test-270-m-1lv8",
                "status": "running",
                "nodeRoleCode": "M",
                "updatedDate": "2024-03-05 21:14:55"
              },
              {
                "hostname": "sso-test-270-d-1lv9",
                "status": "complete",
                "nodeRoleCode": "D",
                "updatedDate": "2024-03-06 15:02:31"
              },
              {
                "hostname": "sso-test-270-d-1lva",
                "status": "Upgrade_OpenSearch",
                "nodeRoleCode": "D",
                "updatedDate": "2024-03-06 15:02:31"
              },
              {
                "hostname": "sso-test-270-d-1lvb",
                "status": "running",
                "nodeRoleCode": "D",
                "updatedDate": "2024-03-05 21:14:44"
              }
            ]
          },
          "requestId": "b250b9b1-96df-4a04-a755-bf7f4bb1b532"
        }
        JSON

        이 문서가 도움이 되었습니까?

        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.