eip-work / kuboard-press

Kuboard 是基于 Kubernetes 的微服务管理界面。同时提供 Kubernetes 免费中文教程,入门教程,最新版本的 Kubernetes v1.23.4 安装手册,(k8s install) 在线答疑,持续更新。
https://kuboard.cn/
22.11k stars 1.5k forks source link

是否提供HTTP-API进行服务信息查询、管理(如pod、宿主机信息查看、缩容、扩容等高频功能操作) #364

Closed zengxiaoliang closed 1 year ago

zengxiaoliang commented 1 year ago

各位大佬, 翻了下文档和之前的iisues ,没有找到介绍如何调用HTTP-API 进行常规的操作,想问下大佬些是此平台是否支持

zengxiaoliang commented 1 year ago

-H "content-type: application/json" \ -H "Cookie: KuboardUsername=demo;KuboardAccessKey=3ywz7yztic8e.drxh5ak4jsnf5ird2cyp4n8rcy7r7ce6" \ "https://demo.kuboard.cn/kuboard-api/cluster/k8s-19/kind/KuboardAccessGate" {"kind":"KuboardErrorResponse","metadata":{"name":"","cluster":""},"code":403,"details":{"Kind":"","Cluster":"","Name":""},"message":"User demo not allowed on KuboardAccessGate.LIST","reason":"demo no privilige"}%

尝试了这个,发现也不行

zengxiaoliang commented 1 year ago

F12 抓到接口 可以使用

llsydn commented 1 year ago

-H "content-type: application/json" -H "Cookie: KuboardUsername=demo;KuboardAccessKey=3ywz7yztic8e.drxh5ak4jsnf5ird2cyp4n8rcy7r7ce6" "https://demo.kuboard.cn/kuboard-api/cluster/k8s-19/kind/KuboardAccessGate" {"kind":"KuboardErrorResponse","metadata":{"name":"","cluster":""},"code":403,"details":{"Kind":"","Cluster":"","Name":""},"message":"User demo not allowed on KuboardAccessGate.LIST","reason":"demo no privilige"}%

尝试了这个,发现也不行

这个是可以的