Cluster objects

Delete cluster object

Delete a given cluster_object

DELETEhttps://cloud-api.calyptia.com/v1/cluster_objects/{clusterObjectID}
Authorization
Path parameters
clusterObjectID*string (uuid)
Response

OK

Request
const response = await fetch('https://cloud-api.calyptia.com/v1/cluster_objects/{clusterObjectID}', {
    method: 'DELETE',
    headers: {
      "Authorization": "Bearer <token>"
    },
});
const data = await response.json();

Update cluster object

Updates a given cluster_object

PATCHhttps://cloud-api.calyptia.com/v1/cluster_objects/{clusterObjectID}
Authorization
Path parameters
clusterObjectID*string (uuid)
Body
namestring (kubernetes valid hostname or namespace name. https://kubernetes.io/docs/reference/labels-annotations-taints/ )
kindClusterObjectKind (enum)

Kind of the kubernetes object

namespace
Response

OK

Body
updatedAt*string (date-time)
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/cluster_objects/{clusterObjectID}', {
    method: 'PATCH',
    headers: {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "updatedAt": "2024-10-16T10:28:41.819Z"
}