arrow-left

All pages
gitbookPowered by GitBook
1 of 44

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Get cluster details

Get cluster storage details

Get cluster configuration list

Get cluster namespace configmap list

Get cluster namespace Cronjobs list

Get cluster namespace HAPs list

Get cluster nodes list

Cluster

Get clusters listchevron-right
Get clusters status listchevron-right
Get cluster detailschevron-right
Get cluster nodes listchevron-right
Get cluster node detailschevron-right
Get cluster node events listchevron-right
Get cluster storage listchevron-right
Get cluster storage detailschevron-right
Get cluster ingress listchevron-right
Get cluster service exposures listchevron-right
Get cluster configuration listchevron-right
Get cluster workloads listchevron-right
Get cluster pods listchevron-right
Get cluster PVC listchevron-right
Get cluster CRD listchevron-right
Get cluster addon listchevron-right
Get cluster package listchevron-right
Get cluster namespace listchevron-right
Get cluster namespace detailschevron-right
Get cluster namespace ingress listchevron-right
Get cluster namespace ingress detailschevron-right
Get cluster namespace service exposure listchevron-right
Get cluster namespace service exposure detailschevron-right
Get cluster namespace configmap listchevron-right
Get cluster namespace configmap detailschevron-right
Get cluster namespace secret listchevron-right
Get cluster namespace secret detailschevron-right
Get cluster namespace PVC listchevron-right
Get cluster namespace PVC detailschevron-right
Get cluster namespace Cronjobs listchevron-right
Get cluster namespace Cronjob detailschevron-right
Get cluster namespace DaemonSets listchevron-right
Get cluster namespace DaemonSet detailschevron-right
Get cluster namespace Deployments listchevron-right
Get cluster namespace Deployment detailschevron-right
Get cluster namespace HAPs listchevron-right
Get cluster namespace Jobs listchevron-right
Get cluster namespace Job detailschevron-right
Get cluster namespace ReplicaSets listchevron-right
Get cluster namespace StatefulSets listchevron-right
Get cluster namespace StatefulSet detailschevron-right
Get cluster namespace pods logschevron-right
Get cluster namespace Container logchevron-right

Get cluster storage list

Get cluster node details

Get cluster ingress list

Get cluster PVC list

Get cluster CRD list

Get cluster service exposures list

Get clusters status list

Get cluster pods list

Get cluster node events list

Get clusters list

Get cluster workloads list

Get cluster namespace list

Get cluster namespace service exposure details

Get cluster namespace service exposure list

Get cluster addon list

Get cluster package list

Get cluster namespace ingress details

Get cluster namespace Cronjob details

Get cluster namespace Deployment details

Get cluster namespace secret details

Get cluster namespace details

Get cluster namespace PVC list

Get cluster namespace DaemonSets list

Get cluster namespace PVC details

Get cluster namespace Jobs list

Get cluster namespace DaemonSet details

Get cluster namespace configmap details

hashtag
Get cluster details

get

Get the cluster details.

Path parameters
clusterIdstringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}
200

OK

GET /v1/clusters/{clusterId} HTTP/1.1
Accept: */*
{
  "apiUrl": "https://0.0.0.0:0",
  "authType": "CERT",
  "clusterId": "thingcluster",
  "clusterName": "devops cluster",
  "clusterSeq": 1,
  "clusterState": "RUNNING",
  "countOfNamespace": 22,
  "countOfNode": 7,
  "countOfStaticVolume": 0,
  "countOfStorageClass": 2,
  "countOfVolume": 48,
  "created": "2022-12-16 08:16:50",
  "cubeType": "MANAGED",
  "description": "",
  "ingressSupported": "Y",
  "k8sVersion": "1.23.14",
  "loadbalancerSupported": "Y",
  "nodePortRange": "30000-32767",
  "nodePortSupported": "Y",
  "nodePortUrl": "0.0.0.0",
  "persistentVolumeSupported": "Y",
  "providerAccount": {
    "description": "",
    "providerCode": "IDC",
    "providerCodeName": "Datacenter",
    "providerName": "thingcluster",
    "seq": 1,
    "useType": "USER"
  },
  "regionCode": "KR",
  "updated": "2023-06-13 09:34:39",
  "useYn": "Y"
}

Get cluster namespace StatefulSets list

Get cluster namespace secret list

Get cluster namespace pods logs

Get cluster namespace Job details

Get cluster namespace ReplicaSets list

Get cluster namespace Container log

Get cluster namespace ingress list

Get cluster namespace Deployments list

Get cluster namespace StatefulSet details

hashtag
Get cluster storage details

get

Get the storage details of the cluster.

Path parameters
clusterIdstringRequired
storagesNamestringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/storages/{storageName}
200

OK

GET /v1/clusters/{clusterId}/storages/{storageName} HTTP/1.1
Accept: */*
{
  "annotations": {
    "cocktail-user-description": "bmZzLWNzaQ==",
    "meta.helm.sh/release-name": "default-storage",
    "meta.helm.sh/release-namespace": "kube-system"
  },
  "baseStorageYn": "Y",
  "description": "",
  "labes": {
    "acornsoft.io/provisioner-type": "NFS_CSI",
    "acornsoft.io/total-capacity": "1024",
    "acornsoft.io/type": "NETWORK"
  },
  "mountOptions": [
    "hard",
    "nfsvers=4.1"
  ],
  "name": "nfs-csi",
  "parameters": [
    {
      "name": "server",
      "value": "0.0.0.0"
    }
  ],
  "phase": "AVAILABLE",
  "plugin": "NFS_CSI",
  "provisionerName": "nfs.csi.k8s.io",
  "readOnlyManyYn": "Y",
  "readWriteManyYn": "Y",
  "readWriteOnceYn": "Y",
  "reclaimPolicy": "RETAIN",
  "storageClass": {
    "creationTimestamp": "2022-12-02 02:16:03",
    "deployment": "{\"apiVersion\":\"storage.k8s.io/v1\",\"kind\":\"StorageClass\"...",
    "deploymentYaml": "apiVersion: storage.k8s.io/v1\nkind: StorageClass\n...",
    "detail": {
      "annotations": {
        "cocktail-user-description": "bmZzLWNzaQ==",
        "meta.helm.sh/release-name": "default-storage",
        "meta.helm.sh/release-namespace": "kube-system"
      },
      "creationTime": "2022-12-02 02:16:03",
      "labels": {
        "acornsoft.io/provisioner-type": "NFS_CSI",
        "acornsoft.io/total-capacity": "1024",
        "acornsoft.io/type": "NETWORK"
      },
      "mountOptions": [
        "hard",
        "nfsvers=4.1"
      ],
      "name": "nfs-csi",
      "parameters": {
        "server": "0.0.0.0",
        "share": "/thingcluster"
      },
      "provisioner": "nfs.csi.k8s.io",
      "reclaimPolicy": "Retain",
      "volumeBindingMode": "Immediate"
    },
    "labes": {
      "acornsoft.io/provisioner-type": "NFS_CSI",
      "acornsoft.io/total-capacity": "1024",
      "acornsoft.io/type": "NETWORK"
    },
    "name": "nfs-csi",
    "parameters": [
      {
        "name": "server",
        "value": "0.0.0.0"
      }
    ],
    "provisioner": "nfs.csi.k8s.io"
  },
  "storageType": "NETWORK",
  "totalCapacity": 1024,
  "type": "PERSISTENT_VOLUME",
  "volumeBindingMode": "IMMEDIATE"
}

hashtag
Get cluster configuration list

get

Get the list of settings for that cluster.

Path parameters
clusterIdstringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/settings
200

OK

GET /v1/clusters/{clusterId}/settings HTTP/1.1
Accept: */*
[
  {
    "creationTimestamp": "2023-06-12 01:16:43",
    "name": "cocktail-api-cmdb",
    "namespaceName": "cocktail-system",
    "type": "ConfigMap"
  }
]

hashtag
Get cluster namespace configmap list

get

Get the list of ConfigMaps in the specified cluster and namespace.

Path parameters
clusterIdstringRequired
namespaceNamestringRequired
Responses
chevron-right
200

OK

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

OK

GET /v1/clusters/{clusterId}/namespaces/{namespaceName}/configmaps HTTP/1.1
Accept: */*
[
  {
    "annotations": {
      "meta.helm.sh/release-name": "cocktail",
      "meta.helm.sh/release-namespace": "cocktail-system"
    },
    "creationTimestamp": "2023-04-29 05:54:51",
    "description": "",
    "labels": {
      "app.kubernetes.io/instance": "cocktail",
      "app.kubernetes.io/managed-by": "Helm",
      "app.kubernetes.io/name": "api-cmdb"
    },
    "name": "cocktail-api-cmdb",
    "namespace": "cocktail-system"
  }
]

hashtag
Get cluster namespace Cronjobs list

get

Get the list of CronJobs in the specified cluster and namespace.

Path parameters
clusterIdstringRequired
namespaceNamestringRequired
Responses
chevron-right
200

OK

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

OK

