Querying Service Configuration
Function
This API is used to obtain the global configuration of each cluster type.
URI
GET /v1/serverconfig
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
onpremises |
OnPremisesConfig object |
Configuration parameters of an on-premises cluster |
|
federations |
FederationConfig object |
Federation configuration parameters |
|
Parameter |
Type |
Description |
|---|---|---|
|
versionsInfo |
Array of OnPremisesVersionInfo objects |
On-premises cluster version list |
|
Parameter |
Type |
Description |
|---|---|---|
|
kubernetesVersion |
String |
Kubernetes cluster version |
|
releaseVersion |
String |
Release version |
|
ucsctlDownloadURL |
String |
URL for downloading ucs-ctl |
|
arch |
String |
Compatible CPU architecture |
|
obsEndpoint |
String |
OBS endpoint |
|
packagePath |
String |
Software package storage path |
|
imagesPackagePath |
String |
Image package storage path |
|
targetVersion |
String |
Target version |
|
Parameter |
Type |
Description |
|---|---|---|
|
versionsInfo |
Array of FederationVersionInfo objects |
Federation version list |
|
Parameter |
Type |
Description |
|---|---|---|
|
currentVersion |
FederationVersionSpec object |
Current federation version |
|
targetVersions |
Array of FederationVersionSpec objects |
List of target federation versions |
|
Parameter |
Type |
Description |
|---|---|---|
|
FederationVersion |
String |
Federation version |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
- |
String |
- |
Example Requests
None
Example Responses
Status code: 200
Global configuration parameters of the cluster obtained
{
"onpremises" : {
"versionsInfo" : [ {
"kubernetesVersion" : "1.28.5",
"releaseVersion" : "25.3.0",
"ucsctlDownloadURL" : "toolkits/ucs-ctl/ucsadm-25.3.0.2/amd64/ucs-ctl",
"arch" : "amd64",
"obsEndpoint" : "https://ucs-onprem.obs.cn-north-5.ulanqab.huawei.com",
"packagePath" : "packages/ucs-onpremise/25.3.0/ucs-onpremise_25.3.0.2_amd64.tar.gz",
"imagesPackagePath" : "packages/ucs-onpremise/25.3.0/ucs-onpremise_images_25.3.0.2_amd64.tar.gz"
}, {
"kubernetesVersion" : "1.28.5",
"releaseVersion" : "25.3.0",
"ucsctlDownloadURL" : "toolkits/ucs-ctl/ucsadm-25.3.0.2/arm64/ucs-ctl",
"arch" : "arm64",
"obsEndpoint" : "https://ucs-onprem.obs.cn-north-5.ulanqab.huawei.com",
"packagePath" : "packages/ucs-onpremise/25.3.0/ucs-onpremise_25.3.0.2_arm64.tar.gz",
"imagesPackagePath" : "packages/ucs-onpremise/25.3.0/ucs-onpremise_images_25.3.0.2_arm64.tar.gz"
} ]
},
"federations" : {
"versionsInfo" : [ {
"currentVersion" : {
"FederationVersion" : "v1.10.7-r29"
},
"targetVersions" : [ {
"FederationVersion" : "v1.10.7-t0813"
} ]
}, {
"currentVersion" : {
"FederationVersion" : "v1.10.7-r27"
},
"targetVersions" : [ {
"FederationVersion" : "v1.10.7-r28"
} ]
}, {
"currentVersion" : {
"FederationVersion" : "v1.10.7-r28"
},
"targetVersions" : [ {
"FederationVersion" : "v1.10.7-r29"
} ]
}, {
"currentVersion" : {
"FederationVersion" : "1.10.3-r10"
},
"targetVersions" : [ {
"FederationVersion" : "v1.10.7-t0928"
} ]
} ]
}
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Global configuration parameters of the cluster obtained |
|
400 |
Client request error. The server could not execute the request. |
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