Upload Cluster Template

Upload Cluster Template

Api to upload a cluster template for Telco Cloud Automation

Request
URI
POST
https://{api_host}/hybridity/api/infra/cluster-templates/upload
COPY
Request Body
body of type(s) multipart/form-data
Optional
{
    "file": "string"
}
string As binary As binary
file
Optional

file

Authentication
This operation uses the following authentication methods.
Responses
200

Successfully created 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