GET /v1/clusters/{clusterId}/namespaces/{namespaceName}/cronjobs HTTP/1.1
Accept: */*
[
  {
    "activeJobCnt": 1,
    "creationTimestamp": "2023-06-14 09:30:39",
    "images": [
      "nginx:latest"
    ],
    "labels": {
      "app": "test"
    },
    "lastScheduleTime": "2023-06-14 09:31:00",
    "name": "cronjob",
    "namespace": "cocktail-system",
    "schedule": "* * * * *",
    "suspend": false
  }
]

hashtag
Get cluster namespace HAPs list

get

Get the list of HPA in the specified cluster and namespace.

Path parameters
clusterIdstringRequired
namespaceNamestringRequired
Responses
chevron-right
200

OK

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

OK

GET /v1/clusters/{clusterId}/namespaces/{namespaceName}/hpas HTTP/1.1
Accept: */*
[
  {
    "conditions": [
      {
        "lastTransitionTime": "2023-06-28 05:47:42",
        "message": "recent recommendations were higher than current one, applying the highest recent recommendation",
        "reason": "ScaleDownStabilized",
        "status": "True",
        "type": "AbleToScale"
      }
    ],
    "creationTimestamp": "2023-06-14 09:39:07",
    "deployment": "{\"apiVersion\":\"autoscaling/v2\",\"kind\":\"HorizontalPodAutoscaler\"...",
    "deploymentYaml": "apiVersion: autoscaling/v2\nkind: HorizontalPodAutoscaler\nmetadata...",
    "detail": {
      "creationTime": "2023-06-14 09:38:52",
      "currentReplicas": 1,
      "desiredReplicas": 1,
      "labels": {
        "app": "api-server-hpa"
      },
      "lastScaleTime": "2023-07-03 06:53:41",
      "maxReplicas": 3,
      "metrics": [
        {
          "currentAverageUtilization": 0,
          "currentAverageValue": "5m",
          "currentValue": "0",
          "metricType": "Resource",
          "name": "cpu",
          "targetAverageUtilization": 70,
          "targetType": "Utilization"
        }
      ],
      "minReplicas": 2,
      "name": "api-server-hpa",
      "namespace": "cocktail-system",
      "target": "Deployment: cocktail-api-server"
    },
    "maxReplicas": 3,
    "metrics": [
      {
        "currentAverageUtilization": 0,
        "currentAverageValue": "5m",
        "currentValue": 1,
        "metricType": "Resource",
        "name": "cpu",
        "targetAverageUtilization": 70,
        "targetType": "Utilization"
      }
    ],
    "minReplicas": 2,
    "name": "api-server-hpa",
    "namespace": "cocktail-system",
    "scaleTargetRef": {
      "apiVersion": "apps/v1",
      "kind": "Deployment",
      "name": "cocktail-api-server"
    },
    "startTime": "2023-06-28 05:47:26"
  }
]

hashtag
Get cluster storage list

get

Get the storage list of the cluster.

Path parameters
clusterIdstringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/storages
200

OK

GET /v1/clusters/{clusterId}/storages HTTP/1.1
Accept: */*
[
  {
    "annotations": {
      "cocktail-user-description": "bmZzLWNzaQ==",
      "meta.helm.sh/release-name": "default-storage",
      "meta.helm.sh/release-namespace": "kube-system"
    },
    "baseStorageYn": "Y",
    "description": "",
    "labels": {
      "acornsoft.io/provisioner-type": "NFS_CSI",
      "acornsoft.io/total-capacity": "1024",
      "acornsoft.io/type": "NETWORK"
    },
    "mountOptions": [
      "hard",
      "nfsvers=4.1"
    ],
    "name": "nfs-csi",
    "parameters": [
      {
        "name": "server",
        "value": "0.0.0.0"
      }
    ],
    "phase": "AVAILABLE",
    "plugin": "NFS_CSI",
    "provisionerName": "nfs.csi.k8s.io",
    "readOnlyManyYn": "Y",
    "readWriteManyYn": "Y",
    "readWriteOnceYn": "Y",
    "reclaimPolicy": "RETAIN",
    "storageType": "NETWORK",
    "totalCapacity": 1024,
    "type": "PERSISTENT_VOLUME",
    "volumeBindingMode": "IMMEDIATE"
  }
]

hashtag
Get cluster nodes list

get

Get the list of cluster nodes.

Path parameters
clusterIdstringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/nodes
200

OK

GET /v1/clusters/{clusterId}/nodes HTTP/1.1
Accept: */*
[
  {
    "allocatedCpu": 48,
    "allocatedEphemeralStorage": 0,
    "allocatedMemory": 200903610368,
    "allocatedPods": "110",
    "cpuCapacity": 48,
    "creationTimestamp": "2022-12-02 02:33:48",
    "ephemeralStorageCapacity": 48294789041,
    "gpuCapacity": 2,
    "memoryCapacity": 201008467968,
    "name": "apps-gpu-v100",
    "podCapacity": 110,
    "ready": "True"
  }
]

hashtag
Get cluster ingress list

get

Get the ingress list of the cluster.

Path parameters
clusterIdstringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/ingresses
200

OK

hashtag
Get cluster service exposures list

get

Get the list of service exposures for that cluster.

Path parameters
clusterIdstringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/services
GET /v1/clusters/{clusterId}/services HTTP/1.1
Accept: */*
200

OK

GET /v1/clusters/{clusterId}/ingresses 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-cmd",
    "servicePorts": [
      {
        "port": "0",
        "protocol": "TCP",
        "serviceUrl": "0.0.0.0:0",
        "targetPort": "0"
      }
    ],
    "sessionAffinity": "None",
    "type": "ClusterIP"
  }
]
[
  {
    "annotations": {
      "nginx.ingress.kubernetes.io/ssl-redirect": "false"
    },
    "creationTimestamp": "2023-01-12 08:33:06",
    "endpoints": [
      "0.0.0.0"
    ],
    "ingressControllerName": "nginx",
    "labes": {
      "app": "api"
    },
    "name": "api",
    "namespace": "cocktail-system"
  }
]

hashtag
Get cluster PVC list

get

Get the list of volume request list of the cluster.

Path parameters
clusterIdstringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/persistentvolumeclaims
200

OK

hashtag
Get cluster pods list

get

Get the list of the cluster.

Path parameters
clusterIdstringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/pods
200

OK

hashtag
Get clusters status list

get

Get the status of all clusters.

Responses
chevron-right
200

OK

*/*
get
/v1/clusters/conditions
GET /v1/clusters/conditions HTTP/1.1
Accept: */*
200

OK

GET /v1/clusters/{clusterId}/persistentvolumeclaims HTTP/1.1
Accept: */*
GET /v1/clusters/{clusterId}/pods HTTP/1.1
Accept: */*
[
  {
    "account": {
      "accountCode": "DEVOPS",
      "accountName": "DEVOPS",
      "accountSeq": 1,
      "accountType": "ENT",
      "baseLanguage": "ko",
      "concurrentSessionYn": "Y",
      "description": "",
      "organizationName": "DEVOPS",
      "userAuthType": "PLAIN"
    },
    "apiUrl": "https://0.0.0.0:0",
    "authType": "CERT",
    "clusterId": "thingcluster",
    "clusterName": "devops cluster",
    "clusterSeq": 1,
    "clusterState": "RUNNING",
    "created": "2022-12-16 08:16:50",
    "cubeType": "MANAGED",
    "description": "",
    "ingressSupported": "Y",
    "k8sVersion": "1.23.14",
    "loadbalancerSupported": "N",
    "nodePortRange": "30000-32767",
    "nodePortSupported": "Y",
    "nodePortUrl": "0.0.0.0",
    "persistentVolumeSupported": "Y",
    "providerAccount": {
      "description": "",
      "providerCode": "IDC",
      "providerCodeName": "Datacenter",
      "providerName": "thingcluster",
      "seq": 1,
      "useType": "USER"
    },
    "regionCode": "Default",
    "updated": "2023-06-13 09:34:39",
    "useYn": "Y"
  }
]
[
  {
    "accessModes": [
      "ReadWriteOnce"
    ],
    "annotations": {
      "meta.helm.sh/release-name": "cocktail",
      "meta.helm.sh/release-namespace": "cocktail-system",
      "pv.kubernetes.io/bind-completed": "yes"
    },
    "capacity": {
      "storage": "20Gi"
    },
    "creationTimestamp": "2023-04-29 05:54:54",
    "labels": {
      "app.kubernetes.io/instance": "cocktail",
      "app.kubernetes.io/managed-by": "Helm",
      "app.kubernetes.io/name": "api-cmdb"
    },
    "name": "cocktail-api-cmdb-logdata",
    "namespace": "cocktail-system",
    "persistentVolumeType": "SHARED",
    "status": "Bound",
    "storageClassName": "nfs-csi",
    "volumeName": "pvc-1eaa501f-b51a-42a0-8304-9e3b5c151482"
  }
]
[
  {
    "annotations": {
      "cni.projectcalico.org/containerID": "2869a9d6ccd7a53fc8fdccda05168581a99115ffacd7beb834d816e2ab2ee6e7",
      "cni.projectcalico.org/podIP": "0.0.0.0/0",
      "cni.projectcalico.org/podIPs": "0.0.0.0/0"
    },
    "labes": {
      "app": "api-cmdb",
      "app.kubernetes.io/instance": "cocktail",
      "app.kubernetes.io/managed-by": "Helm"
    },
    "namespace": "cocktail-system",
    "nodeName": "apps-gpu-v100",
    "podName": "cocktail-api-cmdb-0",
    "podStatus": "Running",
    "restartCnt": 0,
    "startTime": "2023-05-01 09:20:09"
  }
]

hashtag
Get cluster CRD list

get

Get the CRD list of the cluster.

Path parameters
clusterIdstringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/crds
200

OK

hashtag
Get clusters list

get

Get the list of clusters.

Responses
chevron-right
200

OK

*/*
get
/v1/clusters
200

OK

hashtag
Get cluster node events list

get

Return the cluster node event list.

Path parameters
clusterIdstringRequired
nodeNamestringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/nodes/{nodeName}/event
200

OK

