複数のフィルタの取得

get

/essbase/rest/v1/applications/{applicationName}/databases/{databaseName}/filters

指定されたアプリケーションおよびデータベースからすべてのフィルタを返します。

リクエスト

パス・パラメータ
先頭に戻る

レスポンス

サポートされているメディア・タイプ

200 レスポンス

OK

フィルタを正常に取得しました。フィルタの詳細、フィルタを取得、編集または削除するためのリンク、およびフィルタ行を取得するためのリンクを返します。

本体()
ルート・スキーマ : schema
型: array
ソースの表示
ネストされたスキーマ : FilterList
型: object
ソースの表示
ネストされたスキーマ : items
型: array
ソースの表示
ネストされたスキーマ : properties
型: object
使用可能なその他のプロパティ
ソースの表示
ネストされたスキーマ : FilterBean
型: object
ソースの表示
ネストされたスキーマ : rows
型: array
ソースの表示
ネストされたスキーマ : FilterRow
型: object
ソースの表示

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"
    } ]
  } ]
}
先頭に戻る