saffronjam opened a new issue, #7425:
URL: https://github.com/apache/cloudstack/issues/7425
##### ISSUE TYPE
* Bug Report
##### COMPONENT NAME
~~~
API
~~~
##### CLOUDSTACK VERSION
~~~
4.18
~~~
##### CONFIGURATION
Default configuration
##### OS / ENVIRONMENT
N/A
##### SUMMARY
The response of **GET getKubernetesClusterConfig** does not match the entry
in **GET listApis**
GET getKubernetesClusterConfig returns
```
{
"clusterconfig": {
"id": "<uuid>"
"name": "<cluster name>",
"configdata": "<config data> "
}
}
```
While
GET listApis specifies:
```
{
"id": "<uuid>"
"name": "<cluster name>",
"configdata": "<config data> "
}
```
##### STEPS TO REPRODUCE
~~~
1. Run GET getKubernetesClusterConfig for some kubernetes cluster
2. Run GET listApis and check the entry for the getKubernetesClusterConfig
route
It does not match
~~~
##### EXPECTED RESULTS
I expect **either** GET getKubernetesClusterConfig to return
```
{
"id": "<uuid>"
"name": "<cluster name>",
"configdata": "<config data> "
}
```
**or** GET listApis include the parent struct *clusterconfig*
##### ACTUAL RESULTS
GET getKubernetesClusterConfig does not match the corresponding entry in GET
listApis


##### CONTEXT
This issue is related to https://github.com/apache/cloudstack-go/issues/55
cloudstack-go is generated by GET listApis and cannot parse json response
right now since it does not expect the parent struct *clusterconfig*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]