getTargetGroupDetail

Prev Next

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

타깃 그룹 번호를 이용하여 타깃 그룹의 상세 정보를 조회합니다.

구문

getTargetGroupDetail 구문은 다음과 같습니다.

./ncloud vloadbalancer getTargetGroupDetail \
    --targetGroupNo <target-group-no> \
    [--regionCode <KR|KRS>] \
    [--output <json|xml>]

옵션

getTargetGroupDetail 실행 시 지정할 수 있는 옵션을 설명합니다.

필수 옵션

getTargetGroupDetail의 필수 옵션입니다.

옵션 타입 필수 여부 설명
--targetGroupNo String Required 타깃 그룹의 번호

공통 옵션

vloadbalancer 명령에서 공통으로 사용하는 옵션에 대한 정보는 Load Balancer (VPC) 옵션을 참조해 주십시오.

예시

타깃 그룹 상세 조회 요청이 성공하면 타깃 그룹의 구성 정보가 반환됩니다.

명령

명령 예시는 다음과 같습니다.

./ncloud vloadbalancer getTargetGroupDetail \
    --targetGroupNo 55667788 \
    --regionCode KR \
    --output json

출력

출력 예시는 다음과 같습니다.

{
  "getTargetGroupDetailResponse": {
    "totalRows": 1,
    "targetGroupList": [
      {
        "targetGroupNo": "55667788",
        "targetGroupName": "lb-test-tg",
        "targetType": {
          "code": "VSVR",
          "codeName": "Server (VPC)"
        },
        "vpcNo": "12345678",
        "targetGroupProtocolType": {
          "code": "HTTP",
          "codeName": "HTTP protocol"
        },
        "targetGroupPort": 80,
        "targetGroupDescription": "Test target group",
        "useStickySession": false,
        "useProxyProtocol": false,
        "algorithmType": {
          "code": "RR",
          "codeName": "Round Robin"
        },
        "createDate": "2026-07-20T17:28:30+0900",
        "regionCode": "KR",
        "loadBalancerInstanceNo": "",
        "healthCheckProtocolType": {
          "code": "HTTP",
          "codeName": "HTTP protocol"
        },
        "healthCheckPort": 8080,
        "healthCheckUrlPath": "/",
        "healthCheckHttpMethodType": {
          "code": "GET",
          "codeName": "HTTP GET Method"
        },
        "healthCheckCycle": 30,
        "healthCheckUpThreshold": 2,
        "healthCheckDownThreshold": 2,
        "targetNoList": []
      }
    ],
    "requestId": "ba19ba10-05fe-4a27-a348-f63483e49cb4",
    "returnCode": "0",
    "returnMessage": "success"
  }
}