最新のアプリケーション・ログのダウンロード
get
/essbase/rest/v1/applications/{applicationName}/logs/latest
最新のアプリケーション・ログ・ファイルをテキスト・ファイルとしてダウンロードします。
リクエスト
パス・パラメータ
- applicationName(required): string
アプリケーション名。
レスポンス
サポートされているメディア・タイプ
- application/octet-stream
- application/json
- application/xml
200 レスポンス
OK
ログ・ファイルが正常に返されました。
400 レスポンス
不正なリクエスト
ログ・ファイルの返戻に失敗しました。
500 レスポンス
サーバーの内部エラーです。
例
次の例では、Essbaseアプリケーションの最新のログ・ファイルをダウンロードする方法を示します。
この例では、cURLを使用して、Windowsシェル・スクリプトからREST APIにアクセスします。呼出し元ユーザーのIDおよびパスワードは変数であり、properties.bat
内でその変数値が設定されています。
cURLコマンド
call properties.bat
curl -X GET https://myserver.example.com:9001/essbase/rest/v1/applications/Sample/logs/latest -i -H "accept: application/octet-stream" -o Sample.log -u %User%:%Password%
レスポンス・ヘッダーの例
次の例は、レスポンス・ヘッダーの内容を示しています。cURLコマンド・オプション-i
が使用されているため、レスポンス・ヘッダーが含まれています。コマンド・オプション-o
が使用されているため、Sample.log
は、cURLコマンドの発行元のディレクトリにダウンロードされます。
access-control-allow-headers: origin, content-type, accept, host, authorization, cache-control
access-control-allow-methods: GET, POST, DELETE, PUT
access-control-allow-origin: *
cache-control: no-cache, no-store, must-revalidate
content-disposition: attachment; filename="Sample.log"
content-type: application/octet-stream
date: Fri, 2 Sep 2022 23:21:11 GMT
expires: 0
transfer-encoding: chunked
x-oracle-dms-ecid: 0135346f-6d0c-40ab-85b2-37daf6b24061-000007b4
x-oracle-dms-rid: 0