Update Cluster Template

Update Cluster Template

Api to update a cluster template for Telco Cloud Automation

Request
URI
PUT
https://{api_host}/hybridity/api/infra/cluster-templates/{id}
COPY
Path Parameters
string
id
Required

id


Request Body
clusterTemplate of type(s) application/json
Required
{
    "clusterType": "string",
    "clusterConfig": {
        "cni": [
            {
                "name": "string"
            }
        ],
        "csi": [
            {
                "name": "string",
                "properties": {
                    "name": "string",
                    "isDefault": false,
                    "timeout": "string"
                }
            }
        ],
        "kubernetesVersion": "string",
        "tools": [
            {
                "name": "string",
                "version": "string"
            }
        ]
    },
    "description": "string",
    "masterNodes": [
        {
            "cpu": 0,
            "memory": 0,
            "name": "string",
            "networks": [
                {
                    "label": "string"
                }
            ],
            "storage": 0,
            "replica": 0,
            "labels": [
                "string"
            ],
            "cloneMode": "string"
        }
    ],
    "name": "string",
    "id": "string",
    "tags": [
        {
            "autoCreated": false,
            "name": "string"
        }
    ],
    "workerNodes": [
        {
            "cpu": 0,
            "memory": 0,
            "name": "string",
            "networks": [
                {
                    "label": "string"
                }
            ],
            "storage": 0,
            "replica": 0,
            "labels": [
                "string"
            ],
            "cloneMode": "string",
            "config": {
                "cpuManagerPolicy": {
                    "type": "string",
                    "policy": "string",
                    "properties": {
                        "kubeReserved": {
                            "cpu": 0,
                            "memoryInGiB": 0
                        },
                        "systemReserved": {
                            "cpu": 0,
                            "memoryInGiB": 0
                        }
                    }
                }
            }
        }
    ]
}
string
clusterType
Required

clusterType

Possible values are : MANAGEMENT, WORKLOAD,
clusterConfig
Required

clusterConfig

string
description
Optional

description

masterNodes
Required

masterNodes

string
name
Required

name

string
id
Optional

id

tags
Optional

tags

workerNodes
Optional

workerNodes

Authentication
This operation uses the following authentication methods.
Responses
200

Successfully updated cluster template.

Returns clusterTemplate of type(s) application/json
{
    "clusterType": "string",
    "clusterConfig": {
        "cni": [
            {
                "name": "string"
            }
        ],
        "csi": [
            {
                "name": "string",
                "properties": {
                    "name": "string",
                    "isDefault": false,
                    "timeout": "string"
                }
            }
        ],
        "kubernetesVersion": "string",
        "tools": [
            {
                "name": "string",
                "version": "string"
            }
        ]
    },
    "description": "string",
    "masterNodes": [
        {
            "cpu": 0,
            "memory": 0,
            "name": "string",
            "networks": [
                {
                    "label": "string"
                }
            ],
            "storage": 0,
            "replica": 0,
            "labels": [
                "string"
            ],
            "cloneMode": "string"
        }
    ],
    "name": "string",
    "id": "string",
    "tags": [
        {
            "autoCreated": false,
            "name": "string"
        }
    ],
    "workerNodes": [
        {
            "cpu": 0,
            "memory": 0,
            "name": "string",
            "networks": [
                {
                    "label": "string"
                }
            ],
            "storage": 0,
            "replica": 0,
            "labels": [
                "string"
            ],
            "cloneMode": "string",
            "config": {
                "cpuManagerPolicy": {
                    "type": "string",
                    "policy": "string",
                    "properties": {
                        "kubeReserved": {
                            "cpu": 0,
                            "memoryInGiB": 0
                        },
                        "systemReserved": {
                            "cpu": 0,
                            "memoryInGiB": 0
                        }
                    }
                }
            }
        }
    ]
}
string
clusterType
Required

clusterType

Possible values are : MANAGEMENT, WORKLOAD,
clusterConfig
Required

clusterConfig

string
description
Optional

description

masterNodes
Required

masterNodes

string
name
Required

name

string
id
Optional

id

tags
Optional

tags

workerNodes
Optional

workerNodes


500

Internal Server Error

Returns errorResponse of type(s) application/json
{
    "errors": [
        "error.yaml Object"
    ]
}
array of error.yaml
errors
Optional

errors