---
title: "enableFlowLog"
slug: "cli-vserver-networkinterface-enableflowlog"
updated: 2026-04-23T09:04:53Z
published: 2026-04-23T09:07:31Z
canonical: "cli-fin.ncloud-docs.com/cli-vserver-networkinterface-enableflowlog"
---

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

# enableFlowLog

<p class="platform-info type-vpc">VPC 환경에서 이용 가능합니다.</p>

## 개요<a name="개요"></a>

FlowLog를 활성화합니다.

## 요청<a name="요청"></a>

### 요청 파라미터<a name="요청파라미터"></a>

| 파라미터명                            | 필수 여부      | 타입                   | 제약 사항                   | 설명                                         |
| ---------------------------------- | ------------ | --------------------- | ------------------------- | ------------------------------------------- |
| regionCode                         | No           | String                |                           | - 리전 코드<br>네트워크 인터페이스 리스트가 조회될 리전(Region) 결정 가능<br>regionCode는 [getRegionList](/docs/cli-vserver-server-common-getregionlist) 액션을 통해 획득 가능<br>Default : getRegionList 조회 결과의 첫 번째 리전 선택  |
| networkInterfaceNo              | Yes      | String |                       | 네트워크 인터페이스 번호 <br>networkInterfaceNo는 [getNetworkInterfaceList](/docs/cli-vserver-networkinterface-getnetworkinterfacelist) 액션을 통해 획득 가능<br> | 
| collectActionTypeCode              | Yes      | String |                        | 수집액션타입 허용(ALLOW), 거부(DENY), 모두(ALL) <br>Options: ALLOW, DENY, ALL |
| collectIntervalMinute              | No      | Integer | Min: 5, Max: 15 | 수집 주기 (분) <br>Default: 15  |
| storageTypeCode              | No      | String |                        | 저장소 타입. 오브젝트 스토리지(OBJT) <br>Default: OBJT |
| storageBucketName              | Yes      | String |                        | FlowLog 트래픽을 저장 할 오브젝트 스토리지 버킷 이름 |
| storageBucketDirectoryName | No      | String | 영문,숫자,언더스코어(_) 조합 가능 <br> 길이제한 100 | FlowLog 트래픽을 저장할 오브젝트 스토리지 버킷 내에 디렉터리 이름 |
| responseFormatType                 | No           | String                |                           | - 응답 결과의 포맷 타입<br>Options: xml \| json<br>Default : xml |

## 응답<a name="응답"></a>

### 응답 데이터 타입<a name="응답데이터타입"></a>

- FlowLogConfigurationList 타입

| FlowLogConfigurationList extends CommonResponse |
| ---------- |
| private Integer totalRows; |
| private List<FlowLogConfiguration> FlowLogConfigurationList = new ArrayList<>(); |

| FlowLogConfiguration |
| ---------- |
| private String networkInterfaceNo |
| private CommonCode collectActionType |
| private Integer collectIntervalMinute |
| private CommonCode storageType |
| private String storageBucketName |
| private String storageBucketDirectoryName |

## 예시<a name="예시"></a>

### 요청 예시<a name="요청예시"></a>

```
ncloud vserver enableFlowLog --regionCode KR --networkInterfaceNo ***87 --collectActionTypeCode ALLOW --collectIntervalMinute 10 --storageTypeCode OBJT --storageBucketName myBucket**Name
```

### 응답 예시<a name="응답예시"></a>

```xml
 <enableFlowLogResponse>
    <requestId>4a457fad-fa00-4294-ad63-ac406ef9d159</requestId>
    <returnCode>0</returnCode>
    <returnMessage>success</returnMessage>
    <totalRows>1</totalRows>
    <flowLogConfigurationList>
      <FlowLogConfiguration>
        <networkInterfaceNo>=***87</networkInterfaceNo>
        <collectActionType>
          <code>ALLOW</code>
          <codeName>Allow</codeName>
        </collectActionType>
        <collectIntervalMinute>10</collectIntervalMinute>
        <storageType>
          <code>OBJT</code>
          <codeName>Object Storage</codeName>
        </storageType>
        <storageBucketName>myBucket**Name</storageBucketName>
        <storageBucketDirectoryName>VPC_FLOW_LOG</storageBucketDirectoryName>
      </FlowLogConfiguration>
    </flowLogConfigurationList>
  </enableFlowLogResponse>
```
