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トラフィックを保存するオブジェクトストレージのバケット名
    bucketNameは、ListBucketsアクションを通じて取得可能
    storageBucketDirectoryNameNoStringアルファベット、数字、アンダースコア(_)で組み合わせ可能
    最大文字数100
    FlowLogトラフィックを保存するオブジェクトストレージのバケット内にあるディレクトリ名
    Default: VPC_FLOW_LOG
    responseFormatTypeNoString- レスポンス結果のフォーマットタイプ
    Options : xml | json
    Default : xml

    レスポンス

    レスポンスボディ

    成功

    失敗

    エラーコードエラーメッセージ説明
    1000101there are no required parameter (networkInterfaceNo)必須パラメータの networkInterfaceNoを入力
    1000102there are no required parameter (storageBucketName)必須パラメータの storageBucketNameを入力
    1099000parameter value is not valid無効なパラメータ
    (networkInterfaceNo, storageBucketName, storageBucketDirectoryName)
    1000100failed to applied flowLogFlowLogの有効化に失敗

    リクエスト例

    GET {API_URL}/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.