arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Get cluster namespace service exposure list

hashtag
Get cluster namespace service exposure list

get

Get the list of exposed services in the specified cluster and namespace.

Path parameters
clusterIdstringRequired
namespaceNamestringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/namespaces/{namespaceName}/services
200

OK

GET /v1/clusters/{clusterId}/namespaces/{namespaceName}/services HTTP/1.1
Accept: */*
[
  {
    "annotations": {
      "meta.helm.sh/release-name": "cocktail",
      "meta.helm.sh/release-namespace": "cocktail-system"
    },
    "clusterIP": "0.0.0.0",
    "creationTimestamp": "2023-04-29 05:54:51",
    "internalLBFlag": false,
    "labels": {
      "app": "cocktail-api-cmdb",
      "app.kubernetes.io/instance": "cocktail",
      "app.kubernetes.io/managed-by": "Helm"
    },
    "namespace": "cocktail-system",
    "serviceName": "api-cmdb",
    "servicePorts": {
      "port": "0",
      "protocol": "TCP",
      "serviceUrl": "10.187.158.194:3306",
      "targetPort": "3306"
    },
    "sessionAffinity": "None",
    "type": "ClusterIP"
  }
]