You need to enable JavaScript to run this app.
导航
获取 Pod 列表
最近更新时间:2023.10.11 10:11:22首次发布时间:2023.02.22 17:09:42

本接口用于获取工作负载在指定节点的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
      }
    ]
  }
}