Help Center/ Ubiquitous Cloud Native Service/ API Reference/ API/ Fleets/ Downloading Federation kubeconfig
Updated on 2025-07-29 GMT+08:00

Downloading Federation kubeconfig

Function

This API is used to download the kubeconfig after the cluster federation is enabled for a fleet and the federation connection is created.

URI

POST /v1/clustergroups/{clustergroupid}/kubeconfig

Table 1 Path parameter

Parameter

Mandatory

Type

Description

clustergroupid

Yes

String

Fleet ID

Request Parameters

Table 2 Parameter in the request header

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Identity authentication information

Table 3 Parameter in the request body

Parameter

Mandatory

Type

Description

duration

Yes

Integer

Validity period of the certificate in kubeconfig, in days

Minimum value: 1

Maximum value: 1825

Response Parameters

Status code: 201

Table 4 Parameter in the response body

Parameter

Type

Description

-

File

-

Example Request

Downloading federation kubeconfig

POST https://ucs.myhuaweicloud.com/v1/clustergroups/{clustergroupid}/kubeconfig

{
  "duration" : 30
}

Example Response

None

Status Codes

Status Code

Description

201

The kubeconfig file content was obtained.

Error Codes

For details, see Error Codes.