ルート・フォルダのリスト
get
/essbase/rest/v1/files
カタログのルート・フォルダをリストします。
リクエスト
問合せパラメータ
- filter: string
ファイルのリストをフィルタします。
- recursive: boolean
再帰的に検索結果を返します。
デフォルト値:false
レスポンス
サポートされているメディア・タイプ
- application/json
- application/xml
200 レスポンス
OK
フォルダ・リスト。
ネストされたスキーマ : items
型:
object
400 レスポンス
不正なリクエスト
パスが無効です。
500 レスポンス
サーバーの内部エラーです。
例
次の例では、REST APIを使用してEssbaseファイル・カタログのルート・フォルダをリストする方法を示します。
この例では、cURLを使用して、Windowsシェル・スクリプトからREST APIにアクセスします。呼出し元ユーザーのIDおよびパスワードは変数であり、properties.bat
内でその変数値が設定されています。
cURLコマンドを含むスクリプト
call properties.bat
curl -X GET "https://myserver.example.com:9001/essbase/rest/v1/files?links=none" -H "accept: application/json" -u %User%:%Password%
レスポンス本体の例
{
"currentFolder" : {
"name" : "/",
"fullPath" : "/",
"type" : "folder",
"permissions" : { }
},
"items" : [ {
"name" : "applications",
"fullPath" : "/applications",
"type" : "folder",
"permissions" : { }
}, {
"name" : "gallery",
"fullPath" : "/gallery",
"type" : "folder",
"permissions" : { }
}, {
"name" : "shared",
"fullPath" : "/shared",
"type" : "folder",
"permissions" : {
"addFolder" : true,
"addFile" : true
}
}, {
"name" : "users",
"fullPath" : "/users",
"type" : "folder",
"permissions" : { }
} ]
}