GET /v1/clusters/{clusterId}/crds HTTP/1.1
Accept: */*
GET /v1/clusters HTTP/1.1
Accept: */*
GET /v1/clusters/{clusterId}/nodes/{nodeName}/event HTTP/1.1
Accept: */*
[
  {
    "acceptedNames": {
      "categories": [
        "istio-io",
        "networking-istio-io"
      ],
      "kind": "Gateway",
      "listKind": "GatewayList",
      "plural": "gateways",
      "shortNames": [
        "gw"
      ],
      "singular": "gateway"
    },
    "annotations": {
      "helm.sh/resource-policy": "keep"
    },
    "creationTimestamp": "2022-12-02 08:42:46",
    "fullName": "gateways.networking.istio.io",
    "group": "networking.istio.io",
    "labes": {
      "app": "istio-pilot",
      "chart": "istio",
      "heritage": "Tiller",
      "release": "istio"
    },
    "name": "gateways",
    "scope": "Namespaced",
    "storedVersion": "v1alpha3",
    "versions": [
      {
        "name": "v1alpha3",
        "served": true,
        "storage": true
      }
    ]
  }
]
[
  {
    "apiUrl": "https://0.0.0.0:0",
    "authType": "CERT",
    "clusterId": "thingcluster",
    "clusterName": "devops cluster",
    "clusterSeq": 1,
    "clusterState": "RUNNING",
    "created": "2022-12-16 08:16:50",
    "cubeType": "MANAGED",
    "description": "",
    "ingressSupported": "Y",
    "k8sVersion": "1.23.14",
    "loadbalancerSupported": "N",
    "nodePortRange": "30000-32767",
    "nodePortSupported": "Y",
    "nodePortUrl": "0.0.0.0",
    "persistentVolumeSupported": "Y",
    "providerAccountSeq": 1,
    "regionCode": "Default",
    "updated": "2023-06-13 09:34:39",
    "useYn": "Y"
  }
]
[
  {
    "count": 1,
    "deployment": "",
    "deploymentYaml": "",
    "firstTime": "2023-04-29 05:54:51",
    "involvedObject": {
      "apiVersion": "",
      "fieldPath": "",
      "kind": "",
      "name": "",
      "namespace": "cocktail-system",
      "resourceVersion": "",
      "uid": ""
    },
    "kind": "",
    "lastTime": "2023-04-29 05:54:53",
    "message": "",
    "name": "",
    "namespace": "cocktail-system",
    "related": {
      "apiVersion": "",
      "fieldPath": "",
      "kind": "",
      "name": "",
      "namespace": "cocktail-system",
      "resourceVersion": "",
      "uid": ""
    },
    "source": "",
    "subObject": ""
  }
]

hashtag
Get cluster namespace list

get

Get the namespace list for that cluster.

Path parameters
clusterIdstringRequired
Responses
chevron-right
200

OK

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

OK

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

hashtag
Get cluster namespace ingress details

get

Get detailed information for the Ingress in the specified cluster and namespace.

Path parameters
clusterIdstringRequired
namespaceNamestringRequired
ingressNamestringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/namespaces/{namespaceName}/ingresses/{ingressName}
200

OK

GET /v1/clusters/{clusterId}/namespaces HTTP/1.1
Accept: */*
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"
    },
    "creationTimestamp": "2022-12-02 06:21:35",
    "labels": {
      "istio-injection": "disabled",
      "kubernetes.io/metadata.name": "cocktail-system"
    },
    "name": "cocktail-system",
    "status": "Active"
  }
]
[
  {
    "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"
  }
]
GET /v1/clusters/{clusterId}/namespaces/{namespaceName}/ingresses/{ingressName} HTTP/1.1
Accept: */*
{
  "creationTimestamp": "2023-06-15 07:52:17",
  "deployment": "{\"apiVersion\":\"networking.k8s.io/v1\"...",
  "deploymentYaml": "apiVersion: v1\nkind: Node\nmetadata...",
  "detail": {
    "annotations": {
      "nginx.ingress.kubernetes.io/ssl-redirect": "false"
    },
    "creationTimestamp": "2023-01-12 08:33:06",
    "labels": {
      "app": "api"
    },
    "name": "api",
    "namespace": "cocktail-system"
  },
  "endpoints": [
    "0.0.0.0"
  ],
  "ingressSpec": {
    "annotations": {
      "nginx.ingress.kubernetes.io/ssl-redirect": "false"
    },
    "ingressControllerName": "nginx",
    "labels": {
      "app": "api"
    },
    "name": "api",
    "namespaceName": "cocktail-system",
    "rules": [
      {
        "host": {
          "type": "string",
          "example": "devops-api.acloud.run"
        },
        "paths": {
          "type": "array",
          "description": "Path list",
          "items": {
            "type": "object",
            "example": {
              "path": "/v1",
              "pathType": "ImplementationSpecific",
              "serviceName": "api-gateway",
              "servicePort": "8081",
              "servicePortIsInteger": true
            }
          }
        }
      }
    ],
    "tls": [
      {
        "hosts": [
          "devops-api.acloud.run"
        ],
        "secretName": "acloudrun-tls"
      }
    ],
    "useSslRedirect": false
  },
  "name": "api",
  "namespace": "cocktail-system"
}

hashtag
Get cluster namespace Cronjob details

get

Get detailed information for CronJob in the specified cluster and namespace.

Path parameters
clusterIdstringRequired
namespaceNamestringRequired
cronJobNamestringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/namespaces/{namespaceName}/cronjobs/{cronJobName}
200

OK

hashtag
Get cluster addon list

get

Get the list of Addons for that cluster.

Path parameters
clusterIdstringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/addons
200

OK

hashtag
Get cluster package list

get

Get the list of packages in the cluster.

Path parameters
clusterIdstringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/packages
200

OK

hashtag
Get cluster namespace Deployment details

get

Get detailed information for Deployment in the specified cluster and namespace.

Path parameters
clusterIdstringRequired
namespaceNamestringRequired
deploymentNamestringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/namespaces/{namespaceName}/deployments/{deploymentName}
200

OK

hashtag
Get cluster namespace PVC details

get

Get detailed information for PVC in the specified cluster and namespace.

Path parameters
clusterIdstringRequired
namespaceNamestringRequired
pvcNamestringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/namespaces/{namespaceName}/persistentvolumeclaims/{pvcName}
200

OK

hashtag
Get cluster namespace DaemonSet details

get

Get detailed information for DaemonSet in the specified cluster and namespace.

Path parameters
clusterIdstringRequired
namespaceNamestringRequired
daemonSetNamestringRequired

hashtag
Get cluster namespace DaemonSets list

get

Get the list of DaemonSets in the specified cluster and namespace.

Path parameters
clusterIdstringRequired
namespaceNamestringRequired
Responses
chevron-right
200

OK

*/*

hashtag
Get cluster namespace PVC list

get

Get cluster namespace PVC details.

Path parameters
clusterIdstringRequired
namespaceNamestringRequired

hashtag
Get cluster namespace secret details

get

Get detailed information for the Secret in the specified cluster and namespace.

Path parameters
clusterIdstringRequired
namespaceNamestringRequired
secretNamestringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/namespaces/{namespaceName}/daemonsets/{daemonSetName}
200

OK

get
/v1/clusters/{clusterId}/namespaces/{namespaceName}/daemonsets
GET /v1/clusters/{clusterId}/namespaces/{namespaceName}/daemonsets HTTP/1.1
Accept: */*
200

OK

Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/namespaces/{namespaceName}/persistentvolumeclaims
GET /v1/clusters/{clusterId}/namespaces/{namespaceName}/persistentvolumeclaims HTTP/1.1
Accept: */*
200

OK

Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/namespaces/{namespaceName}/secrets/{secretName}
200

OK

