Help Center> Ubiquitous Cloud Native Service> API Reference> API> Fleet> Downloading Federation kubeconfig
Updated on 2024-04-30 GMT+08:00

Downloading Federation kubeconfig

Function

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

URI

POST /v1/clustergroups/{clustergroupid}/kubeconfig

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

clustergroupid

Yes

String

Fleet ID

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Identity authentication information

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

duration

Yes

Integer

Validity period of a kubeconfig certificate

Minimum: 1

Maximum: 10950

Response Parameters

Status code: 201

Table 4 Response body parameters

Parameter

Type

Description

-

File

kubeconfig file

Example Requests

Downloading federation kubeconfig

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

{
  "duration" : 30
}

Example Responses

None

Status Codes

Status Code

Description

201

kubeconfig file

Error Codes

See Error Codes.