*查看项目列表
            
        
    
    
    
            
            请求信息
请求行
GET /auth/v1/projects
查看项目列表,已启用 RBAC 时可用。
返回信息
Content-Type 
                application/json
状态码: 200
OK
返回体示例
{
   "apiVersion": "auth.alauda.io/v1",
   "items": [
     {
       "apiVersion": "auth.alauda.io/v1",
       "kind": "Project",
       "metadata": {
         "annotations": {
           "cpaas.io/creator": "admin@cpaas.io",
           "cpaas.io/description": "cpaas",
           "cpaas.io/display-name": "cpaas",
           "cpaas.io/unite-quota-fed-clusters": "",
           "cpaas.io/updated-at": "2021-06-28T03:34:24Z"
         },
         "creationTimestamp": "2021-06-28T03:34:24Z",
         "finalizers": [
           "namespace"
         ],
         "generation": 2,
         "labels": {
           "cpaas.io/project": "cpaas",
           "cpaas.io/project.id": "114038197",
           "cpaas.io/project.level": "1",
           "cpaas.io/project.parent": ""
         },
         "name": "cpaas",
         "resourceVersion": "41289584",
         "selfLink": "/apis/auth.alauda.io/v1/projects/cpaas",
         "uid": "9733309c-695e-4ea2-b2a4-8f96fd24ada1"
       },
       "spec": {
         "clusters": [
           {
             "name": "global",
             "quota": {
               "limits.cpu": "5",
               "limits.memory": "5Gi",
               "persistentvolumeclaims": "5",
               "pods": "5",
               "requests.cpu": "5",
               "requests.memory": "5Gi",
               "requests.storage": "5Gi"
             },
             "type": ""
           }
         ]
       },
       "status": {
         "phase": "Active",
         "version": "331f49118708aa89d6804ee90a5321d7"
       }
     }
   ],
   "kind": "ProjectList",
   "metadata": {
     "continue": "",
     "resourceVersion": "41390751",
     "selfLink": "/apis/auth.alauda.io/v1/projects"
   }
 }返回体说明
| 名称 | 类型 | 描述 | 
|---|---|---|
| apiVersion | string | 查看公共参数 | 
| items | array | 项目列表。 字段路径:items | 
| items[] | object | 字段路径:items[] | 
| items[].apiVersion | string | 查看公共参数 | 
| items[].kind | string | 查看公共参数 | 
| items[].metadata | object | 查看公共参数 | 
| items[].spec | object | 字段路径:items[].spec | 
| spec.clusters | array | Clusters 包含了关联到这个项目的所有集群。 字段路径:items[].spec.clusters | 
| spec.clusters[] | object | 字段路径:items[].spec.clusters[] | 
| clusters[].name | string | 集群的名称。 字段路径:items[].spec.clusters[].name | 
| clusters[].quota | object | 集群分配给项目的配额信息。 字段路径:items[].spec.clusters[].quota | 
| clusters[].type | string | 集群的类型。 字段路径:items[].spec.clusters[].type | 
| items[].status | object | 字段路径:items[].status | 
| status.phase | string | Phase 记录了项目的状态。 字段路径:items[].status.phase | 
| kind | string | 查看公共参数 | 
| metadata | object | 查看公共参数 |