获取功能 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"
  },