ロケーション別名の取得

get

/essbase/rest/v1/applications/{applicationName}/databases/{databaseName}/locationaliases/{aliasName}

指定されたロケーション別名の詳細を返します。

リクエスト

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

レスポンス

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

200 レスポンス

OK

ロケーション別名が正常に返されました。

本体()
ルート・スキーマ : LocationAliasBean
型: object
ソースの表示
  • ロケーション別名の名前。

  • ロケーション別名が保存された接続に基づいている場合、このパラメータは、接続がアプリケーション・レベルの場合はtrue、接続がグローバルに定義されている場合はfalseである必要があります。

  • ロケーション別名が参照するデータベース/キューブのアプリケーション名。

  • ロケーション別名が保存された接続に基づいている場合、接続の名前。

  • ロケーション別名が参照するデータベースの名前。

  • links
  • ロケーション別名が保存された接続に基づいていない場合、ロケーション別名が参照するデータベース/キューブのEssbaseサーバー・ホスト名。

  • ロケーション別名が保存された接続に基づいていない場合、serverNameへのログインを許可されているユーザーの名前。両方のキューブが同じEssbaseサーバー上にある場合はオプションです。

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/databases/Basic/locationaliases/EasternDB -H "Accept:application/json" -u %User%:%Password%

レスポンス本体の例

{
  "aliasName" : "EasternDB",
  "serverName" : "https://myserver.example.com:9001/essbase/agent",
  "userName" : "",
  "applicationName" : "Eastern",
  "databaseName" : "Sales",
  "applicationLevelConnection" : false,
  "links" : [ {
    "rel" : "canonical",
    "href" : "https://myserver.example.com:9001/essbase/rest/v1/applications/Sample/databases/Basic/locationaliases/EasternDB",
    "method" : "GET",
    "type" : "application/json"
  }, {
    "rel" : "update",
    "href" : "https://myserver.example.com:9001/essbase/rest/v1/applications/Sample/databases/Basic/locationaliases/EasternDB",
    "method" : "PATCH",
    "type" : "application/json"
  }, {
    "rel" : "delete",
    "href" : "https://myserver.example.com:9001/essbase/rest/v1/applications/Sample/databases/Basic/locationaliases/EasternDB",
    "method" : "DELETE",
    "type" : "application/json"
  } ]
}
先頭に戻る