複数のドリル・スルー・レポートの取得
get
/essbase/rest/v1/applications/{applicationName}/databases/{databaseName}/reports
指定されたアプリケーションおよびデータベースからすべてのドリル・スルー・レポートを返します。
リクエスト
パス・パラメータ
- applicationName(required): string
アプリケーション名。
- databaseName(required): string
データベース名。
問合せパラメータ
- keyword: string
キーワードを使用してドリルスルー・レポートのリストをフィルタします。
レスポンス
サポートされているメディア・タイプ
- application/json
- application/xml
200 レスポンス
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/SampleDtr/databases/Basic/reports" -H Accept:application/json -H Content-Type:application/octet-stream -u %User%:%Password%
レスポンス本体の例
次の例では、レスポンス本体の内容をJSON形式で示します。
{
"items" : [ {
"name" : "sampleDtr",
"modifiedTime" : 1660068656087,
"sizeInBytes" : 565,
"links" : [ {
"rel" : "get",
"href" : "https://myserver.example.com:9001/essbase/rest/v1/applications/SampleDtr/databases/Basic/reports/sampleDtr",
"method" : "GET"
}, {
"rel" : "delete",
"href" : "https://myserver.example.com:9001/essbase/rest/v1/applications/SampleDtr/databases/Basic/reports/sampleDtr",
"method" : "DELETE"
}, {
"rel" : "edit",
"href" : "https://myserver.example.com:9001/essbase/rest/v1/applications/SampleDtr/databases/Basic/reports/sampleDtr",
"method" : "PUT"
} ]
}, {
"name" : "drill2",
"modifiedTime" : 1660076664087,
"sizeInBytes" : 912,
"links" : [ {
"rel" : "get",
"href" : "https://myserver.example.com:9001/essbase/rest/v1/applications/SampleDtr/databases/Basic/reports/drill2",
"method" : "GET"
}, {
"rel" : "delete",
"href" : "https://myserver.example.com:9001/essbase/rest/v1/applications/SampleDtr/databases/Basic/reports/drill2",
"method" : "DELETE"
}, {
"rel" : "edit",
"href" : "https://myserver.example.com:9001/essbase/rest/v1/applications/SampleDtr/databases/Basic/reports/drill2",
"method" : "PUT"
} ]
} ],
"totalResults" : 2,
"count" : 2
}