Get Cluster Stats
Api to get kubernetes Cluster Stats for Telco Cloud Automation
Name of the cluster whose stats has to be retrieved
Name of the management cluster which is managing the cluster
Id of the TCA CP where the request has to be routed.
Successfully accepted request to get cluster stats.
{
"lastUpdated": "lastUpdated",
"metadata": {
"createdByIntent": "createdByIntent",
"modifiedByIntent": "modifiedByIntent",
"tcaCpId": "tcaCpId",
"resourceVersion": 0.8008281904610115,
"name": "name",
"mgmtClusterName": "mgmtClusterName"
},
"apiVersion": "apiVersion",
"creationUser": "creationUser",
"stats": {
"cluster": {
"controlPlaneHasSupportedTbrVersion": true,
"isProcessing": true,
"clusterHasSupportedTbrVersion": true,
"hasError": true
},
"nodepools": {
"total": 1,
"ready": 5,
"processing": 5,
"nodePoolWithSupportedVersion": 2
},
"addons": {
"total": 7,
"ready": 9,
"processing": 3
}
},
"creationDate": "creationDate",
"status": {
"deleteAccepted": true,
"vimId": "vimId",
"clusterUrl": "clusterUrl",
"resourceVersion": 6.027456183070403,
"opstatus": "processing",
"conditions": [
{
"severity": "Warning",
"reason": "reason",
"lastTransitionTime": "lastTransitionTime",
"type": "Ready",
"message": "message",
"status": true
},
{
"severity": "Warning",
"reason": "reason",
"lastTransitionTime": "lastTransitionTime",
"type": "Ready",
"message": "message",
"status": true
}
]
}
}
APIVersion defines the versioned schema of this representation of an object
Last Updated Date and Time of cluster
Creation Date and Time of cluster
Creation user of cluster
Bad Request
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Resource request is not found
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Shall be returned when multiple clusters exist with same name. The response body shall contain a ErrorResponse structure, in which the "message" attribute shall convey more information about the error.
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Internal Server Error
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}