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