---
title: "terminateServerInstanceInAutoScalingGroup"
slug: "cli-autoscaling-terminateserverinstanceinautoscalinggroup"
updated: 2026-05-21T09:02:04Z
published: 2026-05-21T09:11:33Z
canonical: "cli-gov.ncloud-docs.com/cli-autoscaling-terminateserverinstanceinautoscalinggroup"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://cli-gov.ncloud-docs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# terminateServerInstanceInAutoScalingGroup

## 개요

오토 스케일링 그룹에 속한 서버 인스턴스 삭제

## 설명

지정된 서버 인스턴스 반납을 할 수 있습니다. 서버 인스턴스 삭제와 동시에 그룹 사이즈를 하나(one) 감소하게 선택할 수 있습니다.

## 요청 파라미터

| 파라미터 명 | 필수 여부 | 타입 | 제약사항 | 설명 |
| --- | --- | --- | --- | --- |
| serverInstanceNo | Yes | String | - | - 삭제할 서버 인스턴스의 식별 번호 서버 인스턴스가 오토 스케일링 그룹에 속하지 않다면 유효하지 않음 |
| shouldDecrementDesiredCapacity | Yes | Boolean | - | - 서버 인스턴스 삭제와 동시에 소속 오토 스케일링 그룹의 size를 하나(one) 감소시킬지 여부 감소 시키려면 true이고 아니면 false 입력 ※ 이 값이 true이면 그룹 사이즈가 기존 그룹 사이즈의 - 1이 됨 |

## 응답 데이터 타입

- CommonResponse 타입

| CommonResponse extends BaseObject |
| --- |
| private String requestId; |
| private String returnCode; |
| private String returnMessage; |

## 예시

### 호출

```
ncloud autoscaling terminateServerInstanceInAutoScalingGroup --serverInstanceNo 401184 --shouldDecrementDesiredCapacity true
```

### 응답

```
{
  "terminateServerInstanceInAutoScalingGroupResponse": {
    "requestId": "163f6617-d105-47ab-8c3d-840b56051e68",
    "returnCode": "0",
    "returnMessage": "success"
  }
}
```

```
<?xml version="1.0" encoding="UTF-8" ?>
<terminateServerInstanceInAutoScalingGroupResponse>
  <requestId>163f6617-d105-47ab-8c3d-840b56051e68</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
</terminateServerInstanceInAutoScalingGroupResponse>
```
