Get the list of pods in namespace

Get the list of pods in namespace

get

Get a list of information, including the creation controller, node, and Pod IP, for the pods deployed in the namespace.

Query parameters
clusterIdsstringRequired
namespacesstringOptional
Responses
200
OK
*/*
get
GET /v1/monitoring-ns/metric/pod-list/result/current?clusterIds=text HTTP/1.1
Host: 
Accept: */*
200

OK

[
  {
    "metrics": {
      "cluster": "thingcluster",
      "creator": "nfd-worker",
      "creator-kind": "DaemonSet",
      "end-point": "http",
      "host_ip": "0.0.0.0",
      "instance": "0.0.0.0:8080",
      "namespace": "cocktail-system",
      "node": "apps-gpu-v100",
      "pod": "cocktail-api-cmdb-0",
      "pod-ip": "0.0.0.0"
    },
    "timestamp": 1687848360,
    "value": 1
  }
]

Was this helpful?