查询资源池列表
更新时间:2025-10-24
描述
查询资源池列表。
请求结构
Plain Text
1GET ?action=DescribeResourcePools
2Host:aihc.bj.baidubce.com
3Authorization:authorization string
4ContentType: application/json
5version: v2
请求头域
除公共头域外,无其它特殊头域。
请求参数
| 参数名称 | 类型 | 是否必须 | 参数位置 | 说明 |
|---|---|---|---|---|
| resourcePoolType | String | 是 | Query 参数 | 资源池类型:1、通用资源池:common,2、托管资源池:dedicatedV2 |
| keywordType | String | 否 | Query 参数 | 资源池模糊查询字段,可选 [ resourcePoolName, resourcePoolId, ],默认值为 resourcePoolName |
| keyword | String | 否 | Query 参数 | 查询关键词,默认值为空字符串 |
| orderBy | String | 否 | Query 参数 | 资源池查询排序字段,可选 [ resourcePoolName, resourcePoolId, createdAt ],默认值为 resourcePoolName |
| order | String | 否 | Query 参数 | 排序方式,可选 [ ASC, DESC ], ASC 为升序,DESC 为降序,默认值为 ASC |
| pageNumber | Number | 否 | Query 参数 | 页码,默认值为1 |
| pageSize | Number | 否 | Query 参数 | 单页结果数,默认值为10 |
返回头域
除公共头域外,无其他特殊头域。
返回参数
| 参数名称 | 类型 | 说明 |
|---|---|---|
| keywordType | String | 资源池模糊查询字段 |
| keyword | String | 查询关键词,默认值为空字符串 |
| orderBy | String | 资源池查询排序字段,可选 [ resourcePoolName, resourcePoolId, createdAt ],默认值为 resourcePoolName |
| order | String | 排序方式,可选 [ ASC, DESC ], ASC 为升序,DESC 为降序,默认值为 ASC |
| pageNumber | Number | 页码,默认值为1 |
| pageSize | Number | 单页结果数,默认值为10 |
| totalCount | Number | 资源池列表总数 |
| resourcePools | List<ResourcePoolSpec> | 资源池摘要列表 |
返回示例
Plain Text
1{
2 "keywordType": "resourcePoolName",
3 "orderBy": "createdAt",
4 "order": "DESC",
5 "pageSize": 1,
6 "pageNumber": 1,
7 "totalCount": 4,
8 "resourcePools": [
9 {
10 "createdBy": "xiongyuzhu",
11 "resourcePoolId": "cce-fsjia104",
12 "type": "common",
13 "name": "xyz-test",
14 "region": "bj",
15 "configuration": {
16 "exposedPublic": false,
17 "forbidDelete": false,
18 "deschedulerEnabled": false,
19 "unifiedSchedulerEnabled": false,
20 "datasetPermissionEnabled": false,
21 "volumePermissionEnabled": false,
22 "imageNoAuthPullEnabled": false,
23 "publicNetInferenceServiceEnable": true
24 },
25 "createdAt": "2025-09-16T11:53:51+08:00",
26 "updatedAt": "2025-09-26T17:10:54+08:00",
27 "phase": "running",
28 "k8sVersion": "1.30.1",
29 "runtimeType": "containerd",
30 "runtimeVersion": "1.6.36-cce.1",
31 "associatedResources": [
32 {
33 "provider": "cce",
34 "id": "cce-fsjia104",
35 "region": "bj"
36 }
37 ],
38 "network": {
39 "mode": "vpc-eni",
40 "master": {
41 "region": "bj",
42 "vpcId": "vpc-d2mc0h3xuvuf",
43 "vpcCidr": "10.0.0.0/8",
44 "subnetIds": [
45 "sbn-y900qb0vpxc8"
46 ]
47 },
48 "nodes": {
49 "region": "bj",
50 "vpcId": "vpc-d2mc0h3xuvuf",
51 "vpcCidr": "10.0.0.0/8"
52 },
53 "pods": {
54 "region": "bj",
55 "vpcId": "vpc-d2mc0h3xuvuf",
56 "vpcCidr": "10.0.0.0/8",
57 "subnetIds": [
58 "sbn-y900qb0vpxc8"
59 ]
60 },
61 "clusterIPCidr": "172.16.0.0/16",
62 "loadBalanceService": {
63 "region": "bj",
64 "vpcId": "vpc-d2mc0h3xuvuf",
65 "vpcCidr": "10.0.0.0/8",
66 "subnetIds": [
67 "sbn-y900qb0vpxc8"
68 ]
69 },
70 "maxPodsPerNode": 256
71 },
72 "nodeNum": 4
73 }
74 ]
75}
