enableFlowLog

Prev Next

VPC環境で利用できます。

概要

FlowLogを有効にします。

リクエスト

リクエストパラメータ

パラメータ名 要否 タイプ 制約事項 説明
regionCode No String - リージョンコード
ネットワークインターフェースのリストが照会されるリージョン(Region)を決定できる
regionCodeは、getRegionListアクションを通じて取得できる
Default: getRegionList照会結果の最初のリージョンを選択
networkInterfaceNo Yes String ネットワークインターフェース番号
networkInterfaceNoは、getNetworkInterfaceListアクションを通じて取得できる
collectActionTypeCode Yes String 収集アクションタイプの許可(ALLOW)、拒否(DENY)、すべて(ALL)
Options: ALLOW, DENY, ALL
collectIntervalMinute No Integer Min: 5, Max: 15 収集周期(分)
Default: 15
storageTypeCode No String リポジトリタイプ。オブジェクトストレージ(OBJT)
Default: OBJT
storageBucketName Yes String FlowLogのトラフィックを保存するオブジェクトストレージのバケット名
storageBucketDirectoryName No String 英字、数字、アンダースコア(_)の組み合わせができる
長さ制限100
FlowLogのトラフィックを保存するオブジェクトストレージのバケット内ディレクトリ名
responseFormatType No String - レスポンス結果のフォーマットタイプ
Options: xml | json
Default: xml

レスポンス

レスポンスデータのタイプ

  • 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

リクエスト例

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

レスポンス例

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