複数のアプリケーション変数の取得
get
/essbase/rest/v1/applications/{applicationName}/variables
指定されたアプリケーションからすべての代替変数を返します。
リクエスト
パス・パラメータ
- applicationName(required): string
アプリケーション名。
問合せパラメータ
- includeDatabaseVariables: boolean
アプリケーション変数の結果にデータベース変数を含めます。
デフォルト値:false
レスポンス
サポートされているメディア・タイプ
- 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/Sample/variables?links=none" -H Accept:application/json -H Content-Type:application/json -u %User%:%Password%
レスポンス本体の例
{
"items" : [ {
"name" : "CurrMonth",
"value" : "Sep"
}, {
"name" : "NextMonth",
"value" : "Oct"
} ]
}