Skip to main content

Create an app

Basic Information

This interface is mainly used to create applications

请求路径
POST /openapi/v1/teams/{team_id}/regions/{region_name}/apps 
Body 请求体示例
{
"app_name": "Test",
"app_note": "sint dolor in consectetur"
}

request parameters

nameLocationtyperequiredillustrate
team_idpathstringYesnone
region_namepathstringYesnone
bodybodyAppPostInfononone

return result

status codeStatus code meaningillustratedata model
200OKsuccessInline

return data structure

nametyperequiredconstraintChinese nameillustrate
IDintegerfalseread-onlyIDnone
tenant_idstringtruenoneTenant idtenant id
group_namestringtruenoneGroup namegroup name
region_namestringtruenoneRegion nameRegional center name
is_defaultbooleanfalsenoneIs defaultdefault components
order_indexintegerfalsenoneOrder indexApply sorting
notestring¦nullfalsenoneNoteRemark
usernamestring¦nullfalsenoneUsernamethe username of principal
governance_modestring¦nullfalsenoneGovernance modegovernance mode
create_timestring(date-time)truenoneCreate timecreation time
update_timestring(date-time)truenoneUpdate timeupdate time
app_typestringfalsenoneApp typeApp types
app_store_namestring¦nullfalsenoneApp store nameapp store name
app_store_urlstring¦nullfalsenoneApp store urlApp store URL
app_template_namestring¦nullfalsenoneApp template nameApp template name
versionstring¦nullfalsenoneVersionHelm app version
logostring¦nullfalsenoneLogoapplication logo
k8s_appstringfalsenoneK8s appIn-cluster application name
响应示例
{
"ID": 3,
"tenant_id": "string",
"group_name": "string",
"region_name": "string",
"is_default": true,
"order_index": 3,
"note": "string",
"username": "string",
"governance_mode": "string",
"create_time": "2004-01-01 11:11:11",
"update_time": " 2004-01-01 11:11:11",
"app_type": "string",
"app_store_name": "string",
"app_store_url": "string",
"app_template_name": "string",
" version": "string",
"logo": "string",
"k8s_app": "string"
}

Model

AppPostInfo

{
"app_name": "string",
"app_note": ""
}

Attributes

nametyperequiredconstraintChinese nameillustrate
app_namestringtruenoneApp nameApplication Name
app_notestringfalsenoneApp noteApplication Notes