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
| name | Location | type | required | illustrate | 
|---|---|---|---|---|
| team_id | path | string | Yes | none | 
| region_name | path | string | Yes | none | 
| body | body | AppPostInfo | no | none | 
return result
| status code | Status code meaning | illustrate | data model | 
|---|---|---|---|
| 200 | OK | success | Inline | 
return data structure
| name | type | required | constraint | Chinese name | illustrate | 
|---|---|---|---|---|---|
| ID | integer | false | read-only | ID | none | 
| tenant_id | string | true | none | Tenant id | tenant id | 
| group_name | string | true | none | Group name | group name | 
| region_name | string | true | none | Region name | Regional center name | 
| is_default | boolean | false | none | Is default | default components | 
| order_index | integer | false | none | Order index | Apply sorting | 
| note | string¦null | false | none | Note | Remark | 
| username | string¦null | false | none | Username | the username of principal | 
| governance_mode | string¦null | false | none | Governance mode | governance mode | 
| create_time | string(date-time) | true | none | Create time | creation time | 
| update_time | string(date-time) | true | none | Update time | update time | 
| app_type | string | false | none | App type | App types | 
| app_store_name | string¦null | false | none | App store name | app store name | 
| app_store_url | string¦null | false | none | App store url | App store URL | 
| app_template_name | string¦null | false | none | App template name | App template name | 
| version | string¦null | false | none | Version | Helm app version | 
| logo | string¦null | false | none | Logo | application logo | 
| k8s_app | string | false | none | K8s app | In-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
| name | type | required | constraint | Chinese name | illustrate | 
|---|---|---|---|---|---|
| app_name | string | true | none | App name | Application Name | 
| app_note | string | false | none | App note | Application Notes |