arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Get the list of pods in namespace

hashtag
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
chevron-right
200

OK

*/*
get
/v1/monitoring-ns/metric/pod-list/result/current
200

OK

GET /v1/monitoring-ns/metric/pod-list/result/current?clusterIds=text HTTP/1.1
Accept: */*
[
  {
    "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
  }
]