Skip to main content
GET
/
kubeclusters
/
{cluster}
/
resources
/
{resource}
/
containers
/
{container}
/
{
  "$schema": "https://example.com/schemas/KubeClusterResourceContainer.json",
  "cluster": "k8scl_83eaa8d5-36ab-4814-9559-77518ec434cf",
  "container_name": "controller",
  "created_by": "<string>",
  "created_on": "2023-11-07T05:31:56Z",
  "image": "docker.io/cert-manager/cert-manager:1.2.45",
  "last_modified_by": "<string>",
  "last_modified_on": "2023-11-07T05:31:56Z",
  "namespace": "kube-system",
  "project": "proj_8897b911-950d-4485-93a9-2eedc6fac4fa",
  "project_component": "proj_8897b911-950d-4485-93a9-2eedc6fac4fa:1:agent",
  "resource_kind": "Deployment",
  "resource_name": "mysql-server",
  "scanned_on": 123
}

Response

OK

cluster
string
required

Cluster is the ID of the KubeCluster in which this KubeClusterResource resides.

Examples:

"k8scl_83eaa8d5-36ab-4814-9559-77518ec434cf"

container_name
string
required

String name of the container within the KubeClusterResource. Must be unique for the KubeClusterResource.

Examples:

"controller"

created_by
string
required

user who created the record.

created_on
string<date-time>
required

timestamp of when the record was created.

image
string
required

Image ID for the container within the KubeClusterResource.

Examples:

"docker.io/cert-manager/cert-manager:1.2.45"

last_modified_by
string
required

user who last modified the record.

last_modified_on
string<date-time>
required

timestamp of when the record was last modified.

namespace
string
required

The Kubernetes Namespace in which the KubeClusterResource resides.

Examples:

"kube-system"

resource_kind
enum<string>
required

The Kubernetes Resource Kind.

Available options:
Deployment,
DaemonSet,
StatefulSet
Examples:

"Deployment"

resource_name
string
required

The value of the metadata.name field in the Kubernetes resource manifest.

Examples:

"mysql-server"

scanned_on
integer
required

The timestamp the KubeClusterScan occurred.

$schema
string<uri>

A URL to the JSON Schema for this object.

Examples:

"https://example.com/schemas/KubeClusterResourceContainer.json"

project
string

During classification, if Chkk was able to determine the specific Project associated with the KubeClusterResourceContainer, this field will contain the ID of the Project.

Examples:

"proj_8897b911-950d-4485-93a9-2eedc6fac4fa"

project_component
string

During classification, if Chkk was able to determine the specific ProjectComponent that was associated with the KubeClusterResourceContainer, this field will contain the ID of the ProjectComponent.

Examples:

"proj_8897b911-950d-4485-93a9-2eedc6fac4fa:1:agent"

I