Get Workload Cluster Kube Config

Get Workload Cluster Kube Config

Api to fetch kubeconfig for workload cluster

Request
URI
GET
https://{api_host}/telco/api/caas/v2/k8sresources/secrets/{workload-cluster-name}/{secret-name}
COPY
Path Parameters
string
workload-cluster-name
Required

name of the workload cluster

string
secret-name
Optional

name of the workload cluster followed by "-kubeconfig"

Query Parameters
string
tcaCpId
Optional

tcaCpId where the management cluster is deployed. tcaCpId is the hcxUUID in the response of get cluster by Id API call for management cluster.

string
mgmtClusterName
Optional

name of the management cluster where the request needs to be executed

boolean
tcaCluster
Optional

If the request has to be executed on the tcaCluster


Authentication
This operation uses the following authentication methods.
Responses
200

Successfully fetched resource

Returns string of type(s) application/json
Operation doesn't return any data structure

400

Bad Request

Returns errorResponse of type(s) application/json
{
    "errors": [
        {
            "code": "string",
            "message": "string"
        }
    ]
}
array of error
errors
Optional

errors


500

Internal Server Error

Returns errorResponse of type(s) application/json
{
    "errors": [
        {
            "code": "string",
            "message": "string"
        }
    ]
}
array of error
errors
Optional

errors