Get team list
Basic Information
This interface is mainly used to obtain the list of teams that the user belongs to.
请求路径
GET /openapi/v1/teams
request parameters
| name | Location | type | required | Chinese name | illustrate | 
|---|---|---|---|---|---|
| query | query | string | no | Team name search | |
| page | query | string | no | page number | |
| page_size | query | string | no | Quantity per page | 
return result
| status code | Status code meaning | illustrate | data model | 
|---|---|---|---|
| 200 | OK | success | ListTeamResp | 
Model
ListTeamResp
{
  "total": 0,
  "tenants": [
    {
      "tenant_id": "string",
      "tenant_name": "string",
      "tenant_alias": "string",
      "enterprise_id": "string ",
      "is_active": true,
      "create_time": "string",
      "creater": "string",
      "role_infos": [
        {
          "role_name": "string",
          "role_id": " string"
        }
      ],
      "service_num": 0,
      "region_num": 0
    }
  ]
}
Attributes
| name | type | required | constraint | Chinese name | illustrate | 
|---|---|---|---|---|---|
| total | integer | false | none | Total | none | 
| tenants | [TeamInfo] | true | none | none | 
TeamInfo
{
  "tenant_id": "string",
  "tenant_name": "string",
  "tenant_alias": "string",
  "enterprise_id": "string",
  "is_active": true,
  "create_time": " string",
  "creater": "string",
  "role_infos": [
    {
      "role_name": "string",
      "role_id": "string"
    }
  ],
  "service_num": 0,
  "region_num": 0
}
Attributes
| name | type | required | constraint | Chinese name | illustrate | 
|---|---|---|---|---|---|
| tenant_id | string | true | none | Tenant id | Team ID | 
| tenant_name | string | true | none | Tenant name | Team Name | 
| tenant_alias | string | true | none | Tenant alias | team alias | 
| enterprise_id | string | true | none | Enterprise id | Enterprise ID | 
| is_active | boolean | false | none | Is active | Activate now | 
| create_time | string | false | none | Create time | creation time | 
| creator | string | false | none | Creater | Team owner user | 
| role_infos | [RoleInfo] | false | none | The roles the user has in the team | |
| service_num | integer | false | none | Service num | The number of components in the team | 
| region_num | integer | false | none | Region num | The number of data centers opened by the team | 
RoleInfo
{
  "role_name": "string",
  "role_id": "string"
}
Attributes
| name | type | required | constraint | Chinese name | illustrate | 
|---|---|---|---|---|---|
| role_name | string | true | none | Role name | Role Name | 
| role_id | string | true | none | Role id | role id |