enableFlowLog
- Print
- PDF
enableFlowLog
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in VPC
Summary
Activate the Flowlog.
Requests
Request parameters
Parameter Name | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
regionCode | No | String | - 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 | |
networkInterfaceNo | Yes | String | Network interface number Network interface No. can be obtained through the getNetworkInterfaceList action. | |
collectActionTypeCode | Yes | String | Collect action type allow(ALLOW), deny(DENY), and 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 the object storage bucket to save the Flowlog traffic | |
storageBucketDirectoryName | No | String | Can combine English letters, numbers, and underscores(_) Length limitation 100 | Name of the directory in the object storage bucket to save the Flowlog traffic |
responseFormatType | No | String | - 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?