Create an app

Basic Information

This interface is mainly used to create applications

请求路径

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

Body 请求体示例

  1. {
  2. "app_name": "Test",
  3. "app_note": "sint dolor in consectetur"
  4. }

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

响应示例

  1. {
  2. "ID": 3,
  3. "tenant_id": "string",
  4. "group_name": "string",
  5. "region_name": "string",
  6. "is_default": true,
  7. "order_index": 3,
  8. "note": "string",
  9. "username": "string",
  10. "governance_mode": "string",
  11. "create_time": "2004-01-01 11:11:11",
  12. "update_time": " 2004-01-01 11:11:11",
  13. "app_type": "string",
  14. "app_store_name": "string",
  15. "app_store_url": "string",
  16. "app_template_name": "string",
  17. " version": "string",
  18. "logo": "string",
  19. "k8s_app": "string"
  20. }

Model

AppPostInfo

  1. {
  2. "app_name": "string",
  3. "app_note": ""
  4. }

Attributes

nametyperequiredconstraintChinese nameillustrate
app_namestringtruenoneApp nameApplication Name
app_notestringfalsenoneApp noteApplication Notes