Skip to main content
PUT
/
v1
/
kubernetes
/
cluster-deployments
/
{namespace}
/
{name}
Replace a cluster deployment
const options = {
  method: 'PUT',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({
    apiVersion: 'k0rdent.mirantis.com/v1beta1',
    kind: 'ClusterDeployment',
    metadata: {name: 'my-cluster', namespace: 'kcm-system'},
    spec: {}
  })
};

fetch('http://localhost:4065/v1/kubernetes/cluster-deployments/{namespace}/{name}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "data": {},
  "meta": {
    "requestId": "<string>",
    "timestamp": "<string>"
  }
}

Path Parameters

namespace
string
required

Kubernetes namespace

Minimum string length: 1
Example:

"kcm-system"

name
string
required

Resource name

Minimum string length: 1
Example:

"my-resource"

Body

application/json

Raw Kubernetes resource object

{key}
unknown

Response

Updated cluster deployment

success
enum<boolean>
required
Available options:
true
data
object
required

Raw Kubernetes resource object

meta
object
required