enableFlowLog

Prev Next

Available in VPC

Overview

Activate FlowLog.

Requests

Request parameters

Parameter name Requirement status Type Restrictions Description
regionCode No String - Region code
Determines the Region in which the network interface list is queried
regionCode can be acquired through the getRegionList action.
Default: select the first Region in the getRegionList query result.
networkInterfaceNo Yes String Network interface number
networkInterfaceNo can be acquired through the getNetworkInterfaceList action.
collectActionTypeCode Yes String Collection action type Allow (ALLOW), Deny (DENY), All (ALL)
Options : ALLOW, DENY, ALL
collectIntervalMinute No Integer Min: 5, Max: 15 Collection interval (minutes)
Default : 15
storageTypeCode No String Storage type. Object storage (OBJT)
Default : OBJT
storageBucketName Yes String Name of object storage buckets to store FlowLog traffic
bucketName can be acquired through the ListBuckets action.
storageBucketDirectoryName No String Can combine English letters, numbers, and underscores (_)
Length limit 100
Directory name in object storage bucket to store FlowLog traffic
Default: VPC_FLOW_LOG
responseFormatType No String - Format type of response result
Options : xml | json
Default : xml

Responses

Response bodies

Success

Failure

Errors Error message Description
1000101 there are no required parameter (networkInterfaceNo) Enter the required parameter networkInterfaceNo
1000102 there are no required parameter (storageBucketName) Enter the required parameter storageBucketName
1099000 parameter value is not valid Invalid parameter
(networkInterfaceNo, storageBucketName, storageBucketDirectoryName)
1000100 failed to applied flowLog Failed to activate FlowLog

Examples

Request examples

GET {API_URL}/enableFlowLog
?regionCode=KR
&networkInterfaceNo=***87
&collectActionTypeCode=ALLOW
&collectIntervalMinute=10
&storageTypeCode=OBJT
&storageBucketName=myBucket**Name

Response examples

 <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>