GET /v1/clusters/{clusterId}/addons HTTP/1.1
Accept: */*
GET /v1/clusters/{clusterId}/packages HTTP/1.1
Accept: */*
GET /v1/clusters/{clusterId}/namespaces/{namespaceName}/daemonsets/{daemonSetName} HTTP/1.1
Accept: */*
[
  {
    "creationTimestamp": "2023-06-21 06:41:56",
    "deployment": "{\"apiVersion\":\"apps/v1\",\"kind\":\"DaemonSet\"...",
    "deploymentYaml": "apiVersion: apps/v1\nkind: DaemonSet\nmetadata:\n...",
    "desiredPodCnt": 7,
    "detail": {
      "annotations": {
        "deprecated.daemonset.template.generation": "5",
        "meta.helm.sh/release-name": "promtail",
        "meta.helm.sh/release-namespace": "cocktail-system"
      },
      "creationTime": "2023-06-21 06:41:56",
      "labels": {
        "app.kubernetes.io/instance": "promtail",
        "app.kubernetes.io/managed-by": "Helm",
        "app.kubernetes.io/name": "promtail"
      },
      "minReadySeconds": 0,
      "name": "promtail",
      "namespace": "cocktail-system",
      "podTemplate": {
        "annotations": {
          "checksum/config": "c0bfd056325ee83005df0c32ca6018bdcd2e31066846277781c9b68dfe1f9b88"
        },
        "labels": {
          "app.kubernetes.io/instance": "promtail",
          "app.kubernetes.io/name": "promtail"
        },
        "spec": {
          "conditions": [],
          "detail": {
            "containers": [
              {
                "args": [
                  "-config.file=/etc/promtail/promtail.yaml"
                ],
                "environmentVariables": {
                  "HOSTNAME": "{\"apiVersion\":\"v1\",\"fieldPath\":\"spec.nodeName\"}"
                },
                "image": "101.55.69.30/docker.io/grafana/promtail:2.7.4",
                "imagePullPolicy": "IfNotPresent",
                "name": "promtail",
                "resources": {},
                "restartCount": 0,
                "volumeMounts": {
                  "applications": "{\"mountPath\":\"/var/log/applications\",\"name\":\"applications\"}",
                  "audit": "{\"mountPath\":\"/var/log/kubernetes\",\"name\":\"audit\",\"readOnly\":true}",
                  "config": "{\"mountPath\":\"/etc/promtail\",\"name\":\"config\"}",
                  "containers": "{\"mountPath\":\"/var/log/containers\",\"name\":\"containers\",\"readOnly\":true}",
                  "cricontainers": "{\"mountPath\":\"/var/lib/containerd/io.containerd.grpc.v1.cri/containers\",\"name\":\"cricontainers\",\"readOnly\":true}",
                  "pods": "{\"mountPath\":\"/var/log/pods\",\"name\":\"pods\",\"readOnly\":true}",
                  "run": "{\"mountPath\":\"/run/promtail\",\"name\":\"run\"}"
                }
              }
            ],
            "initContainers": [],
            "restartPolicy": "Always",
            "serviceAccountName": "promtail",
            "terminationGracePeriodSeconds": 30,
            "tolerations": [
              {
                "operator": "Exists"
              }
            ]
          },
          "podStatus": "Pending",
          "restartCnt": 0
        }
      },
      "revisionHistoryLimit": "10",
      "rollingUpdate": {
        "maxSurge": 0,
        "maxUnavailable": 1
      },
      "selector": {
        "matchLabels": {
          "app.kubernetes.io/instance": "promtail",
          "app.kubernetes.io/name": "promtail"
        }
      },
      "status": {
        "available": 7,
        "current": 7,
        "desired": 7,
        "ready": 7,
        "up-to-date": 7
      },
      "strategy": "RollingUpdate"
    },
    "images": [
      "101.55.69.30/docker.io/grafana/promtail:2.7.4"
    ],
    "labels": {
      "app.kubernetes.io/instance": "promtail",
      "app.kubernetes.io/managed-by": "Helm",
      "app.kubernetes.io/name": "promtail"
    },
    "name": "promtail",
    "namespace": "cocktail-system",
    "readyPodCnt": 7
  }
]
[
  {
    "creationTimestamp": "2023-06-21 06:41:56",
    "desiredPodCnt": 7,
    "images": [
      "101.55.69.30/docker.io/grafana/promtail:2.7.4"
    ],
    "labels": {
      "app.kubernetes.io/instance": "promtail",
      "app.kubernetes.io/managed-by": "Helm",
      "app.kubernetes.io/name": "promtail"
    },
    "name": "promtail",
    "namespace": "cocktail-system",
    "readyPodCnt": 7
  }
]
[
  {
    "accessModes": [
      "ReadWriteMany"
    ],
    "capacity": {
      "storage": "20Gi"
    },
    "creationTimestamp": "2023-04-29 05:54:51",
    "name": "cocktail-api-cmdb-logdata",
    "namespace": "cocktail-system",
    "persistentVolumeType": "SHARED",
    "status": "Bound",
    "storageClassName": "nfs-csi",
    "volumeName": "pvc-1eaa501f-b51a-42a0-8304-9e3b5c151482"
  }
]
GET /v1/clusters/{clusterId}/namespaces/{namespaceName}/secrets/{secretName} HTTP/1.1
Accept: */*
{
  "annotations": {
    "meta.helm.sh/release-name": "cocktail",
    "meta.helm.sh/release-namespace": "cocktail-system"
  },
  "creationTimestamp": "2023-04-29 05:54:51",
  "data": {
    "BUILDER_DB_PASSWORD": "",
    "BUILDER_DB_USER": "",
    "COCKTAIL_DB_PASSWORD": ""
  },
  "deployment": "{\"apiVersion\":\"v1\",\"data\"...",
  "deploymentYaml": "apiVersion: v1\nkind: Secret\nmetadata:\n...",
  "description": "",
  "labels": {
    "app.kubernetes.io/instance": "cocktail",
    "app.kubernetes.io/managed-by": "Helm",
    "app.kubernetes.io/name": "api-cmdb"
  },
  "name": "cocktail-api-cmdb",
  "namespace": "cocktail-system",
  "type": "Generic"
}
GET /v1/clusters/{clusterId}/namespaces/{namespaceName}/cronjobs/{cronJobName} HTTP/1.1
Accept: */*
[
  {
    "activeJobCnt": 1,
    "creationTimestamp": "2023-06-14 09:30:39",
    "deployment": "{\"apiVersion\":\"batch/v1\",\"kind\":\"CronJob\"...",
    "deploymentYaml": "apiVersion: batch/v1\nkind: CronJob\nmetadata:\n...",
    "detail": {
      "activeJobs": [
        {
          "completionPodCnt": 0,
          "creationTimestamp": "2023-07-04 06:38:00",
          "deployment": "{\"apiVersion\":\"batch/v1\",\"kind\":\"Job\",\"metadata\"",
          "deploymentYaml": "apiVersion: batch/v1\nkind: Job\nmetadata:\n",
          "desiredPodCnt": 1,
          "detail": {
            "annotations": {
              "sidecar.istio.io/inject": "false"
            },
            "backoffLimit": 6,
            "completions": 1,
            "creationTime": "2023-07-04 06:38:00",
            "labels": {
              "app": "cronjob"
            },
            "name": "cronjob-28140878",
            "namespace": "cocktail-system",
            "ownerReferences": [
              {
                "apiVersion": "batch/v1",
                "blockOwnerDeletion": true,
                "controller": true,
                "kind": "CronJob",
                "name": "cronjob",
                "uid": "c86a8fcc-7ecc-4445-a72f-cb272b7074a9"
              }
            ],
            "parallelism": 1,
            "podTemplate": {
              "annotations": {
                "cocktail-deploy-datetime": "2023-06-14 01:21:02.598",
                "kubectl.kubernetes.io/restartedAt": "2023-06-14T01:28:04Z"
              },
              "labels": {
                "app": "cronjob",
                "controller-uid": "ba7b126d-b790-4152-a77e-b410da5f4fd7",
                "job-name": "cronjob-28140878"
              },
              "spec": {
                "conditions": [],
                "detail": {
                  "containers": [
                    {
                      "image": "nginx:latest",
                      "imagePullPolicy": "Always",
                      "name": "nginx",
                      "resources": {
                        "cpu": {
                          "limit": "200m",
                          "request": "100m"
                        },
                        "memory": {
                          "limit": "209715200",
                          "request": "104857600"
                        }
                      },
                      "restartCount": 0,
                      "volumeMounts": {
                        "a": "{\"mountPath\":\"/data\",\"name\":\"a\"}",
                        "b": "{\"mountPath\":\"/data2\",\"name\":\"b\"}",
                        "c": "{\"mountPath\":\"/data3\",\"name\":\"c\"}"
                      }
                    }
                  ],
                  "initContainers": [],
                  "restartPolicy": "OnFailure",
                  "terminationGracePeriodSeconds": 30
                },
                "podStatus": "Pending",
                "restartCnt": 0
              }
            },
            "selector": {
              "matchLabels": {
                "controller-uid": "ba7b126d-b790-4152-a77e-b410da5f4fd7"
              }
            },
            "status": {
              "Failed": 0,
              "Running": 1,
              "Succeeded": 0
            }
          },
          "images": [
            "nginx:latest"
          ],
          "labels": {
            "app": "cronjob"
          },
          "name": "cronjob-28140878",
          "namespace": "cocktail-system"
        }
      ],
      "annotations": {
        "acornsoft.io/workload-group-no": "53",
        "cocktail-deploy-datetime": "2023-06-14 09:30:39.002",
        "cocktail-user-description": "Lg=="
      },
      "backoffLimit": 3,
      "completions": 1,
      "concurrencyPolicy": "Allow",
      "creationTimestamp": "2023-06-14 09:30:39",
      "failedJobsHistoryLimit": 1,
      "labels": {
        "app": "cronjob"
      },
      "lastScheduleTime": "2023-07-04 06:38:00",
      "name": "cronjob",
      "namespace": "cocktail-system",
      "parallelism": 1,
      "podTemplate": {
        "annotations": {
          "cocktail-deploy-datetime": "2023-06-14 01:21:02.598",
          "kubectl.kubernetes.io/restartedAt": "2023-06-14T01:28:04Z"
        },
        "labels": {
          "app": "test2"
        },
        "spec": {
          "conditions": [],
          "detail": {
            "containers": [
              {
                "image": "nginx:latest",
                "imagePullPolicy": "Always",
                "name": "nginx",
                "resources": {
                  "cpu": {
                    "limit": "200m",
                    "request": "100m"
                  },
                  "memory": {
                    "limit": "209715200",
                    "request": "104857600"
                  }
                },
                "restartCount": 0,
                "volumeMounts": {
                  "a": "{\"mountPath\":\"/data\",\"name\":\"a\"}",
                  "b": "{\"mountPath\":\"/data2\",\"name\":\"b\"}",
                  "c": "{\"mountPath\":\"/data3\",\"name\":\"c\"}"
                }
              }
            ],
            "initContainers": [],
            "restartPolicy": "OnFailure",
            "terminationGracePeriodSeconds": 30
          },
          "podStatus": "Pending",
          "restartCnt": 0
        }
      },
      "schedule": "* * * * *",
      "successfulJobsHistoryLimit": 3,
      "suspend": false
    },
    "images": [
      "nginx:latest"
    ],
    "labels": {
      "app": "cronjob"
    },
    "lastScheduleTime": "2023-07-04 06:38:00",
    "name": "cronjob",
    "namespace": "cocktail-system",
    "schedule": "* * * * *",
    "suspend": false
  }
]
[
  {
    "annotations": {
      "cocktail-user-description": ""
    },
    "creationTimestamp": "2023-06-20 04:08:00",
    "data": {
      "addon.yaml": "kubelet:\n  enabled: true\n  namespace: cocktail-system\nkubeControllerManager...",
      "appVersion": "4.7.3",
      "autoUpdate": "Y",
      "error": "",
      "registeredCocktails": "[\"zgq0ng\"]",
      "releaseNamespace": "cocktail-addon",
      "repository": "cocktail-addon",
      "update_at": "2023-06-20T04:08:23Z",
      "useYn": "Y",
      "version": "1.6.9"
    },
    "description": "",
    "labels": {
      "agent": "agent",
      "chart": "addon-manager",
      "release-id": "addon-manager",
      "status": "deployed"
    },
    "name": "addon-manager",
    "namespace": "cocktail-addon"
  }
]
[
  {
    "appVersion": "4.7.3",
    "chartName": "cocktail",
    "chartVersion": "4.7.4",
    "info": {
      "deleted": "0001-01-01 00:00:00 +0000 UTC",
      "description": "",
      "firstDeployed": "2023-04-29 05:54:50.086853557 +0000 UTC",
      "icon": "",
      "lastDeployed": "2023-04-29 06:04:37.924985116 +0000 UTC",
      "notes": "",
      "readme": "",
      "status": "deployed"
    },
    "name": "cocktail",
    "namespace": "cocktail-system",
    "revision": "2"
  }
]
GET /v1/clusters/{clusterId}/namespaces/{namespaceName}/deployments/{deploymentName} HTTP/1.1
Accept: */*
[
  {
    "conditions": [
      {
        "lastHeartbeatTime": "2023-05-02 07:12:02",
        "lastTransitionTime": "2023-05-02 07:12:02",
        "message": "Deployment has minimum availability.",
        "reason": "MinimumReplicasAvailable",
        "status": "True",
        "type": "Available"
      }
    ],
    "creationTimestamp": "2023-05-02 07:12:02",
    "deployment": "{\"apiVersion\":\"apps/v1\",\"kind\":\"Deployment\"...",
    "deploymentYaml": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n...",
    "desiredPodCnt": 1,
    "detail": {
      "annotations": {
        "acornsoft.io/workload-group-no": "12",
        "cocktail-deploy-datetime": "2023-06-28 08:10:52.898",
        "cocktail-user-description": ""
      },
      "creationTime": "2023-05-02 01:45:53",
      "labels": {
        "app": "api",
        "app.kubernetes.io/managed-by": "Helm",
        "chart": "api-1.0.0"
      },
      "minReadySeconds": 0,
      "name": "cocktail-log-api",
      "namespace": "cocktail-system",
      "podTemplate": {
        "annotations": {
          "kubectl.kubernetes.io/restartedAt": "2023-06-28T08:10:52Z"
        },
        "labels": {
          "app.kubernetes.io/app": "cocktail-log-api",
          "app.kubernetes.io/instance": "cocktail-log",
          "app.kubernetes.io/name": "api",
          "chart": "api-1.0.0",
          "heritage": "Helm"
        },
        "spec": {
          "conditions": [],
          "detail": {
            "containers": [
              {
                "environmentVariables": {
                  "APPLICATION_SCRAPE_JOB": "{\"key\":\"APPLICATION_SCRAPE_JOB\",\"name\":\"cocktail-log-api\"}",
                  "AUDIT_SCRAPE_JOB": "{\"key\":\"AUDIT_SCRAPE_JOB\",\"name\":\"cocktail-log-api\"}",
                  "COCKTAIL_API_SERVER": "http://api-server:8080",
                  "CONTAINER_SCRAPE_JOB": "{\"key\":\"CONTAINER_SCRAPE_JOB\",\"name\":\"cocktail-log-api\"}",
                  "LOGGING_FILE_PATH": "/var/log/app/monitoring.log",
                  "LOGGING_FILE_USE": "true",
                  "LOGGING_LEVEL": "debug",
                  "LOKI_ENABLED": "true",
                  "LOKI_SERVER_URL": "http://cocktail-logs-loki-distributed-gateway.cocktail-apm",
                  "SERVICE_PORT": "9100"
                },
                "image": "regi.acloud.run/library/log-api:1.3.0",
                "imagePullPolicy": "Always",
                "name": "api",
                "resources": {
                  "cpu": {
                    "limit": "5",
                    "request": "100m"
                  },
                  "memory": {
                    "limit": "5242880k",
                    "request": "134217728"
                  }
                },
                "restartCount": 0,
                "volumeMounts": {
                  "app-volume": "{\"mountPath\":\"/var/log/app\",\"name\":\"app-volume\",\"subPath\":\"cocktail-log-api\"}",
                  "loki-cert": "{\"mountPath\":\"/etc/loki/cert\",\"name\":\"loki-cert\"}"
                }
              }
            ],
            "imagePullSecrets": [
              {
                "name": "devops-cocktail-t4f1hevxvkmv"
              }
            ],
            "initContainers": [],
            "restartPolicy": "Always",
            "terminationGracePeriodSeconds": 30
          },
          "podStatus": "Pending",
          "restartCnt": 0
        }
      },
      "replicas": 1,
      "revisionHistoryLimit": "10",
      "rollingUpdate": {
        "maxSurge": "25%",
        "maxUnavailable": "25%"
      },
      "selector": {
        "matchLabels": {
          "app.kubernetes.io/app": "cocktail-log-api",
          "app.kubernetes.io/instance": "cocktail-log",
          "app.kubernetes.io/name": "api"
        }
      },
      "status": {
        "available": 1,
        "total": 1,
        "unavailable": 0,
        "updated": 1
      },
      "strategy": "RollingUpdate"
    },
    "images": [
      "regi.acloud.run/library/log-api:1.3.0"
    ],
    "labels": {
      "app": "api",
      "app.kubernetes.io/managed-by": "Helm",
      "chart": "api-1.0.0"
    },
    "matchLabels": {
      "app.kubernetes.io/app": "cocktail-log-api",
      "app.kubernetes.io/instance": "cocktail-log",
      "app.kubernetes.io/name": "api"
    },
    "name": "cocktail-log-api",
    "namespace": "cocktail-system",
    "newReplicaSets": [
      {
        "creationTimestamp": "2023-06-28 08:10:52",
        "deployment": "{\"metadata\":{\"annotations\":{\"acornsoft.io/workload-group-no\":\"12\",\"cocktail-deploy-datetime...",
        "deploymentYaml": "metadata:\n  annotations:\n    acornsoft.io/workload-group-no: '12'\n    cocktail-deploy-datetime...",
        "desiredPodCnt": 1,
        "detail": {
          "annotations": {
            "acornsoft.io/workload-group-no": "12",
            "cocktail-deploy-datetime": "2023-06-28 08:10:52.898",
            "cocktail-user-description": "",
            "deployment.kubernetes.io/desired-replicas": "1",
            "deployment.kubernetes.io/max-replicas": "2",
            "deployment.kubernetes.io/revision": "88",
            "meta.helm.sh/release-name": "cocktail-log",
            "meta.helm.sh/release-namespace": "cocktail-system"
          },
          "creationTime": "2023-06-28 08:10:52",
          "images": [
            "regi.acloud.run/library/log-api:1.3.0"
          ],
          "labels": {
            "app.kubernetes.io/app": "cocktail-log-api",
            "app.kubernetes.io/instance": "cocktail-log",
            "app.kubernetes.io/name": "api",
            "chart": "api-1.0.0",
            "heritage": "Helm",
            "pod-template-hash": "9d5bcff4"
          },
          "name": "cocktail-log-api-9d5bcff4",
          "namespace": "cocktail-system",
          "ownerReferences": [
            {
              "apiVersion": "apps/v1",
              "blockOwnerDeletion": true,
              "controller": true,
              "kind": "Deployment",
              "name": "cocktail-log-api",
              "uid": "85f52a56-52e7-4289-8777-25f8c78d60e5"
            }
          ],
          "podTemplate": {
            "annotations": {
              "kubectl.kubernetes.io/restartedAt": "2023-06-28T08:10:52Z"
            },
            "labels": {
              "app.kubernetes.io/app": "cocktail-log-api",
              "app.kubernetes.io/instance": "cocktail-log",
              "app.kubernetes.io/name": "api",
              "chart": "api-1.0.0",
              "heritage": "Helm",
              "pod-template-hash": "9d5bcff4"
            },
            "spec": {
              "conditions": [],
              "detail": {
                "containers": [
                  {
                    "environmentVariables": {
                      "APPLICATION_SCRAPE_JOB": "{\"key\":\"APPLICATION_SCRAPE_JOB\",\"name\":\"cocktail-log-api\"}",
                      "AUDIT_SCRAPE_JOB": "{\"key\":\"AUDIT_SCRAPE_JOB\",\"name\":\"cocktail-log-api\"}",
                      "COCKTAIL_API_SERVER": "http://api-server:8080",
                      "CONTAINER_SCRAPE_JOB": "{\"key\":\"CONTAINER_SCRAPE_JOB\",\"name\":\"cocktail-log-api\"}",
                      "LOGGING_FILE_PATH": "/var/log/app/monitoring.log",
                      "LOGGING_FILE_USE": "true",
                      "LOGGING_LEVEL": "debug",
                      "LOKI_ENABLED": "true",
                      "LOKI_SERVER_URL": "http://cocktail-logs-loki-distributed-gateway.cocktail-apm",
                      "SERVICE_PORT": "9100"
                    },
                    "image": "regi.acloud.run/library/log-api:1.3.0",
                    "imagePullPolicy": "Always",
                    "name": "api",
                    "resources": {
                      "cpu": {
                        "limit": "5",
                        "request": "100m"
                      },
                      "memory": {
                        "limit": "5242880k",
                        "request": "134217728"
                      }
                    },
                    "restartCount": 0,
                    "volumeMounts": {
                      "app-volume": "{\"mountPath\":\"/var/log/app\",\"name\":\"app-volume\",\"subPath\":\"cocktail-log-api\"}",
                      "loki-cert": "{\"mountPath\":\"/etc/loki/cert\",\"name\":\"loki-cert\"}"
                    }
                  }
                ],
                "imagePullSecrets": [
                  {
                    "name": "devops-cocktail-t4f1hevxvkmv"
                  }
                ],
                "initContainers": [],
                "restartPolicy": "Always",
                "terminationGracePeriodSeconds": 30
              },
              "podStatus": "Pending",
              "restartCnt": 0
            }
          },
          "pods": {
            "running": 1
          },
          "podsStatus": {},
          "selector": {
            "matchLabels": {
              "app.kubernetes.io/app": "cocktail-log-api",
              "app.kubernetes.io/instance": "cocktail-log",
              "app.kubernetes.io/name": "api",
              "heritage": "Helm",
              "pod-template-hash": "9d5bcff4"
            }
          }
        },
        "images": [
          "regi.acloud.run/library/log-api:1.3.0"
        ],
        "labels": {
          "app.kubernetes.io/app": "cocktail-log-api",
          "app.kubernetes.io/instance": "cocktail-log",
          "app.kubernetes.io/name": "api"
        },
        "name": "cocktail-log-api-9d5bcff4",
        "namespace": "cocktail-system",
        "readyPodCnt": 1
      }
    ],
    "readyPodCnt": 1
  }
]
GET /v1/clusters/{clusterId}/namespaces/{namespaceName}/persistentvolumeclaims/{pvcName} HTTP/1.1
Accept: */*
{
  "accessModes": [
    "ReadWriteMany"
  ],
  "capacity": {
    "storage": "20Gi"
  },
  "clusterVolume": {
    "annotations": {
      "cocktail-user-description": "bmZzLWNzaQ==",
      "meta.helm.sh/release-name": "default-storage",
      "meta.helm.sh/release-namespace": "kube-system"
    },
    "baseStorageYn": "Y",
    "description": "",
    "labels": {
      "acornsoft.io/provisioner-type": "NFS_CSI",
      "acornsoft.io/total-capacity": "1024",
      "acornsoft.io/type": "NETWORK"
    },
    "mountOptions": [
      "hard",
      "nfsvers=4.1"
    ],
    "name": "nfs-csi",
    "parameters": [
      {
        "name": "server",
        "value": "0.0.0.0"
      }
    ],
    "phase": "AVAILABLE",
    "plugin": "NFS_CSI",
    "provisionerName": "nfs.csi.k8s.io",
    "readOnlyManyYn": "Y",
    "readWriteManyYn": "Y",
    "readWriteOnceYn": "Y",
    "reclaimPolicy": "RETAIN",
    "storageType": "NETWORK",
    "totalCapacity": 1024,
    "type": "PERSISTENT_VOLUME",
    "volumeBindingMode": "IMMEDIATE"
  },
  "creationTimestamp": "2023-04-29 05:54:51",
  "deployment": "{\"apiVersion\":\"v1\",\"kind\":\"PersistentVolumeClaim\"...",
  "deploymentYaml": "apiVersion: v1\nkind: PersistentVolumeClaim\nmetadata:...",
  "detail": {
    "accessModes": [
      "ReadWriteMany"
    ],
    "annotations": {
      "meta.helm.sh/release-name": "cocktail",
      "meta.helm.sh/release-namespace": "cocktail-system",
      "pv.kubernetes.io/bind-completed": "yes"
    },
    "capacity": {
      "storage": "20Gi"
    },
    "creationTimestamp": "2023-04-29 05:54:51",
    "labels": {
      "app.kubernetes.io/instance": "cocktail",
      "app.kubernetes.io/managed-by": "Helm",
      "app.kubernetes.io/name": "api-cmdb"
    },
    "name": "cocktail-api-cmdb-logdata",
    "namespace": "cocktail-system",
    "status": "Bound",
    "storageClassName": "nfs-csi",
    "volumeName": "pvc-1eaa501f-b51a-42a0-8304-9e3b5c151482"
  },
  "name": "cocktail-api-cmdb-logdata",
  "namespace": "cocktail-system",
  "persistentVolume": {
    "accessModes": [
      "ReadWriteMany"
    ],
    "capacity": {
      "storage": "20Gi"
    },
    "claimName": "cocktail-api-cmdb-logdata",
    "claimNameWithNamespace": "cocktail-system/cocktail-api-cmdb-logdata",
    "creationTimestamp": "2023-04-29 05:54:51",
    "deployment": "{\"apiVersion\":\"v1\",\"kind\":\"PersistentVolume...",
    "deploymentYaml": "apiVersion: v1\nkind: PersistentVolume\nmetadata...",
    "detail": {
      "accessModes": [
        "ReadWriteMany"
      ],
      "annotations": {
        "pv.kubernetes.io/provisioned-by": "nfs.csi.k8s.io",
        "volume.kubernetes.io/provisioner-deletion-secret-name": "",
        "volume.kubernetes.io/provisioner-deletion-secret-namespace": ""
      },
      "capacity": {
        "storage": "20Gi"
      },
      "claimName": "cocktail-system/cocktail-api-cmdb-logdata",
      "creationTime": "2023-04-29 05:54:51",
      "events": [
        {
          "message": "",
          "source": "",
          "subObject": "",
          "count": 0,
          "firstTime": "2023-04-29 05:54:51",
          "lastTime": "2023-04-29 05:54:51",
          "kind": "",
          "name": "",
          "namespace": "",
          "involvedObject": {
            "apiVersion": "",
            "fieldPath": "",
            "kind": "",
            "name": "",
            "namespace": "",
            "resourceVersion": "",
            "uid": ""
          },
          "related": {
            "apiVersion": "",
            "fieldPath": "",
            "kind": "",
            "name": "",
            "namespace": "",
            "resourceVersion": "",
            "uid": ""
          },
          "deployment": "",
          "deploymentYaml": ""
        }
      ],
      "labels": {
        "app.kubernetes.io/instance": "cocktail",
        "app.kubernetes.io/managed-by": "Helm",
        "app.kubernetes.io/name": "api-cmdb"
      },
      "name": "pvc-1eaa501f-b51a-42a0-8304-9e3b5c151482",
      "persistentVolumeReclaimPolicy": "Retain",
      "status": "Bound",
      "StatusMessage": "",
      "statusReason": "",
      "storageClassName": "nfs-csi",
      "volumeMode": "",
      "volumeSource": "{\"csi\":{\"driver\":\"nfs.csi.k8s.io\",\"volumeAttributes\":..."
    },
    "name": "pvc-1eaa501f-b51a-42a0-8304-9e3b5c151482",
    "persistentVolumeReclaimPolicy": "Retain",
    "status": "Bound",
    "storageClassName": "nfs-csi"
  },
  "persistentVolumeType": "SHARED",
  "serverParams": [
    {
      "containerVolumes": [
        {
          "containerName": "api-cmdb",
          "containerPath": "/var/log/mysql",
          "subPath": "api-cmdb",
          "useMemoryYn": "N",
          "volumeName": "log"
        }
      ],
      "namespaceName": "cocktail-system",
      "serverName": "cocktail-api-cmdb"
    }
  ],
  "status": "Bound",
  "storageClassName": "nfs-csi",
  "volumeName": "pvc-1eaa501f-b51a-42a0-8304-9e3b5c151482"
}

hashtag
Get cluster namespace details

get

Get the namespace details of the cluster.

Path parameters
clusterIdstringRequired
namespaceNamestringRequired
Responses
chevron-right
200

OK

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

OK

hashtag
Get cluster namespace Jobs list

get

Get the list of Jobs in the specified cluster and namespace.

Path parameters
clusterIdstringRequired
namespaceNamestringRequired
Responses
chevron-right
200

OK

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

OK

hashtag
Get cluster namespace pods logs

get

Get the list of Pods in the specified cluster and namespace..

Path parameters
clusterIdstringRequired
namespaceNamestringRequired
Responses
chevron-right
200

OK

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

OK

hashtag
Get cluster namespace Job details

get

Get detailed information for Job in the specified cluster and namespace.

Path parameters
clusterIdstringRequired
namespaceNamestringRequired
jobNamestringRequired

Error while loading OpenAPI operation — Can’t find supported Swagger/OpenAPI version in the provided document, version must be a string.

Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/namespaces/{namespaceName}/jobs/{jobName}
200

OK

GET /v1/clusters/{clusterId}/namespaces/{namespaceName} HTTP/1.1
Accept: */*
GET /v1/clusters/{clusterId}/namespaces/{namespaceName}/jobs HTTP/1.1
Accept: */*
GET /v1/clusters/{clusterId}/namespaces/{namespaceName}/pods HTTP/1.1
Accept: */*
GET /v1/clusters/{clusterId}/namespaces/{namespaceName}/jobs/{jobName} HTTP/1.1
Accept: */*
[
  {
    "completionPodCnt": 1,
    "creationTimestamp": "2023-05-15 09:45:06",
    "deployment": "{\"apiVersion\":\"batch/v1\",\"kind\":\"Job\"...",
    "deploymentYaml": "apiVersion: batch/v1\nkind: Job\nmetadata:\n...",
    "desiredPodCnt": 1,
    "detail": {
      "annotations": {
        "helm.sh/hook": "pre-upgrade",
        "helm.sh/hook-delete-policy": "before-hook-creation",
        "helm.sh/hook-weight": "10"
      },
      "backoffLimit": 3,
      "completions": 1,
      "creationTime": "2023-05-15 09:45:06",
      "labels": {
        "app.kubernetes.io/instance": "cocktail-system",
        "app.kubernetes.io/managed-by": "Helm",
        "app.kubernetes.io/name": "cocktail-system"
      },
      "name": "cocktail-system-crd-upgrader-job-k8ssandra",
      "namespace": "cocktail-system",
      "parallelism": 1,
      "podTemplate": {
        "labels": {
          "app.kubernetes.io/instance": "cocktail-system",
          "app.kubernetes.io/managed-by": "Helm",
          "app.kubernetes.io/name": "cocktail-system",
          "app.kubernetes.io/part-of": "k8ssandra-cocktail-system-cocktail-system",
          "controller-uid": "60ccf04f-8999-474e-a38b-61633fcbaa39",
          "helm.sh/chart": "cocktail-system-1.6.1",
          "job-name": "cocktail-system-crd-upgrader-job-k8ssandra"
        },
        "spec": {
          "conditions": [],
          "cpuUsage": 0,
          "detail": {
            "containers": [
              {
                "args": [
                  "-upgradecrds",
                  "--targetVersion",
                  "1.6.1",
                  "--chartName",
                  "cocktail-system"
                ],
                "environmentVariables": {
                  "POD_NAMESPACE": "{\"apiVersion\":\"v1\",\"fieldPath\":\"metadata.namespace\"}"
                },
                "image": "docker.io/k8ssandra/k8ssandra-tools:latest",
                "imagePullPolicy": "IfNotPresent",
                "name": "crd-upgrade-job-k8ssandra",
                "resources": {},
                "restartCount": 0
              }
            ],
            "initContainers": [],
            "restartPolicy": "OnFailure",
            "serviceAccountName": "cocktail-system-crd-upgrader-k8ssandra",
            "terminationGracePeriodSeconds": 30
          },
          "memUsage": 0,
          "podStatus": "Pending",
          "restartCnt": 0
        }
      },
      "selector": {
        "matchLabels": {
          "controller-uid": "60ccf04f-8999-474e-a38b-61633fcbaa39"
        }
      },
      "status": {
        "Failed": 0,
        "Running": 0,
        "Succeeded": 1
      }
    },
    "images": [
      "docker.io/k8ssandra/k8ssandra-tools:latest"
    ],
    "labels": {
      "app.kubernetes.io/instance": "cocktail-system",
      "app.kubernetes.io/managed-by": "Helm",
      "app.kubernetes.io/name": "cocktail-system"
    },
    "name": "cocktail-system-crd-upgrader-job-k8ssandra",
    "namespace": "cocktail-system"
  }
]
{
  "annotations": {
    "meta.helm.sh/release-name": "cocktail",
    "meta.helm.sh/release-namespace": "cocktail-system"
  },
  "creationTimestamp": "2022-12-02 06:21:35",
  "deployment": "{\"apiVersion\":\"v1\",\"kind\":\"Namespace\"...",
  "deploymentYaml": "apiVersion: v1\nkind: Node\nmetadata...",
  "detail": {
    "annotations": {
      "meta.helm.sh/release-name": "cocktail",
      "meta.helm.sh/release-namespace": "cocktail-system"
    },
    "creationTimestamp": "2022-12-02 06:21:35",
    "labels": {
      "istio-injection": "disabled",
      "kubernetes.io/metadata.name": "cocktail-system"
    },
    "name": "cocktail-system",
    "status": "Active"
  },
  "labels": {
    "istio-injection": "disabled",
    "kubernetes.io/metadata.name": "cocktail-system"
  },
  "name": "cocktail-system",
  "status": "Active"
}
[
  {
    "completionPodCnt": 1,
    "creationTimestamp": "2023-05-15 09:45:06",
    "desiredPodCnt": 1,
    "images": [
      "docker.io/k8ssandra/k8ssandra-tools:latest"
    ],
    "labels": {
      "app.kubernetes.io/instance": "k8ssandra-operator",
      "app.kubernetes.io/managed-by": "Helm",
      "app.kubernetes.io/name": "k8ssandra-operator"
    },
    "name": "k8ssandra-operator-crd-upgrader-job-k8ssandra",
    "namespace": "cocktail-system"
  }
]
[
  {
    "conditions": [
      {
        "lastTransitionTime": "22023-05-01 09:20:19",
        "status": "True",
        "type": "Initialized"
      }
    ],
    "detail": {
      "annotations": {
        "cni.projectcalico.org/containerID": "2869a9d6ccd7a53fc8fdccda05168581a99115ffacd7beb834d816e2ab2ee6e7",
        "cni.projectcalico.org/podIP": "0.0.0.0/0",
        "cni.projectcalico.org/podIPs": "0.0.0.0/0"
      },
      "containers": [
        {
          "args": [
            "mysqld",
            "--general-log=1",
            "--general-log-file=/var/log/mysql/mysql.log",
            "--slow-query-log=1",
            "--slow-query-log-file=/var/log/mysql/mysql-slow.log"
          ],
          "containerID": "containerd://6b87d5769493be45af8a48e97f5bab7ae7cfe8cc4e39d7d2b15ebda3a79da2eb",
          "environmentVariables": {
            "MYSQL_PASSWORD_FILE": "/temp-secret/COCKTAIL_DB_PASSWORD",
            "MYSQL_ROOT_PASSWORD_FILE": "/temp-secret/DB_ROOT_PASSWORD",
            "MYSQL_USER": "{\"key\":\"COCKTAIL_DB_USER\",\"name\":\"cocktail-api-cmdb\"}"
          },
          "image": "101.55.69.30/library/api-cmdb:4.7.4-release.20230413",
          "imageID": "101.55.69.30/library/api-cmdb@sha256:30eea53896de7b26d9f9e8e6903d3706ddbe77ceda5b2bb6807f1da10e231c63",
          "imagePullPolicy": "Always",
          "lastState": "{}",
          "name": "api-cmdb",
          "ready": true,
          "resources": {
            "cpu": {
              "limit": "1",
              "request": "500m"
            },
            "memory": {
              "limit": "2Gi",
              "request": "1Gi"
            }
          },
          "restartCount": 0,
          "startTime": "2023-05-01 09:20:19",
          "state": "{\"running\":{\"startedAt\":\"2023-05-01T09:20:19.000000Z\"}}",
          "volumeMounts": {
            "config": "{\"mountPath\":\"/usr/sbin/ping.sh\",\"name\":\"config\",\"subPath\":\"ping.sh\"}",
            "kube-api-access-cts42": "{\"mountPath\":\"/var/run/secrets/kubernetes.io/serviceaccount\",\"name\":\"kube-api-access-cts42\",\"readOnly\":true}",
            "log": "{\"mountPath\":\"/var/log/mysql\",\"name\":\"log\",\"subPath\":\"api-cmdb\"}",
            "log-rotate": "{\"mountPath\":\"/etc/cron.d/mysql-server-crond\",\"name\":\"log-rotate\",\"subPath\":\"mysql-server-crond\"}",
            "mysqldata": "{\"mountPath\":\"/var/lib/mysql/\",\"name\":\"mysqldata\",\"subPath\":\"data\"}",
            "temp-secret": "{\"mountPath\":\"/temp-secret\",\"name\":\"temp-secret\"}"
          }
        }
      ],
      "creationTimestamp": "2023-05-01 09:20:09",
      "hostname": "cocktail-api-cmdb-0",
      "initContainers": [
        {
          "commands": [
            "/usr/sbin/init_api_cmdb.sh"
          ],
          "containerID": "containerd://9e5d154acc5e85e9db8b829266afe37c2c36a3e0b707187f0905e98769eab07f",
          "image": "101.55.69.30/library/api-cmdb:4.7.4-release.20230413",
          "imageID": "101.55.69.30/library/api-cmdb@sha256:30eea53896de7b26d9f9e8e6903d3706ddbe77ceda5b2bb6807f1da10e231c63",
          "imagePullPolicy": "Always",
          "lastState": "{}",
          "name": "init",
          "ready": true,
          "resources": {
            "cpu": {
              "limit": "20m",
              "request": "20m"
            },
            "memory": {
              "limit": "50Mi",
              "request": "50Mi"
            }
          },
          "restartCount": 0,
          "startTime": "2023-05-01 09:20:16",
          "state": "{\"terminated\":{\"containerID\":\"containerd://9e5d154acc5e85e9db8b829266afe37c2c36a3e0b707187f0905e98769eab07f\",\"exitCode\":0,\"finishedAt\":\"2023-05-01T09:20:18.000000Z\",\"reason\":\"Completed\",\"startedAt\":\"2023-05-01T09:20:16.000000Z\"}}",
          "volumeMounts": {
            "cocktail-secret": "{\"mountPath\":\"/cocktail-secret\",\"name\":\"cocktail-secret\"}",
            "init": "{\"mountPath\":\"/usr/sbin\",\"name\":\"init\"}",
            "kube-api-access-cts42": "{\"mountPath\":\"/var/run/secrets/kubernetes.io/serviceaccount\",\"name\":\"kube-api-access-cts42\",\"readOnly\":true}",
            "log": "{\"mountPath\":\"/var/log/mysql\",\"name\":\"log\",\"subPath\":\"api-cmdb\"}",
            "temp-secret": "{\"mountPath\":\"/temp-secret\",\"name\":\"temp-secret\"}"
          }
        }
      ],
      "labels": {
        "app": "api-cmdb",
        "app.kubernetes.io/instance": "cocktail",
        "app.kubernetes.io/managed-by": "Helm"
      },
      "namespace": "cocktail-system",
      "nodeName": "apps-gpu-v100",
      "ownerReferences": [
        {
          "apiVersion": "apps/v1",
          "blockOwnerDeletion": true,
          "controller": true,
          "kind": "StatefulSet",
          "name": "cocktail-api-cmdb",
          "uid": "cd832df7-397a-4f17-9e38-0fc0f3f5baa0"
        }
      ],
      "podIP": "0.0.0.0",
      "podName": "cocktail-api-cmdb-0",
      "podStatus": "Running",
      "qosClass": "Burstable",
      "restartPolicy": "Always",
      "serviceAccountName": "default",
      "startTime": "2023-05-01 09:20:09",
      "terminationGracePeriodSeconds": 60,
      "tolerations": [
        {
          "effect": "NoExecute",
          "key": "node.kubernetes.io/not-ready",
          "operator": "Exists",
          "tolerationSeconds": 30
        }
      ]
    },
    "namespace": "cocktail-system",
    "nodeName": "apps-gpu-v100",
    "podName": "cocktail-api-cmdb-0",
    "podStatus": "Running",
    "restartCnt": 0,
    "startTime": "2023-05-01 09:20:09"
  }
]

hashtag
Get cluster namespace configmap details

get

Get detailed information for the ConfigMap in the specified cluster and namespace.

Path parameters
clusterIdstringRequired
namespaceNamestringRequired
configmapNamestringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/namespaces/{namespaceName}/configmaps/{configmapName}
200

OK

hashtag
Get cluster namespace secret list

get

Get the list of Secrets in the specified cluster and namespace.

Path parameters
clusterIdstringRequired
namespaceNamestringRequired
Responses
chevron-right
200

OK

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

OK

GET /v1/clusters/{clusterId}/namespaces/{namespaceName}/secrets HTTP/1.1
Accept: */*
GET /v1/clusters/{clusterId}/namespaces/{namespaceName}/configmaps/{configmapName} HTTP/1.1
Accept: */*
{
  "annotations": {
    "meta.helm.sh/release-name": "cocktail",
    "meta.helm.sh/release-namespace": "cocktail-system"
  },
  "creationTimestamp": "2023-04-29 05:54:51",
  "data": {
    "my.cnf": "[{\"name\":\"cocktail-addon/addon-manager\",\"version\":\"1.6.9\"...",
    "ping.sh": "#!/bin/bash\nmysqladmin --defaults-extra-file=/scripts/.my.cnf ping\n"
  },
  "deployment": "{\"apiVersion\":\"v1\",\"data\":{\"my.cnf\":\"[client]...",
  "deploymentYaml": "apiVersion: v1\nkind: ConfigMap\nmetadata...",
  "description": "",
  "labels": {
    "app.kubernetes.io/instance": "cocktail",
    "app.kubernetes.io/managed-by": "Helm",
    "app.kubernetes.io/name": "api-cmdb"
  },
  "name": "cocktail-api-cmdb",
  "namespace": "cocktail-system"
}
[
  {
    "creationTimestamp": "2023-04-29 05:54:51",
    "description": "",
    "labels": {
      "app.kubernetes.io/instance": "cocktail",
      "app.kubernetes.io/managed-by": "Helm",
      "app.kubernetes.io/name": "api-cmdb"
    },
    "name": "cocktail-api-cmdb",
    "namespace": "cocktail-system",
    "type": "Generic"
  }
]

hashtag
Get cluster namespace StatefulSets list

get

Get the list of StatefulSets in the specified cluster and namespace.

Path parameters
clusterIdstringRequired
namespaceNamestringRequired
Responses
chevron-right
200

OK

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

OK

GET /v1/clusters/{clusterId}/namespaces/{namespaceName}/statefulsets HTTP/1.1
Accept: */*
[
  {
    "creationTimestamp": "2023-04-29 05:54:54",
    "desiredPodCnt": 1,
    "images": [
      "101.55.69.30/library/api-cmdb:4.7.4-release.20230413"
    ],
    "labels": {
      "app.kubernetes.io/instance": "cocktail",
      "app.kubernetes.io/managed-by": "Helm",
      "app.kubernetes.io/name": "api-cmdb"
    },
    "name": "cocktail-api-cmdb",
    "namespace": "cocktail-system",
    "readyPodCnt": 1
  }
]

