Retrieves the costs associated to a set of items billed for a single instance

GET /api/v2/billing/organizations/{organization_id}/costs/instances/{instance_id}/items

Retrieves the costs associated to a set of items billed for a single instance.

Path parameters

Query parameters

  • from string Required

    A datetime for the beginning of the desired range.

  • to string Required

    A datetime for the end of the desired range.

Responses

  • 200 application/json

    Success. The costs associated to a set of items billed for a single instance.

    Hide response attributes Show response attributes object
    • products array[object] Required

      Product(total_ecu: 'int', type: 'str', product_line_items: 'list[ProductLineItem]')

      Hide products attributes Show products attributes object
      • product_line_items array[object] Required

        ProductLineItem(name: 'str', total_ecu: 'int', type: 'str', sku: 'str', unit: 'str', quantity: 'Quantity', display_quantity: 'DisplayQuantity', rate: 'Rate', kind: 'str | None', quantities: 'list[ProductLineItemQuantity]')

        Hide product_line_items attributes Show product_line_items attributes object
      • total_ecu integer Required
      • type string Required
    • total_ecu integer Required
  • The specified data range is invalid.

  • Current user does not have access to the requested organization.

  • Organization not found.

  • Internal server error.

GET /api/v2/billing/organizations/{organization_id}/costs/instances/{instance_id}/items
curl \
 --request GET 'https://billing.elastic-cloud.com/api/v2/billing/organizations/{organization_id}/costs/instances/{instance_id}/items?from=2021-04-21T00%3A00%3A00%2B00%3A00&to=2021-04-21T00%3A00%3A00%2B00%3A00'