Documentation Index

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

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

executePolicy

Prev Next

개요

지정된 scaling 정책(policy)를 수행합니다.

요청

요청 파라미터

파라미터명 필수 여부 타입 제약 사항 설명
policyName Yes String Min : 1, Max : 255 수행할 스케일링 정책 이름
autoScalingGroupName Yes String Min : 1, Max : 255 정책을 수행할 오토스케일링 그룹명 입력
honorCooldown No Boolean - - Cooldown 시간 준수 여부
이 api를 호출했을 당시가 scaling action 도중이거나 cooldown 시간이면 이를 준수할 지 정함
default : false
responseFormatType No String - 응답 결과의 포맷 타입
Options : xml | json
Default : xml

응답

응답 바디

예시

요청 예시

{AUTOSCALILNG_API_URL}/executePolicy
?autoScalingGroupName=asg-0602b
&honorCooldown=true
&policyName=p-0602

응답 예시

<executePolicyResponse>
   <requestId>0c811c22-cdd3-47e5-8d8b-434071de2e46</requestId>
   <returnCode>0</returnCode>
   <returnMessage>success</returnMessage>
</executePolicyResponse>

오류 코드

아래 오류 코드는 이 액션(Action)에서 특징적으로 발생하는 오류입니다. 공통적으로 발생하는 오류에 대한 상세한 설명은 NAVER Cloud Platform API를 참고해주세요

HTTP Response Code 리턴 코드 리턴 메시지
400 50120 An invalid or out-of-range value was supplied for the input parameter.