MENU
      executePolicy

        executePolicy


        Article summary

        Overview

        Executes a scaling policy.

        Request

        Request parameters

        ParameterRequiredTypeLimitationsDescription
        policyNameYStringMin: 1, Max: 255Name of the scaling policy to execute
        autoScalingGroupNameYStringMin: 1, Max: 255Name of the Auto Scaling group for which you want to execute the policy
        honorCooldownNBoolean-Indicates whether to honor the cooldown time.
        If the scaling action is being performed or it is the cooldown time when this API request is made, you can choose whether to honor the cooldown time.
        Default: false

        Response

        Response body

        Examples

        Request example

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

        Response example

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

        Error codes

        Errors that may occur while using this action are listed below. For information on common errors, refer to NAVER Cloud Platform API.

        HTTP response codeReturn codeReturn message
        40050120An invalid or out-of-range value was supplied for the input parameter.

        Was this article helpful?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.