Can be used in a VPC environment.
Summary
Search list of targets applied to the target group.
Request
Request Parameters
| Parameter name | Requirement status | Type | Restrictions | Description | 
|---|---|---|---|---|
| regionCode | No | String | Region code You can decide the region of a target group where the list of targets will be searched. You can obtain the regionCode through the getRegionList action. Default: Select the first region of the getRegionList search results  | 
|
| targetGroupNo | Yes | String | Target group number You can obtain the targetGroupNo through the getTargetGroupList action.  | 
|
| responseFormatType | No | String | Format type of the response results Options : xml | json Default : xml  | 
Response
Response data type
- TargetList type
 
| TargetList extends CommonResponse | 
|---|
| private Integer totalRows; | 
| private List | 
| Target | 
|---|
| private String targetNo; | 
| private String targetName; | 
| private String targetIp; | 
| private CommonCode healthCheckStatus; | 
| private String healthCheckResponse; | 
Example
Request example
ncloud vloadbalancer getTargetList --regionCode KR --targetGroupNo ***095
Response example
<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>