Kubernetes Cost Allocation
Get Kubernetes Cost Allocation
Endpoint to retrieve a single Kubernetes Cost Allocation by ID
post/kubernetes-cost-allocation/{id}/get-item
Request
- Base URLhttps://oneuptime.com/api
- AuthAPI key in header APIKey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring uuid required
ID of the Kubernetes Cost Allocation to retrieve
Request body
Example request
{
"select": {
"projectId": true,
"kubernetesClusterId": true,
"clusterName": true
}
}Response
Successful response
Example response
{
"data": {
"projectId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"kubernetesClusterId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"clusterName": "Example text value",
"k8sClusterEntityKey": "Example text value",
"windowStart": "example_value",
"windowEnd": "example_value",
"namespace": "Example text value",
"controllerKind": "Example text value",
"controllerName": "Example text value",
"podName": "Example text value",
"containerName": "Example text value",
"nodeName": "Example text value",
"providerId": "Example text value",
"labels": "example_value",
"labelKeys": [
"item1",
"item2",
"item3"
],
"cpuCoreHours": 123.45,
"cpuCoreRequestAverage": 123.45,
"cpuCoreUsageAverage": 123.45,
"cpuCoreLimitAverage": 123.45,
"cpuCost": 123.45,
"gpuHours": 123.45,
"gpuCost": 123.45,
"ramByteHours": 123.45,
"ramBytesRequestAverage": 123.45,
"ramBytesUsageAverage": 123.45,
"ramBytesLimitAverage": 123.45,
"ramBytesUsageMax": 123.45,
"ramCost": 123.45,
"pvByteHours": 123.45,
"pvCost": 123.45,
"networkCost": 123.45,
"loadBalancerCost": 123.45,
"sharedCost": 123.45,
"externalCost": 123.45,
"totalCost": 123.45,
"cpuEfficiency": 123.45,
"ramEfficiency": 123.45,
"totalEfficiency": 123.45,
"currency": "Example text value",
"shipmentId": "Example text value",
"shipmentChunk": 42
}
}Changes
No recorded changes to this operation across all 1 revision of this API.