Create a team

Basic Information

This interface is mainly used to create teams

请求路径

  1. POST /openapi/v1/teams

Body 请求体示例

  1. {
  2. "tenant_name": "string",
  3. "region": "string"
  4. }

request parameters

nameLocationtyperequiredChinese nameillustrate
bodybodyCreateTeamReqnonone

return result

status codeStatus code meaningillustratedata model
200OKsuccessTeamBaseInfo

Model

CreateTeamReq

  1. {
  2. "tenant_name": "string",
  3. "region": "string"
  4. }

Attributes

nametyperequiredconstraintChinese nameillustrate
tenant_namestringtruenoneTenant nameTeam Name
regionstringfalsenoneRegionThe data center that is activated by default, if not specified, it will not be activated

TeamBaseInfo

  1. {
  2. "tenant_id": "string",
  3. "tenant_name": "string",
  4. "region": "",
  5. "is_active": true,
  6. "create_time": "string",
  7. "creater": 0,
  8. "limit_memory": 1024,
  9. "update_time": "string",
  10. "expired_time": "string",
  11. "tenant_alias": "",
  12. "enterprise_id": ""
  13. }

Attributes

nametyperequiredconstraintChinese nameillustrate
tenant_idstringtruenoneTenant idtenant id
tenant_namestringtruenoneTenant nameTenant name
regionstringfalsenoneRegionregional center, deprecated
is_activebooleanfalsenoneIs activeactive state
create_timestringtruenoneCreate timecreation time
creatorintegerfalsenoneCreaterTenant creator
limit_memoryintegerfalsenoneLimit memoryMemory size unit (M)
update_timestringtruenoneUpdate timeupdate time
expired_timestringtruenoneExpired timeExpiration
tenant_aliasstring¦nullfalsenoneTenant aliasteam alias
enterprise_idstring¦nullfalsenoneEnterprise identerprise id