changeTargetGroupConfiguration

Prev Next

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

개요

타겟 그룹의 설정을 변경합니다.

요청

요청 파라미터

파라미터명 필수 여부 타입 제약 사항 설명
regionCode No String - 리전 코드
설정을 변경할 타겟 그룹의 리전(Region) 결정 가능
regionCode는 getRegionList 액션을 통해 획득 가능
Default : getRegionList 조회 결과의 첫 번째 리전을 선택
targetGroupNo Yes String - 설정을 변경할 타겟 그룹 번호
targetGroupNo는 getTargetGroupList 액션을 통해 획득 가능
useStickySession Conditional Boolean - 세션별 접근 사용 여부
선택한 타겟 그룹 유형이 TCP / HTTP / HTTPS 인 경우에만 사용 가능
Options : true | false
useProxyProtocol Conditional Boolean - 프록시 프로토콜 사용 여부
선택한 타겟 그룹 유형이 PROXY_TCP 인 경우에만 사용 가능
Options : true | false
algorithmTypeCode Conditional String - 알고리즘 유형 코드
로드밸런싱에 사용할 알고리즘 유형을 변경할 수 있음
Options :
RR (Round Robin)
SIPHS (Source IP Hash)
LC (Least Connection)
MH (Maglev Hash)
선택한 타겟 그룹 유형에 따라서 설정 가능한 알고리즘 유형이 제한됨
PROXY_TCP / HTTP / HTTPS : RR / SIPHS / LC
TCP : MH / RR
responseFormatType No String - 응답 결과의 포맷 타입
Options : xml | json
Default : xml

응답

응답 데이터 타입

  • TargetGroupList 타입
TargetGroupList extends CommonResponse
private Integer totalRows;
private List targetGroupList = new ArrayList<>();
TargetGroup
private String targetGroupNo;
private String targetGroupName;
private CommonCode targetType;
private String vpcNo;
private CommonCode targetGroupProtocolType;
private Integer targetGroupPort;
private String targetGroupDescription;
private Boolean useStickySession;
private Boolean useProxyProtocol;
private CommonCode algorithmType;
private Date createDate;
private String regionCode;
private String loadBalancerInstanceNo;
private CommonCode healthCheckProtocolType;
private Integer healthCheckPort;
private String healthCheckUrlPath;
private CommonCode healthCheckHttpMethodType;
private Integer healthCheckCycle;
private Integer healthCheckUpThreshold;
private Integer healthCheckDownThreshold;
private TargetNoList targetNoList;
TargetNoList
private List targetNoList = new ArrayList<>();

예시

요청 예시

ncloud vautoscaling changeTargetGroupConfiguration --regionCode KR --targetGroupNo ***095 --useStickySession false --algorithmTypeCode RR

응답 예시

<changeTargetGroupConfigurationResponse>
  <requestId>b644e5ed-6ca8-48d5-9b7f-2a3549ef3c96</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>1</totalRows>
  <targetGroupList>
    <targetGroup>
      <targetGroupNo>***095</targetGroupNo>
      <targetGroupName>test-***</targetGroupName>
      <targetType>
        <code>VSVR</code>
        <codeName>Server (VPC)</codeName>
      </targetType>
      <vpcNo>***04</vpcNo>
      <targetGroupProtocolType>
        <code>HTTP</code>
        <codeName>HTTP protocol</codeName>
      </targetGroupProtocolType>
      <targetGroupPort>80</targetGroupPort>
      <targetGroupDescription></targetGroupDescription>
      <useStickySession>false</useStickySession>
      <useProxyProtocol>false</useProxyProtocol>
      <algorithmType>
        <code>RR</code>
        <codeName>Round Robin</codeName>
      </algorithmType>
      <createDate>2020-12-17T21:06:45+0900</createDate>
      <regionCode>KR</regionCode>
      <loadBalancerInstanceNo></loadBalancerInstanceNo>
      <healthCheckProtocolType>
        <code>HTTP</code>
        <codeName>HTTP protocol</codeName>
      </healthCheckProtocolType>
      <healthCheckPort>80</healthCheckPort>
      <healthCheckUrlPath>/</healthCheckUrlPath>
      <healthCheckHttpMethodType>
        <code>GET</code>
        <codeName>get</codeName>
      </healthCheckHttpMethodType>
      <healthCheckCycle>30</healthCheckCycle>
      <healthCheckUpThreshold>2</healthCheckUpThreshold>
      <healthCheckDownThreshold>2</healthCheckDownThreshold>
      <targetNoList/>
    </targetGroup>
  </targetGroupList>
</changeTargetGroupConfigurationResponse>