Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Removed translated content for 'zh'
Sv translation
languageen

/api/dashboards/username/:username

Lists all dashboards available to the specified user.

Note

This resource is available only for Global admin and Domain administrator (since BellaDati 2.9.8).

Resource Information

Request Parameters

Parameters

Detail

Example

username

Username of the user to fetch dashboards for.

myUserName

Response Structure

JSON response has following structure:

NameDescription
dashboards

Array that contains multiple dashboard objects with following definition:

NameDescription
idDashboard identifier
nameDashboard name
aliasDashboard public path
lastChangeDate and time of dashboard last change

Sample Request / Response

Using curl:

Code Block
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" https://service.belladati.com/api/dashboards/username/myUserName

The JSON format response:

Code Block
javascript
javascript
{
  "dashboards": [
    {
      "id" : 123,
      "name" : "My Dashboard Name",
      "alias" : "my-public-path",
      "lastChange" : "Fri, 16 Aug 2016 14:49:02 GMT"
    },
    {
      "id" : 456,
      "name" : "Dashboard ABC",
      "alias" : "abc-dashboard",
      "lastChange" : "Mon, 19 Aug 2016 18:19:20 GMT"
    }
  ]
}
Sv translation
languageja

/api/dashboards/username/:username

指定したユーザーが使用できるすべてのダッシュボードを一覧表示します。

Note

このリソースは、グローバル管理者ドメイン管理者のみが利用できます (BellaDati 2.9.8以降)。

リソース情報

リクエストパラメーター

パラメーター

詳細

username

ダッシュボードを取得するユーザーのユーザー名。

myUserName

レスポンス構造

JSONレスポンスには、以下の構造があります:

説明
ダッシュボード

次の定義を持つ複数のダッシュボードオブジェクトを含む配列:

説明
idダッシュボード識別子
nameダッシュボード名
aliasダッシュボードの公開パス
lastChangeダッシュボードの最終変更の日時


サンプルリクエスト/レスポンス

Curl使用:

Code Block
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" https://service.belladati.com/api/dashboards/username/myUserName

JSON形式のレスポンス:

Code Block
javascript
javascript
{
  "dashboards": [
    {
      "id" : 123,
      "name" : "My Dashboard Name",
      "alias" : "my-public-path",
      "lastChange" : "Fri, 16 Aug 2016 14:49:02 GMT"
    },
    {
      "id" : 456,
      "name" : "Dashboard ABC",
      "alias" : "abc-dashboard",
      "lastChange" : "Mon, 19 Aug 2016 18:19:20 GMT"
    }
  ]
}