Documentation Index

Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt

Use this file to discover all available pages before exploring further.

getTargetList

Prev Next

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

개요

타겟 그룹에 적용된 타겟 리스트를 조회합니다.

요청

요청 파라미터

파라미터명 필수 여부 타입 제약 사항 설명
regionCode No String - 리전 코드
타겟 리스트를 조회할 타겟 그룹의 리전(Region) 결정 가능
regionCode는 getRegionList 액션을 통해 획득 가능
Default : getRegionList 조회 결과의 첫 번째 리전을 선택
targetGroupNo Yes String - 타겟 그룹 번호
targetGroupNo는 getTargetGroupList 액션을 통해 획득 가능
responseFormatType No String - 응답 결과의 포맷 타입
Options : xml | json
Default : xml

응답

응답 데이터 타입

  • TargetList 타입
TargetList extends CommonResponse
private Integer totalRows;
private List targetList = new ArrayList<>();
Target
private String targetNo;
private String targetName;
private String targetIp;
private CommonCode healthCheckStatus;
private String healthCheckResponse;

예시

요청 예시

ncloud vloadbalancer getTargetList --regionCode KR --targetGroupNo ***095

응답 예시

<getTargetListResponse>
  <requestId>a4f8aa8d-aab1-4bb8-bad6-1d9006453945</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>1</totalRows>
  <targetList>
    <target>
      <targetNo>***4299</targetNo>
      <targetName>test-***</targetName>
      <targetIp>***.***.1.6</targetIp>
      <healthCheckStatus>
        <code>UNUSED</code>
        <codeName>unused Target</codeName>
      </healthCheckStatus>
      <healthCheckResponse></healthCheckResponse>
    </target>
  </targetList>
</getTargetListResponse>