複数のフィルタの取得
get
/essbase/rest/v1/applications/{applicationName}/databases/{databaseName}/filters
指定されたアプリケーションおよびデータベースからすべてのフィルタを返します。
リクエスト
パス・パラメータ
- applicationName(required): string
アプリケーション名。
- databaseName(required): string
データベース名。
レスポンス
サポートされているメディア・タイプ
- 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/Efficient/databases/UserFilters/filters -H "Accept: application/json" -u %User%:%Password%
レスポンス本体の例
{
"items" : [ {
"name" : "dslookupfilter",
"links" : [ {
"rel" : "get",
"href" : "https://myserver.example.com:9001/essbase/rest/v1/applications/Efficient/databases/UserFilters/filters/dslookupfilter",
"method" : "GET"
}, {
"rel" : "delete",
"href" : "https://myserver.example.com:9001/essbase/rest/v1/applications/Efficient/databases/UserFilters/filters/dslookupfilter",
"method" : "DELETE"
}, {
"rel" : "edit",
"href" : "https://myserver.example.com:9001/essbase/rest/v1/applications/Efficient/databases/UserFilters/filters/dslookupfilter",
"method" : "PUT"
}, {
"rel" : "rows",
"href" : "https://myserver.example.com:9001/essbase/rest/v1/applications/Efficient/databases/UserFilters/filters/dslookupfilter/rows",
"method" : "GET"
} ]
}, {
"name" : "dslookupfilter2",
"links" : [ {
"rel" : "get",
"href" : "https://myserver.example.com:9001/essbase/rest/v1/applications/Efficient/databases/UserFilters/filters/dslookupfilter2",
"method" : "GET"
}, {
"rel" : "delete",
"href" : "https://myserver.example.com:9001/essbase/rest/v1/applications/Efficient/databases/UserFilters/filters/dslookupfilter2",
"method" : "DELETE"
}, {
"rel" : "edit",
"href" : "https://myserver.example.com:9001/essbase/rest/v1/applications/Efficient/databases/UserFilters/filters/dslookupfilter2",
"method" : "PUT"
}, {
"rel" : "rows",
"href" : "https://myserver.example.com:9001/essbase/rest/v1/applications/Efficient/databases/UserFilters/filters/dslookupfilter2/rows",
"method" : "GET"
} ]
} ]
}