Kubeconfig Service Get

Kubeconfig Service Get

Get cluster kubeconfig.

Request
URI
GET
https://{api_host}/https://your_org.tmc.cloud.vmware.com/v1alpha1/clusters/{fullName.name}/kubeconfig
COPY
Path Parameters
string
fullName.name
Required

Name of this cluster.

Query Parameters
string
fullName.orgId
Optional

ID of Organization.

string
fullName.managementClusterName
Optional

Name of the management cluster.

string
fullName.provisionerName
Optional

Provisioner of the cluster.

string
namespace
Optional

Namespace option to get kubeconfig for a specific namespace. It is optional. If not specified, the cluster kubeconfig will be returned. Specifying a namespace is mainly for application developers who have access to a workspace and certain namespaces in a cluster to get a kubeconfig to access that cluster.

string
cli
Optional

CliType will help identify the appropriate kubeconfig to be returned for CLI application.

  • TMC_CLI: TMC_CLI platform.
  • TANZU_CLI: TANZU_CLI platform.
Possible values are : TMC_CLI, TANZU_CLI,

Responses
200

A successful response.

{
    "kubeconfig": "string",
    "status": "string",
    "msg": "string",
    "endpoint": "string"
}

default

An unexpected error response.

Returns grpc.gateway.runtime.Error of type(s) */*
{
    "error": "string",
    "code": 0,
    "message": "string",
    "details": [
        {
            "typeUrl": "string",
            "value": "string"
        }
    ]
}