exportDbServerLogToObjectStorage
- 印刷する
- PDF
exportDbServerLogToObjectStorage
- 印刷する
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
VPC環境で利用できます。
Cloud DB for PostgreSQLデータベースサーバログファイルを Object Storageに送ります。
リクエスト
リクエストパラメータ
パラメータ | タイプ | 要否 | 説明 | 制約事項 |
---|---|---|---|---|
regionCode | String | N | リージョンコード - regionCodeは、getRegionListアクションを通じて取得する - default: getRegionList照会結果の最初のリージョンを選択する | - |
logType | String | Y | データベースサーバログのファイルタイプ - options: POSTGRESQL_LOG | - |
fileName | String | Y | データベースサーバログのファイル名 - fileNameは、getDbServerLogListアクションを通じて取得する | - |
bucketName | String | Y | Object Storageバケット名 - bucketNameは、getCloudPostgresqlBucketListアクションを通じて取得する | - |
cloudPostgresqlServerInstanceNo | String | Y | Cloud DB for PostgreSQLサーバインスタンス番号 - cloudPostgresqlServerInstanceNoは、getCloudPostgresqlInstanceListアクションを通じて取得する | - |
responseFormatType | String | N | レスポンス結果のフォーマットタイプ - options: xml | json - default: xml | - |
例
リクエスト例
リクエスト構文例は次のとおりです。
GET {API_URL}/exportDbServerLogToObjectStorage
?regionCode=KR
&logType=POSTGRESQL_LOG
&fileName=postgresql_000000.log
&bucketName=postgresql-log
&cloudPostgresqlServerInstanceNo=****891
レスポンス例
レスポンス構文例は、次のとおりです。
レスポンス結果のフォーマットタイプ(responseFormatType)が jsonの場合
{
"exportDbServerLogToObjectStorageResponse": {
"requestId": "6564e513-acd5-4fe3-ac62-2ab16ee267e8",
"returnCode": "0",
"returnMessage": "success"
}
}
レスポンス結果のフォーマットタイプ(responseFormatType)が xmlの場合
<exportDbServerLogToObjectStorageResponse>
<requestId>6564e513-acd5-4fe3-ac62-2ab16ee267e8</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
</exportDbServerLogToObjectStorageResponse>
この記事は役に立ちましたか?