KubeGems
  1. Tenant
KubeGems
  • 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
    • 消息中心(websocket)
    • 发送消息
  • Application
    • 更新应用镜像
    • 更新资源建议至 gitrepo
    • 列举文件
    • 应用列表
    • 部署应用
    • 批量部署应用
    • 应用部署镜像
    • 更新应用镜像并部署
    • 应用部署
    • 删除应用
    • 部署历史
    • argo资源
    • argo资源
    • 写入多个文件
    • 写入文件
    • 删除文件
    • 应用编排文件diff
    • 应用编排文件历史
    • 应用编排文件刷新
    • 应用编排文件回滚
    • 应用编排中HPA
    • 应用编排中HPA
    • 应用编排HPA
    • 镜像历史
    • 更新应用镜像并部署
    • 更新应用镜像并部署
    • 应用编排中副本数scale(包含运行时调整)
    • 应用编排中副本数scale(包含运行时调整)
    • 资源树实时状态(List/Watch)
    • 获取对应的服务信息
    • Sync同步
    • 应用异步任务
    • 应用商店应用列表
    • 应用商店部署
    • 应用商店应用列表
    • 应用商店应用
    • 应用内容类型摘要
  • Alert
    • 告警黑名单
    • 加入/更新告警黑名单
    • 移除告警黑名单
    • 获取AlertRule列表
    • 创建AlertRule
    • AlertRule详情
    • 修改AlertRule
    • 修改AlertRule
    • 禁用AlertRule
    • 启用AlertRule
    • 告警历史
    • 重复的告警记录
    • 在namespace下获取receiver列表
    • 在namespace下创建receiver
    • 在namespace下修改receiver
    • 在namespace下删除receiver
    • 发送测试邮件
    • 搜索告警
    • 告警趋势图
    • 告警分组统计
    • 搜索告警
    • 今日告警数量统计
  • Approve
    • 获取待处理审批
    • 批准集群资源配额申请
    • 拒绝集群资源配额申请审批拒绝
  • Appstore
    • 应用商店-查询所有APP
    • APP详情
    • APP Charts文件编码
    • 列出所有的外部应用的charts仓库
    • 创建应用商店外部charts仓库
    • APP 删除外部chart仓库
    • APP 同步外部chart仓库
  • AuditLog
    • AuditLog列表
    • AuditLog详情
  • AuthSource
    • AuthSource列表
    • create AuthSource
    • modify AuthSource
    • delete AuthSource
    • AuthSource列表 (no auth)
    • AuthSource 预定义的源默认值
  • Cluster
    • Cluster列表
    • 创建Cluster
    • 列出集群状态
    • 添加cluster前的kubeconfig检测接口,验证kubeconfig,返回集群信息和可用的storageClass列表
    • Cluster详情
    • 修改Cluster
    • 删除 Cluster
    • 获取属于 Cluster 的 Environment 列表
    • 获取属于 Cluster 的 LogQueryHistory 列表
    • 聚合查询日志查询历史, unique logql desc 按照当前用户的查询历史聚合
    • 获取属于 Cluster 的 LogQuerySnapshot 列表
    • 集群资源状态
  • Agent.Plugin
    • 获取Plugin列表数据
    • 获取Plugin列表数据
    • 禁用插件
    • 禁用插件
    • 启用插件
    • 插件详情
    • 获取Plugin列表数据
    • 启用插件
    • 禁用插件
    • 检查更新
    • 启用插件
  • Environment
    • Environment列表
    • Environment详情
    • 修改Environment
    • 删除 Environment
    • 获取属于 Environment 的 User 列表
    • 在User和Environment间添加关联关系
    • 获取Environment 的一个 User详情
    • 修改 User 和 Environment 的关联关系
    • 删除 User 和 Environment 的关系
  • NetworkIsolated
    • 环境网络隔离开关
    • 项目网络隔离开关
    • 租户网络隔离开关
  • ResourceList
    • 获取环境资源清单
    • 获取项目资源清单
    • Workload列表
    • Workload删除
  • Event
    • 获取事件
  • Log
    • 获取loki上下文
    • 导出loki查询结果
    • 获取loki指定标签值
    • 获取loki标签
    • 获取loki查询语句
    • 获取loki查询结果
    • 获取loki Series
  • AAAAA
    • JWT登录
    • 获取OAUTH登录地址
    • OAUTH登录callback
    • OAUTH登录callback
  • LogQueryHistory
    • LogQueryHistory列表
    • 创建LogQueryHistory
    • 批量删除 LogQueryHistory
    • 删除 LogQueryHistory
  • LogQuerySnapshot
    • LogQuerySnapshot列表
    • 创建LogQuerySnapshot
    • LogQuerySnapshot详情
    • 删除 LogQuerySnapshot
  • Message
    • 获取我的消息列表
    • 获取消息详情
  • Metrics
    • 采集器列表
    • 添加/更新采集器
    • 删除采集器
    • 监控dashboard列表
    • 创建/更新dashboad
    • 删除dashboad
    • 监控标签值
    • 监控指标查询
    • 获取prometheu查询模板
    • 添加prometheu查询模板
    • 删除prometheu查询模板
  • User
    • 获取当前用户权限列表
    • 获取当前用户的信息
    • 重设密码
    • 获取当前用户租户列表
    • User列表
    • self update information
    • 创建User
    • 获取多个环境的用户列表
    • User详情
    • 修改User
    • 删除 User
    • 重置用户密码
    • 获取属于 User 的 Tenant 列表
  • NOPROXY
    • 获取HPA form
    • 设置HPA
    • 从快照恢复PVC
    • 快照PVC
  • 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
    • Registry列表
    • Registry详情
    • 修改Registry
    • 删除 Registry
  • Sels
    • application sels
    • environment sels
    • project sels
    • tenant sels
    • user sels
  • System
    • 列出所有系统配置
    • 获取用户配置
    • 获取系统配置
    • 修改系统配置
  • SystemRole
    • SystemRole列表
    • 创建SystemRole
    • SystemRole详情
    • 删除 SystemRole
    • 获取属于 SystemRole 的 User 列表
    • 修改 User 和 SystemRole 的关联关系
    • 删除 User 和 SystemRole 的关系
  • Tenant
    • Tenant列表
      GET
    • 创建Tenant
      POST
    • Tenant详情
      GET
    • 修改Tenant
      PUT
    • 删除 Tenant
      DELETE
    • 取消激活租户,当租户为激活状态的时候才可用
      POST
    • 激活租户,当租户为未激活状态的时候才可用
      POST
    • 创建or修改租户集群资源变更申请
      POST
    • 获取TenantGateway 列表
      GET
    • 创建TenantGateway
      POST
    • 获取TenantGateway
      GET
    • 更新TenantGateway
      PUT
    • 删除TenantGateway
      DELETE
    • 获取TenantGateway adddresses
      GET
    • 获取租户下的所有Environment列表
      GET
    • 搜索环境
      GET
    • 获取租户下所有的环境以及资源状态
      GET
    • 获取属于 Tenant 的 Project 列表
      GET
    • 创建一个属于 Tenant 的Project
      POST
    • 获取Tenant 的一个 Project详情
      GET
    • 租户下所有项目的资源统计列表[quota]
      GET
    • 租户非资源类型统计
      GET
    • 获取属于 Tenant 的 TenantResourceQuota 列表
      GET
    • 创建一个属于 Tenant 的TenantResourceQuota
      POST
    • 删除租户在一个集群下的资源
      PUT
    • 获取Tenant 的一个 TenantResourceQuota详情
      GET
    • 获取租户集群资源变更申请详情
      GET
    • 获取属于 Tenant 的 User 列表
      GET
    • 在User和Tenant间添加关联关系
      POST
    • 获取Tenant 的一个 User详情
      GET
    • 修改 User 和 Tenant 的关联关系
      PUT
    • 删除 User 和 Tenant 的关系
      DELETE
  • ApplicationManifest
    • admim查询所有应用编排列表
    • 应用编排列表
    • 应用编排详情
    • 修改应用编排描述
    • 删除创建应用编排
    • 列举文件
    • 写入多个文件
    • 写入文件
    • 删除文件
    • 应用编排文件diff
    • 应用编排文件历史
    • 应用编排文件刷新
    • 应用编排文件回滚
    • 创建应用编排
  • StrategyDeployment
    • 更新过程中的控制
    • 更新过程中的实时状态
    • 获取支持的灰度分析
    • 获取当前的应用更新策略
    • 使用更新策略更新应用
  • ProjectImage
    • 镜像扫描
    • 镜像summary
    • 镜像tags
    • 镜像不可发布标记
    • 镜像安全报告
  • VirtualDomain
    • VirtualDomain列表
    • 创建VirtualDomain
    • VirtualDomain详情
    • 更新VirtualDomain
    • 删除 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
    • istio网关实例列表
    • 更新istio网关实例
    • 创建istio网关实例`
    • istio网关实例列表
    • 删除istio网关实例
  • EnvironmentObservabilityDetails
    • 环境可观测性概览
  • Observability
    • 导入告警规则
    • 禁用告警规则
    • 启用告警规则
    • 生成告警规则消息
    • 同步告警规则
    • 告警历史
    • 禁用日志告警规则
    • 重复的告警记录
    • namespace级日志采集器
    • 启用日志告警规则
    • 日志告警规则列表
    • 创建日志告警规则
    • 日志告警接收器列表
    • 日志告警规则状态
    • 日志告警规则详情
    • 创建日志告警接收器
    • 更新日志告警规则
    • 更新日志告警接收器
    • 删除日志告警规则
    • 删除日志告警接收器
    • 获取支持日志采集的应用及标签
    • 应用级日志采集器
    • 监控采集器详情
    • 添加/更新监控采集器
    • 删除监控采集器
    • 监控告警规则列表
    • 创建监控告警规则
    • 监控告警规则状态
    • 监控告警规则详情
    • 修改监控告警规则
    • (日志/监控)告警接收器列表
    • 修改监控告警规则
    • 创建(日志/监控)告警接收器
    • 查群prometheus label names
    • 发送测试邮件
    • 发送测试邮件
    • 监控标签值
    • 更新(日志/监控)告警接收器
    • 监控指标查询
    • 删除(日志/监控)告警接收器
    • 监控采集器状态
    • 应用性能监控概览
    • 应用性能监控服务
    • 应用操作
    • 应用请求
    • 获取prometheu查询模板
    • 应用traces
    • 添加prometheu查询模板
    • 监控面板模板列表
    • OtelMetricsGraphs
    • 删除prometheu查询模板
    • GetTrace by trace_id
    • 监控dashboard列表
    • 创建监控dashboad
    • 监控dashboard详情
    • 更新监控dashboad
    • 删除监控dashboad
    • 监控dashboard panne指标查询
    • 获取exporter的schema
    • 监控面板模板列表
    • 导入监控面板模板
    • 监控面板模板详情
    • 更新监控面板模板
    • 删除监控面板模板
    • 告警趋势图
    • 告警分组统计
    • 搜索告警
    • 今日告警数量统计
    • 告警渠道列表
    • 创建告警渠道
    • 渠道列表详情
    • 更新告警渠道
    • 删除告警渠道
    • 测试告警渠道
    • 获取promql模板三级目录rule
    • 添加promql模板三级目录rule
    • 获取promql模板三级目录rule
    • 更新promql模板三级目录rule
    • 删除promql模板三级目录rule
    • 获取promql模板一级目录scope
    • 获取promql模板二级目录resource
    • 由scope,resource,rule name获取tpl
  • Oauth
    • 用户token列表
    • 签发oauth jwt token
    • 删除用户token
    • 检验oauth jwt token
  • Announcement
    • 公告列表
    • 发布公告
    • 获取单个公告
    • 更新公告
    • 删除公告
  1. Tenant

创建Tenant

POST
/v1/tenant
Tenant
创建Tenant

请求参数

Body 参数application/json
allocatedResourcequota
object (v1.ResourceList) 
可选
额外字段
object (resource.Quantity) 
可选
createdAt
string 
可选
id
integer 
可选
isActive
boolean 
是否激活
可选
projects
array[object (models.Project) {12}] 
可选
applications
array[object (models.Application) {12}] 
可选
createdAt
string 
创建时间
可选
environments
array[object (models.Environment) {20}] 
可选
id
integer 
可选
projectAlias
string 
项目别名
可选
projectName
string 
项目名字
可选
registries
array[object (models.Registry) {12}] 
可选
remark
string 
项目备注
可选
resourceQuota
array[integer]
项目资源限制
可选
tenant
object (models.Tenant) 
可选
tenantID
integer 
所属的租户ID
可选
users
array[object (models.User) {13}] 
可选
remark
string 
备注
可选
resourceQuotas
array[object (models.TenantResourceQuota) {8}] 
可选
cluster
object (models.Cluster) 
可选
clusterID
integer 
必需
content
array[integer]
可选
原始数据 记录的是request和response以及http_code
id
integer 
可选
tenant
object (models.Tenant) 
可选
tenantID
integer 
必需
tenantResourceQuotaApply
object (models.TenantResourceQuotaApply) 
可选
tenantResourceQuotaApplyID
integer 
可选
tenantName
string 
租户名字
可选
updatedAt
string 
可选
users
array[object (models.User) {13}] 
可选
createdAt
string 
加入时间
可选
email
string 
邮箱
必需
id
integer 
可选
isActive
boolean 
是否激活
可选
lastLoginAt
string 
最后登录时间
可选
phone
string 
电话
可选
role
string 
可选
角色,不同关联对象下表示的角色不同, 用来做join查询的时候处理角色字段的(请勿删除)
source
string 
可选
sourceVendor
string 
可选
systemRole
object (models.SystemRole) 
可选
systemRoleID
integer 
可选
tenants
array[object (models.Tenant) {10}] 
可选
username
string 
用户名
必需
示例
{
  "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": [
                      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
          },
          "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": [
                    {
                      "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"
                    }
                  ]
                },
                "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": {
                      "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"
                }
              ]
            },
            "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,
        "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"
    }
  ]
}

示例代码

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/tenant' \
--header 'Content-Type: application/json' \
--data-raw '{
    "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": [
                                            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
                    },
                    "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": [
                                        {
                                            "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"
                                        }
                                    ]
                                },
                                "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": {
                                            "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"
                                }
                            ]
                        },
                        "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,
                "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"
        }
    ]
}'

返回响应

🟢200Tenant
application/json
Body
allOf {2} 
可选
object (handlers.ResponseStruct) 
可选
data
可选
errorData
可选
message
string 
可选
object 
可选
Data
object (models.Tenant) 
可选
示例
{
  "data": null,
  "errorData": null,
  "message": "string",
  "Data": {
    "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": [
                        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
            },
            "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": [
                      {
                        "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": [
                              null
                            ]
                          },
                          "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"
                      }
                    ]
                  },
                  "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": {
                        "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"
                  }
                ]
              },
              "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,
          "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"
      }
    ]
  }
}
修改于 2023-04-27 09:52:43
上一页
Tenant列表
下一页
Tenant详情
Built with