Skip to main content
PUT
/
kubeclusters
/
{cluster}
/
resources
/
{resource}
/
containers
/
{container}
Update Container
curl --request PUT \
  --url https://api.example.com/kubeclusters/{cluster}/resources/{resource}/containers/{container}/
{
  "cluster": "<string>",
  "container_name": "<string>",
  "created_by": "<string>",
  "created_on": "2023-11-07T05:31:56Z",
  "image": "<string>",
  "last_modified_by": "<string>",
  "last_modified_on": "2023-11-07T05:31:56Z",
  "namespace": "<string>",
  "resource_kind": "Deployment",
  "resource_name": "<string>",
  "scanned_on": 123,
  "$schema": "<string>",
  "project": "<string>",
  "project_component": "<string>"
}

Response

OK

cluster
string
required

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

Example:

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

container_name
string
required

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

Example:

"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.

Example:

"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 namespace in which the KubeClusterResource resides.

Example:

"kube-system"

resource_kind
enum<string>
required

The Resource Kind.

Available options:
Deployment,
DaemonSet,
StatefulSet
Example:

"Deployment"

resource_name
string
required

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

Example:

"mysql-server"

scanned_on
integer<int64>
required

The timestamp the KubeClusterScan occurred.

$schema
string<uri>

A URL to the JSON Schema for this object.

Example:

"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.

Example:

"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.

Example:

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