deleteAutoScalingGroup

Prev Next

Available in VPC

Delete Auto Scaling Groups.

Note

If there are any servers left in the Auto Scaling Group or scaling is in progress, you can't delete them. Adjust the minimum capacity and expected capacity to set the number of servers to 0 before deleting them.

Request

This section describes the request format. The method and URI are as follows:

Method URI
GET | POST /vautoscaling/v2/deleteAutoScalingGroup
Note

This guide is based on the GET method. POST method call tests can be performed through Swagger in the API Gateway service of the NAVER Cloud Platform console.

Request headers

For information about the headers common to all Auto Scaling APIs, see Auto Scaling request headers.

Request query parameters

You can use the following query parameters with your request:

Field Type Required Description
regionCode String Optional Region code
autoScalingGroupNo String Required Auto Scaling Group number
responseFormatType String Optional Format of the response data
  • xml (default) | json

Request example

The request example is as follows:

curl --location --request GET 'https://ncloud.apigw.ntruss.com/vautoscaling/v2/deleteAutoScalingGroup
?regionCode=KR
&autoScalingGroupNo=1***1
&responseFormatType=json' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'

Response

This section describes the response format.

Response body

The response body includes the following data:

Field Type Required Description
deleteAutoScalingGroupResponse Object - Response result
deleteAutoScalingGroupResponse.requestId String - ID for the request
  • UUID format
deleteAutoScalingGroupResponse.returnCode String - Response code
deleteAutoScalingGroupResponse.returnMessage String - Response message

Response status codes

For response status codes common to all Auto Scaling APIs, see Auto Scaling response status codes.

Response example

The response example is as follows:

{
    "deleteAutoScalingGroupResponse": {
        "totalRows": 1,
        "autoScalingGroupList": [
            {
                "vpcNo": "4**5",
                "subnetNo": "3***4",
                "serverNamePrefix": "",
                "autoScalingGroupNo": "1***1",
                "autoScalingGroupName": "as19762e46344",
                "launchConfigurationNo": "5891",
                "minSize": 0,
                "maxSize": 1,
                "desiredCapacity": 0,
                "defaultCoolDown": 300,
                "healthCheckGracePeriod": 300,
                "healthCheckType": {
                    "code": "SVR",
                    "codeName": "Server"
                },
                "createDate": "2025-06-12T15:47:04+0900",
                "autoScalingGroupStatus": {
                    "code": "DELTD",
                    "codeName": "Deleted"
                },
                "targetGroupNoList": [],
                "inAutoScalingGroupServerInstanceList": [],
                "accessControlGroupNoList": [
                    "1***1"
                ],
                "suspendedProcessList": []
            }
        ],
        "requestId": "9b26f078-****-****-****-6d0669c43e86",
        "returnCode": "0",
        "returnMessage": "success"
    }
}