获取功能 API

编辑

[预览] 此功能处于技术预览阶段,可能会在未来的版本中更改或删除。Elastic 将努力修复任何问题,但技术预览中的功能不受官方 GA 功能的支持 SLA 约束。 检索所有 Kibana 功能。 功能被空间和安全使用,以细化和保护对 Kibana 的访问。

请求

编辑

GET <kibana 主机>:<端口>/api/features

响应代码

编辑
200
指示成功调用。

示例

编辑

该 API 返回以下内容

  {
    "id": "discover",
    "name": "Discover",
    "app": [
      "kibana"
    ],
    "catalogue": [
      "discover"
    ],
    "privileges": {
      "all": {
        "savedObject": {
          "all": [
            "search",
            "url"
          ],
          "read": [
            "config",
            "index-pattern"
          ]
        },
        "ui": [
          "show",
          "createShortUrl",
          "save"
        ]
      },
      "read": {
        "savedObject": {
          "all": [],
          "read": [
            "config",
            "index-pattern",
            "search",
            "url"
          ]
        },
        "ui": [
          "show"
        ]
      }
    }
  },
  {
    "id": "visualize",
    "name": "Visualize",
    "app": [
      "kibana"
    ],
    "catalogue": [
      "visualize"
    ],
    "privileges": {
      "all": {
        "savedObject": {
          "all": [
            "visualization",
            "url"
          ],
          "read": [
            "config",
            "index-pattern",
            "search"
          ]
        },
        "ui": [
          "show",
          "createShortUrl",
          "delete",
          "save"
        ]
      },
      "read": {
        "savedObject": {
          "all": [],
          "read": [
            "config",
            "index-pattern",
            "search",
            "visualization"
          ]
        },
        "ui": [
          "show"
        ]
      }
    }
  },
  {
    "id": "dashboard",
    "name": "Dashboard",
    "app": [
      "kibana"
    ],
    "catalogue": [
      "dashboard"
    ],
    "privileges": {
      "all": {
        "savedObject": {
          "all": [
            "dashboard",
            "url"
          ],
          "read": [
            "config",
            "index-pattern",
            "search",
            "visualization",
            "canvas-workpad"
          ]
        },
        "ui": [
          "createNew",
          "show",
          "showWriteControls"
        ]
      },
      "read": {
        "savedObject": {
          "all": [],
          "read": [
            "config",
            "index-pattern",
            "search",
            "visualization",
            "canvas-workpad",
            "dashboard"
          ]
        },
        "ui": [
          "show"
        ]
      }
    }
  },
  {
    "id": "dev_tools",
    "name": "Dev Tools",
    "app": [
      "kibana"
    ],
    "catalogue": [
      "console",
      "searchprofiler",
      "grokdebugger"
    ],
    "privileges": {
      "all": {
        "api": [
          "console"
        ],
        "savedObject": {
          "all": [],
          "read": [
            "config"
          ]
        },
        "ui": [
          "show"
        ]
      },
      "read": {
        "api": [
          "console"
        ],
        "savedObject": {
          "all": [],
          "read": [
            "config"
          ]
        },
        "ui": [
          "show"
        ]
      }
    },
    "privilegesTooltip": "User should also be granted the appropriate Elasticsearch cluster and index privileges"
  },