- Agent.V1
- kubegems default alert webhook
- 获取k8s api-resources
- 获取alertmanager中的告警数据
- 检查alertmanagerconfig
- get silence
- 为指定告警规则添加silence
- get silence
- rollout info
- rollout info
- 获取Job列表数据
- 获取可以绑定的环境的namespace列表数据
- 获取Event列表数据
- 获取Pod列表数据
- 实时获取日志STDOUT输出(websocket)
- 进入容器交互执行命令(websocket)
- 从容器下载文件
- upload files to container
- 获取PersistentVolumeClaim列表数据
- 获取PersistentVolumeClaim数据
- 获取Secret列表数据
- 自定义的NODE详情接口,(可以获取资源分配情况)
- 修改节点调度
- 修改node的元数据,label和annotations
- 修改节点污点
- 调试容器(websocket)
- Jaeger span count
- Loki Alert Rule
- Loki Labels
- Loki LabelValues
- 获取Pods最近十五分钟的Metrics(从scraper获取)
- 获取Pods实时Metrics
- Loki Query
- Loki QueryRange
- 获取Node实时Metrics
- Loki Series
- 获取Nodes最近十五分钟的Metrics(从scraper获取)
- Loki LabelValues
- 获取指定Node实时Metrics
- Prometheus alertrule
- CertInfo
- ComponentStatus
- Prometheus Labelnames
- Prometheus LabelValues
- Prometheus Matrix
- Prometheus Targets
- Prometheus Vector
- 获取集群级别统计
- 获取集群级别资源统计
- 获取集群内各种workload的统计
- kubectl
- 获取namespaced scope workload list
- 获取namespaced scope workload
- 创建namespaced scope workload
- 创建 none namespaced scope workload
- 创建namespaced scope workload
- 创建namespaced scope workload
- 扩缩容
- 获取 none namespaced scope workload list
- 获取 none namespaced scope workload
- 创建none namespaced scope workload
- 创建namespaced scope workload
- 创建none namespaced scope workload
- 创建none namespaced scope workload
- nonamespace 扩缩容
- MSGBUS
- Application
- Alert
- Approve
- Appstore
- AuditLog
- AuthSource
- Cluster
- Agent.Plugin
- Environment
- NetworkIsolated
- ResourceList
- Event
- Log
- AAAAA
- LogQueryHistory
- LogQuerySnapshot
- Message
- Metrics
- User
- NOPROXY
- Project
- Project列表
- 获取项目资源统计列表[quota]
- Project详情
- 修改Project
- 删除 Project
- 获取项目下环境列表,按照集群聚合,同时获取集群的下的租户网络策略
- 获取属于 Project 的 Environment 列表
- 创建一个属于 Project 的Environment
- 获取项目下的环境资源统计列表[quota]
- 获取Project 的一个 Environment详情
- 单个环境下的资源统计[quota]
- 项目环境资源统计
- 项目非资源类型数据统计
- 获取单个项目资源统计[quota]
- 获取属于 Project 的 Registry 列表
- 创建一个属于 Project 的Registry
- 获取Project 的一个 Registry详情
- 修改Project 的 Registry
- 删除 Project 的 Registry
- 设置 Project 的 默认 Registry
- 项目资源统计
- 获取属于 Project 的 User 列表
- 在User和Project间添加关联关系
- 获取Project 的一个 User详情
- 修改 User 和 Project 的关联关系
- 删除 User 和 Project 的关系
- Registry
- Sels
- System
- SystemRole
- Tenant
- Tenant列表
- 创建Tenant
- Tenant详情
- 修改Tenant
- 删除 Tenant
- 取消激活租户,当租户为激活状态的时候才可用
- 激活租户,当租户为未激活状态的时候才可用
- 创建or修改租户集群资源变更申请
- 获取TenantGateway 列表
- 创建TenantGateway
- 获取TenantGateway
- 更新TenantGateway
- 删除TenantGateway
- 获取TenantGateway adddresses
- 获取租户下的所有Environment列表
- 搜索环境
- 获取租户下所有的环境以及资源状态
- 获取属于 Tenant 的 Project 列表
- 创建一个属于 Tenant 的Project
- 获取Tenant 的一个 Project详情
- 租户下所有项目的资源统计列表[quota]
- 租户非资源类型统计
- 获取属于 Tenant 的 TenantResourceQuota 列表
- 创建一个属于 Tenant 的TenantResourceQuota
- 删除租户在一个集群下的资源
- 获取Tenant 的一个 TenantResourceQuota详情
- 获取租户集群资源变更申请详情
- 获取属于 Tenant 的 User 列表
- 在User和Tenant间添加关联关系
- 获取Tenant 的一个 User详情
- 修改 User 和 Tenant 的关联关系
- 删除 User 和 Tenant 的关系
- ApplicationManifest
- StrategyDeployment
- ProjectImage
- VirtualDomain
- VirtualSpace
- VirtualSpace列表
- 创建VirtualSpace
- VirtualSpace详情
- 更新VirtualSpace
- 删除 VirtualSpace
- 激活/禁用VirtualSpace
- 获取虚拟空间下的环境
- 向虚拟空间增加环境
- 从虚拟空间删除环境
- 列举 istio 资源
- kiali代理
- service列表
- service详情
- service故障注入
- service请求路由
- service超时配置
- service重置
- service tcp流量切换
- service流量切换
- workload列表
- 注入istio控制
- 设置虚拟域名
- workload详情
- 获取属于 VirtualSpace 的 User 列表
- 在User和VirtualSpace间添加关联关系
- 删除 User 和 VirtualSpace 的关系
- Istio
- EnvironmentObservabilityDetails
- Observability
- 导入告警规则POST
- 禁用告警规则POST
- 启用告警规则POST
- 生成告警规则消息POST
- 同步告警规则POST
- 告警历史GET
- 禁用日志告警规则POST
- 重复的告警记录GET
- namespace级日志采集器PUT
- 启用日志告警规则POST
- 日志告警规则列表GET
- 创建日志告警规则POST
- 日志告警接 收器列表GET
- 日志告警规则状态GET
- 日志告警规则详情GET
- 创建日志告警接收器POST
- 更新日志告警规则PUT
- 更新日志告警接收器PUT
- 删除日志告警规则DELETE
- 删除日志告警接收器DELETE
- 获取支持日志采集的应用及标签GET
- 应用级日志采集器POST
- 监控采集器详情GET
- 添加/更新监控采集器POST
- 删除监控采集器DELETE
- 监控告警规则列表GET
- 创建监控告警规则POST
- 监控告警规则状态GET
- 监控告警规则详情GET
- 修改监控告警规则PUT
- (日志/监控)告警接收器列表GET
- 修改监控告警规则DELETE
- 创建(日志/监控)告警接收器POST
- 查群prometheus label namesGET
- 发送测试邮件POST
- 发送测试邮件POST
- 监控标签值GET
- 更新(日志/监控)告警接收器PUT
- 监控指标查询GET
- 删除(日志/监控)告警接收器DELETE
- 监控采集器状态GET
- 应用性能监控概览GET
- 应用性能监控服务GET
- 应用操作GET
- 应用请求GET
- 获取prometheu查询模板GET
- 应用tracesGET
- 添加prometheu查询模板POST
- 监控面板模板列表DELETE
- OtelMetricsGraphsGET
- 删除prometheu查询模板DELETE
- GetTrace by trace_idGET
- 监控dashboard列表GET
- 创建监控dashboadPOST
- 监控dashboard详情GET
- 更新监控dashboadPUT
- 删除监控dashboadDELETE
- 监控dashboard panne指标查询GET
- 获取exporter的schemaGET
- 监控面板模板列表GET
- 导入监控面板模板POST
- 监控面板模板详情GET
- 更新监控面板模板PUT
- 删除监控面板模板DELETE
- 告警趋势图GET
- 告警分组统计GET
- 搜索告警GET
- 今日告警数量统计GET
- 告警渠道列表GET
- 创建告警渠道POST
- 渠道列表详情GET
- 更新告警渠道PUT
- 删除告警渠道DELETE
- 测试告警渠道POST
- 获取promql模板三级目录ruleGET
- 添加promql模板三级目录rulePOST
- 获取promql模板三级目录ruleGET
- 更新promql模板三级目录rulePUT
- 删除promql模板三级目录ruleDELETE
- 获取promql模板一级目录scopeGET
- 获取promql模板二级目录resourceGET
- 由scope,resource,rule name获取tplGET
- Oauth
- Announcement
生成告警规则消息
POST
/v1/observability/cluster/{cluster}/namespaces/{namespace}/alerts/{name}/actions/message
Observability
请求参数
Path 参数
cluster
string
cluster
namespace
string
namespace
name
string
name
Body 参数application/json
alertLevels
array[object (models.AlertLevel) {3}]
告警级别
compareOp
string
可选
compareValue
string
可选
severity
string
可选
alertType
string
可选
cluster
string
可选
createdAt
string
可选
expr
string
可选
promql/logql表达式,不能包含比较运算符(<, <=, >, >=, ==)
for
string
必需
id
integer
可选
inhibitLabels
array[string]
可选
isOpen
boolean
是否启用
k8sResourceStatus
object (gormdatatypes.JSONMap)
可选
额外字段
string
可选
logqlGenerator
object (models.LogqlGenerator)
可选
duration
string
时间范围
labelMatchers
array[object (promql.LabelMatcher) {3}]
标签筛选器
match
string
正则匹配的字符串
message
string
告警消息
name
string
可选
>= 1 字符<= 50 字符
namespace
string
可选
promqlGenerator
object (models.PromqlGenerator)
可选
labelMatchers
array[object (promql.LabelMatcher) {3}]
标签筛选器
resource
string
可选
rule
string
可选
scope
string
scope
unit
string
单位
realTimeAlerts
array[object (v1.Alert) {5}]
实时告警
activeAt
string
可选
annotations
object (model.LabelSet)
可选
labels
object (model.LabelSet)
可选
state
string
可选
value
string
可选
receivers
array[object (models.AlertReceiver) {5}]
可选
alertChannel
object (models.AlertChannel)
可选
alertChannelID
integer
可选
alertRuleID
integer
可选
id
integer
可选
interval
string
可选
state
string
状态
updatedAt
string
可选
示例
{ "alertLevels": [ { "compareOp": "string", "compareValue": "string", "severity": "string" } ], "alertType": "string", "cluster": "string", "createdAt": "string", "expr": "string", "for": "string", "id": 0, "inhibitLabels": [ "string" ], "isOpen": true, "k8sResourceStatus": { "property1": "string", "property2": "string" }, "logqlGenerator": { "duration": "string", "labelMatchers": [ { "name": "string", "type": "string", "value": "string" } ], "match": "string" }, "message": "string", "name": "string", "namespace": "string", "promqlGenerator": { "labelMatchers": [ { "name": "string", "type": "string", "value": "string" } ], "resource": "string", "rule": "string", "scope": "string", "unit": "string" }, "realTimeAlerts": [ { "activeAt": "string", "annotations": { "property1": "string", "property2": "string" }, "labels": { "property1": "string", "property2": "string" }, "state": "string", "value": "string" } ], "receivers": [ { "alertChannel": { "channelConfig": { "ChannelIf": null }, "id": 0, "name": "string", "tenant": { "allocatedResourcequota": { "property1": { "Format": "string" }, "property2": { "Format": "string" } }, "createdAt": "string", "id": 0, "isActive": true, "projects": [ { "applications": [ { "applicationName": "string", "createdAt": "string", "creator": "string", "environment": { "allowEdgeRegistration": true, "applications": [ {} ], "cluster": { "agentAddr": "string", "apiserver": "string", "clientCertExpireAt": "string", "clusterName": "string", "clusterResourceQuota": [ 0 ], "defaultStorageClass": "string", "deletedAt": { "time": "string", "valid": true }, "environments": [ {} ], "id": 0, "imageRepo": "string", "installNamespace": "string", "kubeConfig": [ 0 ], "oversoldConfig": [ 0 ], "primary": true, "runtime": "string", "tenantResourceQuotas": [ { "cluster": {}, "clusterID": 0, "content": [ 0 ], "id": 0, "tenant": {}, "tenantID": 0, "tenantResourceQuotaApply": { "content": [ null ], "id": 0, "status": "string", "updatedAt": "string", "username": "string" }, "tenantResourceQuotaApplyID": 0 } ], "vendor": "selfhosted", "version": "string" }, "clusterID": 0, "creator": { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ {} ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" }, "creatorID": 0, "deletePolicy": "string", "environmentName": "string", "id": 0, "limitRange": [ 0 ], "metaType": "string", "namespace": "string", "nslabels": { "property1": "string", "property2": "string" }, "project": {}, "projectID": 0, "remark": "string", "resourceQuota": [ 0 ], "users": [ { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ {} ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" } ], "virtualSpace": { "createdAt": "string", "createdBy": "string", "environments": [ {} ], "id": 0, "isActive": true, "updatedAt": "string", "users": [ { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ null ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" } ], "virtualSpaceName": "string" }, "virtualSpaceID": 0 }, "environmentID": 0, "id": 0, "images": [ 0 ], "kind": "string", "labels": [ 0 ], "project": {}, "projectID": 0, "remark": "string" } ], "createdAt": "string", "environments": [ { "allowEdgeRegistration": true, "applications": [ { "applicationName": "string", "createdAt": "string", "creator": "string", "environment": {}, "environmentID": 0, "id": 0, "images": [ 0 ], "kind": "string", "labels": [ 0 ], "project": {}, "projectID": 0, "remark": "string" } ], "cluster": { "agentAddr": "string", "apiserver": "string", "clientCertExpireAt": "string", "clusterName": "string", "clusterResourceQuota": [ 0 ], "defaultStorageClass": "string", "deletedAt": { "time": "string", "valid": true }, "environments": [ {} ], "id": 0, "imageRepo": "string", "installNamespace": "string", "kubeConfig": [ 0 ], "oversoldConfig": [ 0 ], "primary": true, "runtime": "string", "tenantResourceQuotas": [ { "cluster": {}, "clusterID": 0, "content": [ 0 ], "id": 0, "tenant": {}, "tenantID": 0, "tenantResourceQuotaApply": { "content": [ 0 ], "id": 0, "status": "string", "updatedAt": "string", "username": "string" }, "tenantResourceQuotaApplyID": 0 } ], "vendor": "selfhosted", "version": "string" }, "clusterID": 0, "creator": { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ {} ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" }, "creatorID": 0, "deletePolicy": "string", "environmentName": "string", "id": 0, "limitRange": [ 0 ], "metaType": "string", "namespace": "string", "nslabels": { "property1": "string", "property2": "string" }, "project": {}, "projectID": 0, "remark": "string", "resourceQuota": [ 0 ], "users": [ { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ {} ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" } ], "virtualSpace": { "createdAt": "string", "createdBy": "string", "environments": [ {} ], "id": 0, "isActive": true, "updatedAt": "string", "users": [ { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ {} ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" } ], "virtualSpaceName": "string" }, "virtualSpaceID": 0 } ], "id": 0, "projectAlias": "string", "projectName": "string", "registries": [ { "creator": { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ {} ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" }, "creatorID": 0, "enableExtends": true, "id": 0, "isDefault": true, "password": "string", "project": {}, "projectID": 0, "registryAddress": "string", "registryName": "string", "updateTime": "string", "username": "string" } ], "remark": "string", "resourceQuota": [ 0 ], "tenant": {}, "tenantID": 0, "users": [ { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ {} ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" } ] } ], "remark": "string", "resourceQuotas": [ { "cluster": { "agentAddr": "string", "apiserver": "string", "clientCertExpireAt": "string", "clusterName": "string", "clusterResourceQuota": [ 0 ], "defaultStorageClass": "string", "deletedAt": { "time": "string", "valid": true }, "environments": [ { "allowEdgeRegistration": true, "applications": [ { "applicationName": "string", "createdAt": "string", "creator": "string", "environment": {}, "environmentID": 0, "id": 0, "images": [ 0 ], "kind": "string", "labels": [ 0 ], "project": { "applications": [ {} ], "createdAt": "string", "environments": [ {} ], "id": 0, "projectAlias": "string", "projectName": "string", "registries": [ {} ], "remark": "string", "resourceQuota": [ 0 ], "tenant": {}, "tenantID": 0, "users": [ { "tenants": [] } ] }, "projectID": 0, "remark": "string" } ], "cluster": {}, "clusterID": 0, "creator": { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ {} ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" }, "creatorID": 0, "deletePolicy": "string", "environmentName": "string", "id": 0, "limitRange": [ 0 ], "metaType": "string", "namespace": "string", "nslabels": { "property1": "string", "property2": "string" }, "project": { "applications": [ { "applicationName": "string", "createdAt": "string", "creator": "string", "environment": {}, "environmentID": 0, "id": 0, "images": [ 0 ], "kind": "string", "labels": [ 0 ], "project": {}, "projectID": 0, "remark": "string" } ], "createdAt": "string", "environments": [ {} ], "id": 0, "projectAlias": "string", "projectName": "string", "registries": [ { "creator": { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "users": [] }, "systemRoleID": 0, "tenants": [ null ], "username": "string" }, "creatorID": 0, "enableExtends": true, "id": 0, "isDefault": true, "password": "string", "project": {}, "projectID": 0, "registryAddress": "string", "registryName": "string", "updateTime": "string", "username": "string" } ], "remark": "string", "resourceQuota": [ 0 ], "tenant": {}, "tenantID": 0, "users": [ { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ null ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" } ] }, "projectID": 0, "remark": "string", "resourceQuota": [ 0 ], "users": [ { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ {} ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" } ], "virtualSpace": { "createdAt": "string", "createdBy": "string", "environments": [ {} ], "id": 0, "isActive": true, "updatedAt": "string", "users": [ { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ null ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" } ], "virtualSpaceName": "string" }, "virtualSpaceID": 0 } ], "id": 0, "imageRepo": "string", "installNamespace": "string", "kubeConfig": [ 0 ], "oversoldConfig": [ 0 ], "primary": true, "runtime": "string", "tenantResourceQuotas": [ {} ], "vendor": "selfhosted", "version": "string" }, "clusterID": 0, "content": [ 0 ], "id": 0, "tenant": {}, "tenantID": 0, "tenantResourceQuotaApply": { "content": [ 0 ], "id": 0, "status": "string", "updatedAt": "string", "username": "string" }, "tenantResourceQuotaApplyID": 0 } ], "tenantName": "string", "updatedAt": "string", "users": [ { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ {} ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" } ] }, "tenantID": 0 }, "alertChannelID": 0, "alertRuleID": 0, "id": 0, "interval": "string" } ], "state": "string", "updatedAt": "string" }
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/observability/cluster//namespaces//alerts//actions/message' \ --header 'Content-Type: application/json' \ --data-raw '{ "alertLevels": [ { "compareOp": "string", "compareValue": "string", "severity": "string" } ], "alertType": "string", "cluster": "string", "createdAt": "string", "expr": "string", "for": "string", "id": 0, "inhibitLabels": [ "string" ], "isOpen": true, "k8sResourceStatus": { "property1": "string", "property2": "string" }, "logqlGenerator": { "duration": "string", "labelMatchers": [ { "name": "string", "type": "string", "value": "string" } ], "match": "string" }, "message": "string", "name": "string", "namespace": "string", "promqlGenerator": { "labelMatchers": [ { "name": "string", "type": "string", "value": "string" } ], "resource": "string", "rule": "string", "scope": "string", "unit": "string" }, "realTimeAlerts": [ { "activeAt": "string", "annotations": { "property1": "string", "property2": "string" }, "labels": { "property1": "string", "property2": "string" }, "state": "string", "value": "string" } ], "receivers": [ { "alertChannel": { "channelConfig": { "ChannelIf": null }, "id": 0, "name": "string", "tenant": { "allocatedResourcequota": { "property1": { "Format": "string" }, "property2": { "Format": "string" } }, "createdAt": "string", "id": 0, "isActive": true, "projects": [ { "applications": [ { "applicationName": "string", "createdAt": "string", "creator": "string", "environment": { "allowEdgeRegistration": true, "applications": [ {} ], "cluster": { "agentAddr": "string", "apiserver": "string", "clientCertExpireAt": "string", "clusterName": "string", "clusterResourceQuota": [ 0 ], "defaultStorageClass": "string", "deletedAt": { "time": "string", "valid": true }, "environments": [ {} ], "id": 0, "imageRepo": "string", "installNamespace": "string", "kubeConfig": [ 0 ], "oversoldConfig": [ 0 ], "primary": true, "runtime": "string", "tenantResourceQuotas": [ { "cluster": {}, "clusterID": 0, "content": [ 0 ], "id": 0, "tenant": {}, "tenantID": 0, "tenantResourceQuotaApply": { "content": [ null ], "id": 0, "status": "string", "updatedAt": "string", "username": "string" }, "tenantResourceQuotaApplyID": 0 } ], "vendor": "selfhosted", "version": "string" }, "clusterID": 0, "creator": { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ {} ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" }, "creatorID": 0, "deletePolicy": "string", "environmentName": "string", "id": 0, "limitRange": [ 0 ], "metaType": "string", "namespace": "string", "nslabels": { "property1": "string", "property2": "string" }, "project": {}, "projectID": 0, "remark": "string", "resourceQuota": [ 0 ], "users": [ { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ {} ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" } ], "virtualSpace": { "createdAt": "string", "createdBy": "string", "environments": [ {} ], "id": 0, "isActive": true, "updatedAt": "string", "users": [ { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ null ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" } ], "virtualSpaceName": "string" }, "virtualSpaceID": 0 }, "environmentID": 0, "id": 0, "images": [ 0 ], "kind": "string", "labels": [ 0 ], "project": {}, "projectID": 0, "remark": "string" } ], "createdAt": "string", "environments": [ { "allowEdgeRegistration": true, "applications": [ { "applicationName": "string", "createdAt": "string", "creator": "string", "environment": {}, "environmentID": 0, "id": 0, "images": [ 0 ], "kind": "string", "labels": [ 0 ], "project": {}, "projectID": 0, "remark": "string" } ], "cluster": { "agentAddr": "string", "apiserver": "string", "clientCertExpireAt": "string", "clusterName": "string", "clusterResourceQuota": [ 0 ], "defaultStorageClass": "string", "deletedAt": { "time": "string", "valid": true }, "environments": [ {} ], "id": 0, "imageRepo": "string", "installNamespace": "string", "kubeConfig": [ 0 ], "oversoldConfig": [ 0 ], "primary": true, "runtime": "string", "tenantResourceQuotas": [ { "cluster": {}, "clusterID": 0, "content": [ 0 ], "id": 0, "tenant": {}, "tenantID": 0, "tenantResourceQuotaApply": { "content": [ 0 ], "id": 0, "status": "string", "updatedAt": "string", "username": "string" }, "tenantResourceQuotaApplyID": 0 } ], "vendor": "selfhosted", "version": "string" }, "clusterID": 0, "creator": { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ {} ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" }, "creatorID": 0, "deletePolicy": "string", "environmentName": "string", "id": 0, "limitRange": [ 0 ], "metaType": "string", "namespace": "string", "nslabels": { "property1": "string", "property2": "string" }, "project": {}, "projectID": 0, "remark": "string", "resourceQuota": [ 0 ], "users": [ { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ {} ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" } ], "virtualSpace": { "createdAt": "string", "createdBy": "string", "environments": [ {} ], "id": 0, "isActive": true, "updatedAt": "string", "users": [ { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ {} ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" } ], "virtualSpaceName": "string" }, "virtualSpaceID": 0 } ], "id": 0, "projectAlias": "string", "projectName": "string", "registries": [ { "creator": { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ {} ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" }, "creatorID": 0, "enableExtends": true, "id": 0, "isDefault": true, "password": "string", "project": {}, "projectID": 0, "registryAddress": "string", "registryName": "string", "updateTime": "string", "username": "string" } ], "remark": "string", "resourceQuota": [ 0 ], "tenant": {}, "tenantID": 0, "users": [ { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ {} ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" } ] } ], "remark": "string", "resourceQuotas": [ { "cluster": { "agentAddr": "string", "apiserver": "string", "clientCertExpireAt": "string", "clusterName": "string", "clusterResourceQuota": [ 0 ], "defaultStorageClass": "string", "deletedAt": { "time": "string", "valid": true }, "environments": [ { "allowEdgeRegistration": true, "applications": [ { "applicationName": "string", "createdAt": "string", "creator": "string", "environment": {}, "environmentID": 0, "id": 0, "images": [ 0 ], "kind": "string", "labels": [ 0 ], "project": { "applications": [ {} ], "createdAt": "string", "environments": [ {} ], "id": 0, "projectAlias": "string", "projectName": "string", "registries": [ {} ], "remark": "string", "resourceQuota": [ 0 ], "tenant": {}, "tenantID": 0, "users": [ { "tenants": [] } ] }, "projectID": 0, "remark": "string" } ], "cluster": {}, "clusterID": 0, "creator": { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ {} ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" }, "creatorID": 0, "deletePolicy": "string", "environmentName": "string", "id": 0, "limitRange": [ 0 ], "metaType": "string", "namespace": "string", "nslabels": { "property1": "string", "property2": "string" }, "project": { "applications": [ { "applicationName": "string", "createdAt": "string", "creator": "string", "environment": {}, "environmentID": 0, "id": 0, "images": [ 0 ], "kind": "string", "labels": [ 0 ], "project": {}, "projectID": 0, "remark": "string" } ], "createdAt": "string", "environments": [ {} ], "id": 0, "projectAlias": "string", "projectName": "string", "registries": [ { "creator": { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "users": [] }, "systemRoleID": 0, "tenants": [ null ], "username": "string" }, "creatorID": 0, "enableExtends": true, "id": 0, "isDefault": true, "password": "string", "project": {}, "projectID": 0, "registryAddress": "string", "registryName": "string", "updateTime": "string", "username": "string" } ], "remark": "string", "resourceQuota": [ 0 ], "tenant": {}, "tenantID": 0, "users": [ { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ null ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" } ] }, "projectID": 0, "remark": "string", "resourceQuota": [ 0 ], "users": [ { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ {} ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" } ], "virtualSpace": { "createdAt": "string", "createdBy": "string", "environments": [ {} ], "id": 0, "isActive": true, "updatedAt": "string", "users": [ { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ null ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" } ], "virtualSpaceName": "string" }, "virtualSpaceID": 0 } ], "id": 0, "imageRepo": "string", "installNamespace": "string", "kubeConfig": [ 0 ], "oversoldConfig": [ 0 ], "primary": true, "runtime": "string", "tenantResourceQuotas": [ {} ], "vendor": "selfhosted", "version": "string" }, "clusterID": 0, "content": [ 0 ], "id": 0, "tenant": {}, "tenantID": 0, "tenantResourceQuotaApply": { "content": [ 0 ], "id": 0, "status": "string", "updatedAt": "string", "username": "string" }, "tenantResourceQuotaApplyID": 0 } ], "tenantName": "string", "updatedAt": "string", "users": [ { "createdAt": "string", "email": "string", "id": 0, "isActive": true, "lastLoginAt": "string", "phone": "string", "role": "string", "source": "string", "sourceVendor": "string", "systemRole": { "id": 0, "roleCode": "string", "roleName": "string", "users": [ {} ] }, "systemRoleID": 0, "tenants": [ {} ], "username": "string" } ] }, "tenantID": 0 }, "alertChannelID": 0, "alertRuleID": 0, "id": 0, "interval": "string" } ], "state": "string", "updatedAt": "string" }'
返回响应
🟢200resp
application/json
Body
allOf {2}
可选
object (handlers.ResponseStruct)
可选
data
可选
errorData
可选
message
string
可选
object
可选
Data
string
可选
示例
{
"data": null,
"errorData": null,
"message": "string",
"Data": "string"
}
修改于 2023-04-27 09:52:42