Rolling Upgrade 진행 상태 조회

Prev Next

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

설명

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

요청

요청 URL

POST https://vpcsearchengine.apigw.gov-ntruss.com/api/v2/cluster/getRollingUpgradeProgress [수도권]
POST https://vpcsearchengine.apigw.gov-ntruss.com/api/krs-v2/cluster/getRollingUpgradeProgress [남부권]

요청 헤더

헤더명 설명
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-v2 Access Key ID 값과 Secret Key로 암호화한 서명
x-ncp-apigw-signature-v2:{API Gateway Signature}
Content-Type Request body content type을 application/json으로 지정
Content-Type: application/json

요청 파라미터

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

요청 예시

GET https://vpcsearchengine.apigw.gov-ntruss.com/api/v2/cluster/getRollingUpgradeProgress
HOST: vpcsearchengine.apigw.gov-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"
}
curl -X 'POST' 'https://vpcsearchengine.apigw.gov-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"
}'

응답

응답 파라미터

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;
}


필드

파라미터명 타입 설명
name String 클러스터 이름
nodeCount integer 클러스터 노드의 갯수
versionVo GetRollingUpgradeHistoryVersionResponseVo 업그레이드 버전에 대한 정보
currentVersionCode String 업그레이드 전 현재 버전의 코드
targetVersionCode String 업그레이드 후 버전의 코드
actionDate Date 버전 업그레이드 요청 시간
nodeStatusVoList List<NodeServerStatusVo> 노드별 상태 정보
hostname String 노드의 hostname
status String 진행상태
nodeRoleCode String 노드별 역활 타입 코드 M:Manager, D:Data
updatedDate Date 노드의 진행상태 업데이트 시간

응답 예시

{
  "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"
}