获取应用详情

基本信息

该接口主要用于获取应用详情

请求路径

  1. GET /openapi/v1/teams/{team_id}/regions/{region_name}/apps/{app_id}

请求参数

名称位置类型必选中文名说明
app_idpathinteger应用id
team_idpathstringnone
region_namepathstringnone

返回结果

状态码状态码含义说明数据模型
200OK成功AppInfo

返回数据结构

响应示例

  1. {
  2. "ID": 0,
  3. "enterprise_id": "string",
  4. "service_count": 0,
  5. "running_service_count": 0,
  6. "used_momory": 0,
  7. "used_cpu": 0,
  8. "app_id": 0,
  9. "team_name": "string",
  10. "status": "running",
  11. "tenant_id": "string",
  12. "group_name": "string",
  13. "region_name": "string",
  14. "is_default": true,
  15. "order_index": -2147483648,
  16. "note": "string",
  17. "username": "string",
  18. "governance_mode": "string",
  19. "create_time": "2019-08-24T14:15:22Z",
  20. "update_time": "2019-08-24T14:15:22Z",
  21. "app_type": "string",
  22. "app_store_name": "string",
  23. "app_store_url": "string",
  24. "app_template_name": "string",
  25. "version": "string",
  26. "logo": "string",
  27. "k8s_app": "string"
  28. }

模型

AppInfo

  1. {
  2. "ID": 0,
  3. "enterprise_id": "string",
  4. "service_count": 0,
  5. "running_service_count": 0,
  6. "used_momory": 0,
  7. "used_cpu": 0,
  8. "app_id": 0,
  9. "team_name": "string",
  10. "status": "running",
  11. "tenant_id": "string",
  12. "group_name": "string",
  13. "region_name": "string",
  14. "is_default": true,
  15. "order_index": -2147483648,
  16. "note": "string",
  17. "username": "string",
  18. "governance_mode": "string",
  19. "create_time": "2019-08-24T14:15:22Z",
  20. "update_time": "2019-08-24T14:15:22Z",
  21. "app_type": "string",
  22. "app_store_name": "string",
  23. "app_store_url": "string",
  24. "app_template_name": "string",
  25. "version": "string",
  26. "logo": "string",
  27. "k8s_app": "string"
  28. }

属性

名称类型必选约束中文名说明
IDintegerfalseread-onlyIDnone
enterprise_idstringtruenoneEnterprise id企业ID(联合云ID)
service_countintegertruenoneService count组件数量
running_service_countintegertruenoneRunning service count正在运行的组件数量
used_momoryintegertruenoneUsed momory分配的内存
used_cpuintegertruenoneUsed cpu分配的cpu
app_idintegertruenoneApp id应用id
team_namestringtruenoneTeam name团队名
statusstringtruenoneStatus应用状态
tenant_idstringtruenoneTenant id租户id
group_namestringtruenoneGroup name组名
region_namestringtruenoneRegion name区域中心名称
is_defaultbooleanfalsenoneIs default默认组件
order_indexintegerfalsenoneOrder index应用排序
notestring¦nullfalsenoneNote备注
usernamestring¦nullfalsenoneUsernamethe username of principal
governance_modestring¦nullfalsenoneGovernance modegovernance mode
create_timestring(date-time)truenoneCreate time创建时间
update_timestring(date-time)truenoneUpdate time更新时间
app_typestringfalsenoneApp type应用类型
app_store_namestring¦nullfalsenoneApp store name应用商店名称
app_store_urlstring¦nullfalsenoneApp store url应用商店 URL
app_template_namestring¦nullfalsenoneApp template name应用模板名称
versionstring¦nullfalsenoneVersionHelm 应用版本
logostring¦nullfalsenoneLogo应用logo
k8s_appstringfalsenoneK8s app集群内应用名称

枚举值

属性
statusrunning
statuspart_running
statusclosed