跳到主要内容

获取应用详情

基本信息

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

请求路径
GET /openapi/v1/teams/{team_id}/regions/{region_name}/apps/{app_id}

请求参数

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

返回结果

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

返回数据结构

响应示例
{
"ID": 0,
"enterprise_id": "string",
"service_count": 0,
"running_service_count": 0,
"used_momory": 0,
"used_cpu": 0,
"app_id": 0,
"team_name": "string",
"status": "running",
"tenant_id": "string",
"group_name": "string",
"region_name": "string",
"is_default": true,
"order_index": -2147483648,
"note": "string",
"username": "string",
"governance_mode": "string",
"create_time": "2019-08-24T14:15:22Z",
"update_time": "2019-08-24T14:15:22Z",
"app_type": "string",
"app_store_name": "string",
"app_store_url": "string",
"app_template_name": "string",
"version": "string",
"logo": "string",
"k8s_app": "string"
}

模型

AppInfo

{
"ID": 0,
"enterprise_id": "string",
"service_count": 0,
"running_service_count": 0,
"used_momory": 0,
"used_cpu": 0,
"app_id": 0,
"team_name": "string",
"status": "running",
"tenant_id": "string",
"group_name": "string",
"region_name": "string",
"is_default": true,
"order_index": -2147483648,
"note": "string",
"username": "string",
"governance_mode": "string",
"create_time": "2019-08-24T14:15:22Z",
"update_time": "2019-08-24T14:15:22Z",
"app_type": "string",
"app_store_name": "string",
"app_store_url": "string",
"app_template_name": "string",
"version": "string",
"logo": "string",
"k8s_app": "string"
}

属性

名称类型必选约束中文名说明
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