hashtag
Get cluster namespace Container log

get

Get the logs of Containers in the specified cluster and namespace.

Path parameters
clusterIdstringRequired
namespaceNamestringRequired
podNamestringRequired
Query parameters
typestringRequired

Log Retrieval Method(tail or since)

countstringOptional

The number of lines to read when the type is 'tail' (up to 10,000).

sinceSecondsstringOptional

Return logs from before the value in seconds

Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/namespaces/{namespaceName}/pods/{podName}/containers/log
200

OK

hashtag
Get cluster namespace ReplicaSets list

get

Get the list of ReplicaSets in the specified cluster and namespace.

Path parameters
clusterIdstringRequired
namespaceNamestringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/namespaces/{namespaceName}/replicaset
GET /v1/clusters/{clusterId}/namespaces/{namespaceName}/replicaset HTTP/1.1
Accept: */*
200

OK

[
  {
    "creationTimestamp": "2023-06-28 08:10:52",
    "desiredPodCnt": 1,
    "images": [
      "regi.acloud.run/library/log-api:1.3.0"
    ],
    "labels": {
      "app.kubernetes.io/app": "cocktail-log-api",
      "app.kubernetes.io/instance": "cocktail-log",
      "app.kubernetes.io/name": "api"
    },
    "name": "cocktail-log-api-9d5bcff4",
    "namespace": "cocktail-system",
    "ownerReferences": [
      {
        "apiVersion": "apps/v1",
        "blockOwnerDeletion": true,
        "controller": true,
        "kind": "Deployment",
        "name": "cocktail-log-api",
        "uid": "85f52a56-52e7-4289-8777-25f8c78d60e5"
      }
    ],
    "readyPodCnt": 1
  }
]
GET /v1/clusters/{clusterId}/namespaces/{namespaceName}/pods/{podName}/containers/log?type=text HTTP/1.1
Accept: */*
[
  {
    "containerName": "api-cmdb",
    "log": "2023-07-03  8:44:55 571828 [Warning] Aborted connection 571828 to db: 'acloud' user: 'root' host: '127.0.0.1' (Got timeout reading communication packets)\n...",
    "podName": "cocktail-api-cmdb-0"
  }
]

