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
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
clustergroupid |
Yes |
String |
Fleet ID |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Identity authentication information |
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
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot