exportDbServerLogToObjectStorage
    • PDF

    exportDbServerLogToObjectStorage

    • PDF

    Article Summary

    VPC環境で利用できます。

    Cloud DB for PostgreSQLのデータベースサーバログファイルを Object Storageに送信します。

    コマンド

    コマンド構文は、次のとおりです。

    ncloud vpostgresql exportDbServerLogToObjectStorage [regionCode] [logType] [fileName] [bucketName] [cloudPostgresqlServerInstanceNo] [output]
    

    パラメータ

    パラメータについての説明は、次のとおりです。

    パラメータタイプ要否説明制約事項
    regionCodeStringNリージョンコード
    - regionCodeは、getRegionListアクションを通じて取得
    - default: getRegionList照会結果の最初のリージョンを選択
    -
    logTypeStringYデータベースサーバログのファイルタイプ
    - options: POSTGRESQL_LOG
    -
    fileNameStringYデータベースサーバログのファイル名
    - fileNameは、getDbServerLogListアクションを通じて取得
    -
    bucketNameStringYObject Storageのバケット名
    - bucketNameは、getCloudPostgresqlBucketListアクションを通じて取得
    -
    cloudPostgresqlServerInstanceNoStringYCloud DB for PostgreSQLのサーバインスタンス番号
    - cloudPostgresqlServerInstanceNoは、getCloudPostgresqlInstanceListアクションを通じて取得
    -
    outputStringNレスポンス結果のフォーマットタイプ
    - options: xml | json
    - default: json
    -

    呼び出しとレスポンス例を説明します。

    呼び出し例

    呼び出し例は、次のとおりです。

    ncloud vpostgresql exportDbServerLogToObjectStorage --regionCode KR --logType POSTGRESQL_LOG --fileName postgresql_000000.log --bucketName postgresql-log --cloudPostgresqlServerInstanceNo ****891
    

    レスポンス例

    レスポンス例は、次のとおりです。

    レスポンス結果フォーマットタイプ(output)が jsonのとき

    {
      "exportDbServerLogToObjectStorageResponse": {
        "requestId": "6564e513-acd5-4fe3-ac62-2ab16ee267e8",
        "returnCode": "0",
        "returnMessage": "success"
      }
    }
    

    レスポンス結果フォーマットタイプ(output)が xmlの場合

    <exportDbServerLogToObjectStorageResponse>
        <requestId>6564e513-acd5-4fe3-ac62-2ab16ee267e8</requestId>
        <returnCode>0</returnCode>
        <returnMessage>success</returnMessage>
    </exportDbServerLogToObjectStorageResponse>
    

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

    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.