Error while loading OpenAPI operation — Can’t find supported Swagger/OpenAPI version in the provided document, version must be a string.

Error while loading OpenAPI operation — Can’t find supported Swagger/OpenAPI version in the provided document, version must be a string.

hashtag
Get cluster namespace Deployments list

get

Get the list of Deployments in the specified cluster and namespace.

Path parameters
clusterIdstringRequired
namespaceNamestringRequired
Responses
chevron-right
200

OK

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

OK

hashtag
Get cluster namespace ingress list

get

Get the list of Ingresses in the specified cluster and namespace.

Path parameters
clusterIdstringRequired
namespaceNamestringRequired
Responses
chevron-right
200

OK

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

OK

hashtag
Get cluster namespace StatefulSet details

get

Get detailed information for StatefulSet in the specified cluster and namespace.

Path parameters
clusterIdstringRequired
namespaceNamestringRequired
statefulSetNamestringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/clusters/{clusterId}/namespaces/{namespaceName}/statefulsets/{statefulSetName}
200

OK

GET /v1/clusters/{clusterId}/namespaces/{namespaceName}/deployments HTTP/1.1
Accept: */*
GET /v1/clusters/{clusterId}/namespaces/{namespaceName}/ingresses HTTP/1.1
Accept: */*
[
  {
    "conditions": [
      {
        "lastHeartbeatTime": "2023-05-02 07:12:02",
        "lastTransitionTime": "2023-05-02 07:12:02",
        "message": "Deployment has minimum availability.",
        "reason": "MinimumReplicasAvailable",
        "status": "True",
        "type": "Available"
      }
    ],
    "creationTimestamp": "2023-05-02 07:12:02",
    "desiredPodCnt": 1,
    "images": [
      "regi.acloud.run/library/log-api:1.3.0"
    ],
    "labels": {
      "app": "api",
      "app.kubernetes.io/managed-by": "Helm",
      "chart": "api-1.0.0"
    },
    "matchLabels": {
      "app.kubernetes.io/app": "cocktail-log-api",
      "app.kubernetes.io/instance": "cocktail-log",
      "app.kubernetes.io/name": "api"
    },
    "name": "cocktail-log-api",
    "namespace": "cocktail-system",
    "readyPodCnt": 1
  }
]
[
  {
    "annotations": {
      "nginx.ingress.kubernetes.io/ssl-redirect": "false"
    },
    "creationTimestamp": "2023-01-12 08:33:06",
    "endpoints": [
      "0.0.0.0"
    ],
    "ingressControllerName": "nginx",
    "labels": {
      "app": "api"
    },
    "name": "api",
    "namespace": "cocktail-system"
  }
]
GET /v1/clusters/{clusterId}/namespaces/{namespaceName}/statefulsets/{statefulSetName} HTTP/1.1
Accept: */*
[
  {
    "creationTimestamp": "2023-04-29 05:54:54",
    "deployment": "{\"apiVersion\":\"apps/v1\",\"kind\":\"StatefulSet\"...",
    "deploymentYaml": "apiVersion: apps/v1\nkind: StatefulSet\n...",
    "desiredPodCnt": 1,
    "detail": {
      "annotations": {
        "acornsoft.io/workload-group-no": "11",
        "meta.helm.sh/release-name": "cocktail",
        "meta.helm.sh/release-namespace": "cocktail-system"
      },
      "creationTime": "2023-04-29 05:54:54",
      "labels": {
        "app.kubernetes.io/instance": "cocktail",
        "app.kubernetes.io/managed-by": "Helm",
        "app.kubernetes.io/name": "api-cmdb"
      },
      "name": "cocktail-api-cmdb",
      "namespace": "cocktail-system",
      "podManagementPolicy": "OrderedReady",
      "podTemplate": {
        "labels": {
          "app": "api-cmdb",
          "app.kubernetes.io/instance": "cocktail",
          "app.kubernetes.io/managed-by": "Helm"
        },
        "spec": {
          "conditions": [],
          "detail": {
            "containers": [
              {
                "args": [
                  "mysqld",
                  "--general-log=1",
                  "--general-log-file=/var/log/mysql/mysql.log"
                ],
                "environmentVariables": {
                  "MYSQL_PASSWORD_FILE": "/temp-secret/COCKTAIL_DB_PASSWORD",
                  "MYSQL_ROOT_PASSWORD_FILE": "/temp-secret/DB_ROOT_PASSWORD",
                  "MYSQL_USER": "{\"key\":\"COCKTAIL_DB_USER\",\"name\":\"cocktail-api-cmdb\"}"
                },
                "image": "101.55.69.30/library/api-cmdb:4.7.4-release.20230413",
                "imagePullPolicy": "Always",
                "name": "api-cmdb",
                "resources": {
                  "cpu": {
                    "limit": "1",
                    "request": "500m"
                  },
                  "memory": {
                    "limit": "2Gi",
                    "request": "1Gi"
                  }
                },
                "restartCount": 0,
                "volumeMounts": {
                  "config": "{\"mountPath\":\"/usr/sbin/ping.sh\",\"name\":\"config\",\"subPath\":\"ping.sh\"}",
                  "log": "{\"mountPath\":\"/var/log/mysql\",\"name\":\"log\",\"subPath\":\"api-cmdb\"}",
                  "log-rotate": "{\"mountPath\":\"/etc/cron.d/mysql-server-crond\",\"name\":\"log-rotate\",\"subPath\":\"mysql-server-crond\"}"
                }
              }
            ],
            "initContainers": [
              {
                "commands": [
                  "/usr/sbin/init_api_cmdb.sh"
                ],
                "image": "101.55.69.30/library/api-cmdb:4.7.4-release.20230413",
                "imagePullPolicy": "Always",
                "name": "init",
                "resources": {
                  "cpu": {
                    "limit": "20m",
                    "request": "20m"
                  },
                  "memory": {
                    "limit": "50Mi",
                    "request": "50Mi"
                  }
                },
                "restartCount": 0,
                "volumeMounts": {
                  "cocktail-secret": "{\"mountPath\":\"/cocktail-secret\",\"name\":\"cocktail-secret\"}",
                  "init": "{\"mountPath\":\"/usr/sbin\",\"name\":\"init\"}",
                  "log": "{\"mountPath\":\"/var/log/mysql\",\"name\":\"log\",\"subPath\":\"api-cmdb\"}",
                  "temp-secret": "{\"mountPath\":\"/temp-secret\",\"name\":\"temp-secret\"}"
                }
              }
            ],
            "restartPolicy": "Always",
            "terminationGracePeriodSeconds": 60
          },
          "podStatus": "Pending",
          "restartCnt": 0
        }
      },
      "replicas": 1,
      "revisionHistoryLimit": "10",
      "rollingUpdate": {
        "partition": 0
      },
      "selector": {
        "matchLabels": {
          "app": "api-cmdb"
        }
      },
      "status": {
        "collisionCount": 0,
        "current": 1,
        "ready": 1,
        "replicas": 1,
        "updated": 1
      },
      "strategy": "RollingUpdate",
      "volumeClaimTemplates": [
        {
          "accessModes": [
            "ReadWriteOnce"
          ],
          "capacity": {
            "storage": "30Gi"
          },
          "name": "mysqldata",
          "storageClassName": "nfs-csi"
        }
      ]
    },
    "images": [
      "101.55.69.30/library/api-cmdb:4.7.4-release.20230413"
    ],
    "labels": {
      "app.kubernetes.io/instance": "cocktail",
      "app.kubernetes.io/managed-by": "Helm",
      "app.kubernetes.io/name": "api-cmdb"
    },
    "name": "cocktail-api-cmdb",
    "namespace": "cocktail-system",
    "readyPodCnt": 1
  }
]