Skip to main content

Get Cost Breakdown for Multiple Clusters

GET 

/dashboard/:cluster_type/cost-breakdown

Retrieve detailed cost breakdowns for one or more specified clusters of a given type within a defined date range.

Request

Path Parameters

    cluster_type anyrequired

    Type of the cluster (eks, asg)

Query Parameters

    cluster_id integer[]

    List of cluster IDs for which to retrieve the cost breakdown.

    date_start Date Start

    Default value: 2024-09-25

    Start date for the cost report (format: YYYY-MM-DD). Defaults to 30 days ago.

    date_end Date End

    Default value: 2024-10-25

    End date for the cost report (format: YYYY-MM-DD). Defaults to today.

Header Parameters

    X-Nops-Api-Key stringrequired

    API key for authentication

Responses

Successfully retrieved the cost breakdown for the specified clusters.

Schema

  • Array [

  • cluster_id integerrequired

    The ID of the cluster.

    cpu numberrequired

    Total cost associated with CPU usage.

    gpu numberrequired

    Total cost associated with GPU usage.

    memory numberrequired

    Total cost associated with memory usage.

    storage numberrequired

    Total cost associated with storage.

    network numberrequired

    Total cost associated with network usage.

    control_plane numberrequired

    Total cost associated with control plane resources.

    extended_support numberrequired

    Total cost associated with extended support options.

  • ]

Loading...