enableFlowLog
    • PDF

    enableFlowLog

    • PDF

    Article Summary

    Available in VPC

    Summary

    Activate the Flowlog.

    Requests

    Request parameters

    Parameter NameRequirement statusTypeRestrictionsDescription
    regionCodeNoString- Region code
    You can decide the region to get the network interface list from.
    Region code can be obtained through the getRegionList action
    Default: selects the first region of the getRegionList search results
    networkInterfaceNoYesStringNetwork interface number
    Network interface No. can be obtained through the getNetworkInterfaceList action.
    collectActionTypeCodeYesStringCollect action type allow(ALLOW), deny(DENY), and all(ALL)
    Options: ALLOW, DENY, ALL
    collectIntervalMinuteNoIntegerMin: 5, Max: 15Collection interval(minutes)
    Default: 15
    storageTypeCodeNoStringStorage type Object storage(OBJT)
    Default: OBJT
    storageBucketNameYesStringName of the object storage bucket to save the Flowlog traffic
    storageBucketDirectoryNameNoStringCan combine English letters, numbers, and underscores(_)
    Length limitation 100
    Name of the directory in the object storage bucket to save the Flowlog traffic
    responseFormatTypeNoString- Format type of the response result
    Options: xml | json
    Default: xml

    Response

    Response data type

    • Flowlog configuration list type
    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

    Examples

    Request examples

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

    Was this article helpful?

    What's Next
    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.