enableFlowLog
    • PDF

    enableFlowLog

    • PDF

    Article Summary

    VPC環境で利用できます。

    概要

    FlowLogを有効にします。

    リクエスト

    リクエストパラメータ

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

    この記事は役に立ちましたか?

    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.