Skip to content

HPE GreenLake Consumption Analytics FOCUS Exports v1beta1 API (1.0.0)

API reference documentation for the HPE GreenLake Consumption Analytics FOCUS Exports v1beta1 API

Overview
Languages
Servers
Production - US West

https://us-west.api.greenlake.hpe.com/

Mock server

https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/consumption-analytics/public/openapi/consumption-analytics-latest/focus-exports-v1beta1/

FOCUS Exports

Reference documentation for FOCUS export configuration operations.

Operations

List available FOCUS export configurations

Request

List the FOCUS export configurations that are available to the caller.

Security
glcUserBearerAuth
curl -i -X GET \
  https://us-west.api.greenlake.hpe.com/consumption-analytics/v1beta1/focus-exports \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Success

Bodyapplication/json
countinteger(int32)

Number of items returned

itemsArray of objects(ExportConfig)

List of FOCUS export configurations

offsetinteger(int32)

Offset of the first item returned

totalinteger(int32)

Total number of items available

Response
application/json

success

{ "offset": 0, "count": 2, "total": 2, "items": [ {}, {} ] }

Retrieve a FOCUS export configuration

Request

Fetches the details of a specific FOCUS export configuration by its ID. Use the id returned by List available FOCUS export configurations as the path parameter.

Security
glcUserBearerAuth
Path
idstring(uuid)required

The ID of the FOCUS export configuration.

Example: 7021d69d-de13-44bd-97e1-dbb05eef0759
curl -i -X GET \
  https://us-west.api.greenlake.hpe.com/consumption-analytics/v1beta1/focus-exports/7021d69d-de13-44bd-97e1-dbb05eef0759 \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Success

Bodyapplication/json
createdobject(UserEvent)
filterArray of objects(ReportFieldCriteria)
idstring
lastRunobject(UserEvent)
lastUpdatedobject(UserEvent)
namestring
Response
application/json

success

{ "id": "83bcaf12-de13-44bd-97e1-dbb05eef0759", "name": "Export all AWS Data", "filter": [ {} ], "created": { "id": "01972d202d3d9e74ba89cec4a36b7dfe", "name": "Test User", "time": "2025-09-11T17:59:16.945" }, "lastUpdated": { "id": "01972d202d3d9e74ba89cec4a36b7dfe", "name": "Test User", "time": "2025-09-11T17:59:16.945" }, "lastRun": { "id": "e1b1a9bc60ca05dd6f0918397c50858b", "name": "Test User", "time": "2026-04-21T21:49:56.974618" } }

Download FOCUS export data

Request

Executes the given FOCUS export configuration and retrieves it as a CSV file. Use the id returned by List available FOCUS export configurations as the path parameter.

Security
glcUserBearerAuth
Path
idstring(uuid)required

The ID of the FOCUS export configuration to execute.

Example: 7021d69d-de13-44bd-97e1-dbb05eef0759
Query
relativeDatestring

Relative date range for the export. If specified, this parameter takes precedence over startDate and endDate. Dates are mandatory: you must provide either relativeDate or the startDate/endDate pair.

Default ""
startDatestring(date)

Start date for an absolute export range (YYYY-MM-DD). Must be used together with endDate; otherwise a 400 Bad Request is returned.

Default ""
endDatestring(date)

End date for an absolute export range (YYYY-MM-DD). Must be used together with startDate; otherwise a 400 Bad Request is returned.

Default ""
curl -i -X GET \
  https://us-west.api.greenlake.hpe.com/consumption-analytics/v1beta1/focus-exports/7021d69d-de13-44bd-97e1-dbb05eef0759/contents \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

The exported FOCUS data as a CSV file

Headers
Content-Dispositionany

Indicates that the response is a downloadable file

Example: "attachment; filename=\"Export_2025-01-31T16:16:20.031975.csv\""
Bodytext/csv
string(binary)

The FOCUS-compliant CSV file content

Response
text/csv

success

BillingAccountId,BillingAccountName,BillingCurrency,BilledCost,BillingPeriodStart,BillingPeriodEnd,ChargeCategory,ChargeClass,ChargeDescription,ChargePeriodStart,ChargePeriodEnd,ContractedCost,ContractedUnitPrice,EffectiveCost,InvoiceIssuerName,ProviderName,PublisherName,PricingQuantity,PricingUnit,ListCost,ListUnitPrice,ResourceId,ResourceName,ResourceType,ServiceCategory,ServiceName,SkuId,ConsumedQuantity,ConsumedUnit,AvailabilityZone,CommitmentDiscountType,ChargeFrequency,CommitmentDiscountCategory,CommitmentDiscountId,CommitmentDiscountName,CommitmentDiscountStatus,PricingCategory,RegionId,RegionName,SkuPriceId,SubAccountId,SubAccountName,Tags
HP-AMS-999-USA-99999,Test Company,USD,0.35312696,2026-04-01T00:00:00Z,2026-05-01T00:00:00Z,Usage,,0.9 CUs Synergy 480 Gen10 #1 (ESXI Hosts),2026-04-15T00:00:00Z,2026-04-16T00:00:00Z,0.35312696,,0.35312696,HPE GreenLake,HPE GreenLake,HPE GreenLake,0.39236328125,CUs,0.35312696,0.9,foo.org-vm-00001,foo.org-vm-00001,VM,Compute,VM,VM20_000000-0000-0000-0000-000000000012,11.7708984375,CUs,,,Estimated,,,,,,AMS,AMS,,,,{}
HP-AMS-999-USA-99999,Test Company,USD,5.93066666,2026-04-01T00:00:00Z,2026-05-01T00:00:00Z,Usage,,1.39 CUs SQL special configuration,2026-04-17T00:00:00Z,2026-04-18T00:00:00Z,5.93066666,,5.93066666,HPE GreenLake,HPE GreenLake,HPE GreenLake,4.266666666666670,CUs,5.93066666,1.39,foo.org-vm-00002,foo.org-vm-00002,VM,Compute,VM,VM20_000000-0000-0000-0000-000000000012,128.0,CUs,,,Estimated,,,,,,AMS,AMS,,,,{}
HP-AMS-999-USA-99999,Test Company,USD,0.82489054,2026-04-01T00:00:00Z,2026-05-01T00:00:00Z,Usage,,0.9 CUs Synergy 480 Gen10 #1 (ESXI Hosts),2026-04-18T00:00:00Z,2026-04-19T00:00:00Z,0.82489054,,0.82489054,HPE GreenLake,HPE GreenLake,HPE GreenLake,0.9165450434966670,CUs,0.82489054,0.9,foo.org-vm-00003,foo.org-vm-00003,VM,Compute,VM,VM20_000000-0000-0000-0000-000000000012,27.4963513049,CUs,,,Usage,,,,,,AMS,AMS,,,,{}