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
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 a kubeconfig certificate Minimum: 1 Maximum: 10950 |
Response Parameters
Status code: 201
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.
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