arrow-left

All pages
gitbookPowered by GitBook
1 of 6

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Get service map workloads list

Get workspace service map details

hashtag
Get service map workloads list

get

Get the list of workloads in the specified workspace and service map.

Path parameters
workspaceSeqintegerRequired
servicemapSeqintegerRequired
Responses
chevron-right
200

OK

*/*
get
/v1/workspaces/{workspaceSeq}/servicemaps/{servicemapSeq}/workloads
GET /v1/workspaces/{workspaceSeq}/servicemaps/{servicemapSeq}/workloads HTTP/1.1
Accept: */*
200

OK

[
  {
    "namespaceName": "cocktail-system",
    "workloadGroups": [
      {
        "columnCount": 1,
        "servicemapSeq": 2,
        "sortOrder": 1,
        "useYn": "Y",
        "workloadGroupName": "Default",
        "workloadGroupSeq": 2
      }
    ],
    "workloads": [
      {
        "activeCount": 1,
        "computeTotal": 1,
        "creationTimestamp": "2023-04-29 05:54:54",
        "description": "",
        "namespaceName": "cocktail-system",
        "qos": "Burstable",
        "serverUrls": [
          {
            "serviceType": "CLUSTER_IP",
            "url": "0.0.0.0:0"
          }
        ],
        "stateCode": "RUNNING",
        "workloadGroupSeq": 11,
        "workloadName": "cocktail-api-cmdb",
        "workloadType": "STATEFUL_SET_SERVER"
      }
    ]
  }
]

hashtag
Get workspace service map details

get

Get detailed information for the service maps in the specified workspace.

Path parameters
workspaceSeqintegerRequired
servicemapSeqintegerRequired
Responses
chevron-right
200

OK

*/*
get
/v1/workspaces/{workspaceSeq}/servicemaps/{servicemapSeq}
200

OK

GET /v1/workspaces/{workspaceSeq}/servicemaps/{servicemapSeq} HTTP/1.1
Accept: */*
{
  "clusterId": "thingcluster",
  "clusterName": "devops cluster",
  "clusterSeq": 1,
  "labels": {
    "istio-injection": "disabled",
    "kubernetes.io/metadata.name": "cocktail-system"
  },
  "namespaceName": "cocktail-system",
  "servicemapMappings": [
    {
      "serviceType": "NORMAL",
      "servicemapGroup": {
        "servicemapGroupName": "Default",
        "servicemapGroupSeq": 3,
        "servicemapSeq": 2,
        "sortOrder": 1,
        "workspaceSeq": 3
      },
      "servicemapSeq": 2,
      "workspaceName": "칵테일 시스템 [ DevOps ]",
      "workspaceSeq": 3
    }
  ],
  "servicemapName": "cocktail-system",
  "servicemapSeq": 2,
  "workloadGroups": [
    {
      "columnCount": 1,
      "servicemapSeq": 2,
      "sortOrder": 1,
      "workloadGroupName": "Default",
      "workloadGroupSeq": 2
    }
  ]
}

service map

Get workspace service maps listchevron-right
Get workspace service map detailschevron-right
Get service map workloads listchevron-right
Get service map workload detailschevron-right
Get service map groups listchevron-right

Get workspace service maps list

Get service map workload details

hashtag
Get workspace service maps list

get

Get the list of service maps in the specified workspace.

Path parameters
workspaceSeqintegerRequired
Responses
chevron-right
200

OK

*/*
get
/v1/workspaces/{workspaceSeq}/servicemaps
200

OK

GET /v1/workspaces/{workspaceSeq}/servicemaps HTTP/1.1
Accept: */*
[
  {
    "clusterId": "thingcluster",
    "clusterIpCount": 30,
    "clusterName": "devops cluster",
    "clusterSeq": 1,
    "clusterState": "RUNNING",
    "cubeType": "MANAGED",
    "gateWayCount": 5,
    "ingressCount": 1,
    "loadBalancerCount": 1,
    "namespaceName": "cocktail-system",
    "nodePortCount": 4,
    "providerCode": "IDC",
    "providerName": "Datacenter",
    "regionCode": "Default",
    "serverCount": 32,
    "servicemapName": "cocktail-system",
    "servicemapSeq": 2,
    "volumeRequestCapacity": 0
  }
]

Get service map groups list

hashtag
Get service map workload details

get

Get detailed information for the workloads in the specified workspace and service map.

Path parameters
workspaceSeqintegerRequired
servicemapSeqintegerRequired
workloadNamestringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/workspaces/{workspaceSeq}/servicemaps/{servicemapSeq}/workloads/{workloadName}
200

OK

GET /v1/workspaces/{workspaceSeq}/servicemaps/{servicemapSeq}/workloads/{workloadName} HTTP/1.1
Accept: */*
{
  "namespaceName": "cocktail-system",
  "workloadGroups": [
    {
      "columnCount": 1,
      "servicemapSeq": 2,
      "sortOrder": 1,
      "useYn": "Y",
      "workloadGroupName": "Default",
      "workloadGroupSeq": 2
    }
  ],
  "workloads": [
    {
      "activeCount": 1,
      "computeTotal": 1,
      "containers": [
        {
          "containerName": "api-cmdb",
          "fullImageName": "0.0.0.0/library/api-cmdb:4.7.4-release.20230413",
          "initContainerYn": "N",
          "privateRegistryYn": "N"
        }
      ],
      "creationTimestamp": "2023-04-29 05:54:54",
      "description": "",
      "namespaceName": "cocktail-system",
      "pods": [
        {
          "conditions": [
            {
              "lastTransitionTime": "2023-05-01 09:20:19",
              "status": "True",
              "type": "Initialized"
            }
          ],
          "detail": {
            "annotations": {
              "cni.projectcalico.org/containerID": "2869a9d6ccd7a53fc8fdccda05168581a99115ffacd7beb834d816e2ab2ee6e7",
              "cni.projectcalico.org/podIP": "10.177.142.134/32",
              "cni.projectcalico.org/podIPs": "10.177.142.134/32"
            },
            "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\"}"
                }
              }
            ],
            "creationTime": "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": "10.177.142.134",
            "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
              },
              {
                "effect": "NoExecute",
                "key": "node.kubernetes.io/unreachable",
                "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"
        }
      ],
      "qos": "BestEffort",
      "serverUrls": [
        {
          "serviceType": "CLUSTER_IP",
          "url": "10.187.158.194:3306"
        }
      ],
      "services": [
        {
          "clusterIp": "0.0.0.0",
          "headlessFlag": false,
          "internalLBFlag": false,
          "name": "api-cmdb",
          "namespaceName": "cocktail-system",
          "ports": [
            {
              "port": 0,
              "protocol": "TCP",
              "targetPort": "0"
            }
          ],
          "serviceType": "CLUSTER_IP",
          "stickySessionFlag": false
        }
      ],
      "stateCode": "RUNNING",
      "workloadGroupSeq": 11,
      "workloadName": "cocktail-api-cmdb",
      "workloadType": "STATEFUL_SET_SERVER"
    }
  ]
}

hashtag
Get service map groups list

get

Get the list of service map groups.

Path parameters
workspaceSeqintegerRequired
Responses
chevron-right
200

OK

*/*
get
/v1/workspaces/{workspaceSeq}/servicemapgroup
200

OK

GET /v1/workspaces/{workspaceSeq}/servicemapgroup HTTP/1.1
Accept: */*
[
  {
    "colorCode": "green",
    "servicemapGroupName": "Default",
    "servicemapGroupSeq": 3,
    "sortOrder": 1,
    "workspaceSeq": 3
  }
]