--- title: "getTargetGroupList" slug: "cli-vloadbalancer-targetgroup-gettargetgrouplist" tags: ["Load Balancer", "Target Group"] updated: 2026-09-17T09:10:37Z published: 2026-09-17T09:10:37Z canonical: "cli-fin.ncloud-docs.com/cli-vloadbalancer-targetgroup-gettargetgrouplist" --- > ## Documentation Index > Fetch the complete documentation index at: https://cli-fin.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # getTargetGroupList 타깃 그룹 목록을 조회합니다. ## 구문 `getTargetGroupList` 구문은 다음과 같습니다. ``` ./ncloud vloadbalancer getTargetGroupList \ [--vpcNo ] \ [--targetTypeCode ] \ [--targetGroupNoList ] \ [--pageNo ] \ [--pageSize ] \ [--sortList ] \ [--regionCode ] \ [--output ] ``` ## 옵션 `getTargetGroupList` 실행 시 지정할 수 있는 옵션을 설명합니다. ### 필수 옵션 `getTargetGroupList`의 필수 옵션입니다. | 옵션 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `--pageSize` | Integer | Conditional | 한 페이지에 보여줄 결과 개수 - `pageNo` 입력 시 필수 입력 - `pageNo`, `pageSize`를 이용하여 결과값을 페이징 처리 | ### 선택 옵션 `getTargetGroupList`의 선택 옵션입니다. 지정하지 않은 옵션에는 기본값이 적용됩니다. | 옵션 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `--vpcNo` | String | Optional | VPC 번호 - [getVpcList](/docs/cli-vpc-vpcmanagement-getvpclist) 참조 | | `--targetTypeCode` | String | Optional | 타깃 유형 - `VSVR`: Server (VPC) | | `--targetGroupNoList` | List | Optional | 타깃 그룹의 번호 목록 - 공백으로 구분하여 여러 개 입력 가능 (예시: `--targetGroupNoList 55667788 55667799`) | | `--pageNo` | Integer | Optional | 페이징 처리된 결과의 페이지 번호 - `1`~N - `pageNo`, `pageSize`를 이용하여 결과값을 페이징 처리 | | `--sortList` | List | Optional | 정렬 조건 - 따옴표 안에 {필드='값'} 쌍을 콤마로 구분하여 입력 - `sortedBy` (Optional): 정렬 기준. `targetGroupNo` (타깃 그룹의 번호) \| `targetGroupName` (타깃 그룹의 이름) - `sortingOrder` (Optional): 정렬 순서. `ASC` (오름차순, 기본값) \| `DESC` (내림차순) | ### 공통 옵션 `vloadbalancer` 명령에서 공통으로 사용하는 옵션에 대한 정보는 [Load Balancer 옵션](/docs/cli-vloadbalancer#%EC%98%B5%EC%85%98)을 참조해 주십시오. ## 예시 타깃 그룹 목록 조회 요청이 성공하면 각 타깃 그룹의 구성 정보가 반환됩니다. ### 명령 명령 예시는 다음과 같습니다. ``` ./ncloud vloadbalancer getTargetGroupList \ --vpcNo 12345678 \ --targetTypeCode VSVR \ --targetGroupNoList 55667788 55667799 \ --pageNo 1 \ --pageSize 10 \ --sortList "sortedBy='targetGroupNo',sortingOrder='ASC'" \ --regionCode FKR \ --output json ``` ### 출력 출력 예시는 다음과 같습니다. ``` { "getTargetGroupListResponse": { "totalRows": 2, "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-08-13T11:36:07+0900", "regionCode": "FKR", "loadBalancerInstanceNo": "", "healthCheckProtocolType": { "code": "HTTP", "codeName": "HTTP protocol" }, "healthCheckPort": 80, "healthCheckUrlPath": "/", "healthCheckHttpMethodType": { "code": "GET", "codeName": "HTTP GET Method" }, "healthCheckCycle": 30, "healthCheckUpThreshold": 2, "healthCheckDownThreshold": 2, "targetNoList": [] }, { "targetGroupNo": "55667799", "targetGroupName": "lb-test-tg2", "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-08-13T11:38:24+0900", "regionCode": "FKR", "loadBalancerInstanceNo": "", "healthCheckProtocolType": { "code": "HTTP", "codeName": "HTTP protocol" }, "healthCheckPort": 80, "healthCheckUrlPath": "/", "healthCheckHttpMethodType": { "code": "GET", "codeName": "HTTP GET Method" }, "healthCheckCycle": 30, "healthCheckUpThreshold": 2, "healthCheckDownThreshold": 2, "targetNoList": [] } ], "requestId": "460da1c3-ea1a-46f0-932d-547571891e7a", "returnCode": "0", "returnMessage": "success" } } ```