本接口用于获取工作负载在指定节点的Pod列表。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListPods | 要执行的操作。取值:ListPods。 |
application_identity | String | 是 | veecc-4000252292242221**** | 边缘应用 ID。 |
cluster_name | String | 是 | zj**-test01 | 集群名称。 |
workload_identity | String | 是 | res-5222232524150520**** | 工作负载 ID。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
pods | [ ] PodResp | 请参见返回示例 | Pod列表。 |
GET https://veecc.volcengineapi.com/?Action=ListPods &application_identity=veecc-2712210221277290**** &cluster_name=zj**-test01 &workload_identity=res-5222232524150520**** &<公共请求参数>
{ "ResponseMetadata": { "RequestId": "202210251410420101742442080566****", "Action": "ListPods", "Version": "2022-10-01", "Service": "veecc", "Region": "cn-north-1" }, "Result": { "pods": [ { "name": "res-52222325241505201200-68dc69df57-n****", "status": "Running", "inner_ips": [ "172.**.**.82", "fc00::ac13:****" ], "restart_count": 0, "container_status": [ { "container_name": "pod123", "restart_count": 0, "ready": true, "reason": "Running(Ready)" } ], "start_time": 1672900990, "public_ips": null }, { "name": "res-52222325241505201200-68dc69d-****", "status": "Running", "inner_ips": [ "172.**.**.83", "fc00::ac13:****" ], "restart_count": 0, "container_status": [ { "container_name": "pod123", "restart_count": 0, "ready": true, "reason": "Running(Ready)" } ], "start_time": 1672900990, "public_ips": null } ] } }