Vantage v2

Provides integration with Vantage, a cloud cost management platform where teams organize cloud spend into workspaces, folders, cost reports, saved filters, segments, budgets, and cost and anomaly alerts.

Use templates to select operations from the Vantage API v2. For example, you can query cost rows and unit costs, read forecasts and savings recommendations, or create, update and delete folders, cost reports, saved filters, segments, budgets and cost alerts. Use these operations to bring Vantage cost data into finance tools or data warehouses, or to keep Vantage reporting objects aligned with other systems from a Workflow.

Revision History

0.0.0.1 - Initial release.

Connection

All Methods use the Connection to authenticate to the Vantage API with an API token.

Property Type Description
ApiToken Masked Vantage service token or personal access token. Required.
TimeoutSeconds Integer Per-request timeout in seconds, from 1 to 100. The default is 30.

Setup Notes

  1. In Vantage, open Settings → API Access Tokens and create a service token or a personal access token.
  2. Give the token the read scope for Get, List and Query. Create, Update and Delete also need the write scope.
  3. Create a Connection for Vantage, paste the token into ApiToken, and test the Connection.

Vantage tokens do not expire on a schedule. If Vantage rejects the token, create a new one and update the Connection.

This Node runs on the Cloud Cluster.

Methods

In each Method, you choose a template that selects the operation and fills OperationId. Options and Items use Vantage's own parameter and field names, such as workspace_token, folder_token and title.

The Node follows Vantage's pages automatically, so templates have no page or limit fields. Options accepts only the fields of the selected template. A Step that supplies page, limit or any other field the operation doesn't have fails. Filters that are null or empty text are ignored.

Get

Reads one record by its token, such as a workspace, folder, cost report, budget, anomaly alert, resource or product.

Parameter Type Description
Connection Connection Vantage Connection.
OperationId String Operation selected from a template.
Options Object The record's token, such as folder_token, and any options, such as include_performance for budgets or include_cost for resources.
Return Type Description
Response Array One row with the record.

An unknown token fails the Step with Vantage's error, for example Vantage returned 404 (NotFound): Folder fldr_… not found.

List

Lists a collection, such as workspaces, folders, cost reports, forecasted costs, budgets, cost and anomaly alerts, users, integrations, recommendations, tags, audit log entries, products and prices.

Parameter Type Description
Connection Connection Vantage Connection.
OperationId String Operation selected from a template.
Options Object Optional filters, such as q (search by title or name) and workspace_token. A few lists need a parent: cost_report_token for forecasted costs, key for tag values and product_id for prices.
Return Type Description
Response Array One row per record, across every page. With no filters, the whole collection is returned. An empty collection returns no rows.

Query

Reads cost data by filter.

  • getCosts returns cost rows for a cost report (cost_report_token) or a Vantage Query Language (VQL) filter, for example costs.provider = 'aws'. It needs at least one of these two. Other filters include workspace_token, start_date, end_date, groupings and the settings[...] flags. Its template has a default filter, so it runs as selected.
  • getUnitCosts returns the unit costs of a cost report and needs cost_report_token. Its template has a sample token only, so map a real token before you run it.
Parameter Type Description
Connection Connection Vantage Connection.
OperationId String Operation selected from a template.
Options Object The query's filters. At least one is needed. If every filter is empty, the Step fails with an error that names the filters, so a missing mapping never reads all your cost data.
Return Type Description
Response Array One row per cost or unit cost. Totals and other summary fields, such as total_cost and currency, are not included. A query that matches nothing returns no rows.

Create

Creates folders, cost reports, saved filters, segments, budgets and cost alerts, one per item.

Parameter Type Description
Connection Connection Vantage Connection.
OperationId String Operation selected from a template.
Items Array One record per item, using Vantage's field names, such as title and workspace_token. Required.
Return Type Description
Response Array One row per item with the created record and a Flowgear object.

The Flowgear object contains:

  • IsSuccess: whether Vantage accepted the item.
  • Message: Operation completed successfully., or the error text when the item failed.
  • Request: the original input item.

When Vantage rejects an item, the failed row also includes Vantage's errors as a comma-separated list.

createCostReport doesn't need dates. With only title and workspace_token, Vantage creates a report for the current month.

Update

Updates folders, cost reports, saved filters, segments, budgets and cost alerts, sets the status and feedback of anomaly alerts, and hides or prefers tag keys.

Parameter Type Description
Connection Connection Vantage Connection.
OperationId String Operation selected from a template.
Items Array One record per item. Each item names its record, such as folder_token for folders, plus the fields to change. Tag updates name the tag keys in tag_key or tag_keys. Required.
Return Type Description
Response Array One row per item with the updated record and a Flowgear object (IsSuccess, Message and Request). updateTag returns one row with the updated tags.

Delete

Deletes folders, cost reports, saved filters, segments, budgets and cost alerts.

Parameter Type Description
Connection Connection Vantage Connection.
OperationId String Operation selected from a template.
Items Array One item per record to delete, naming its token, such as folder_token. Required.
Return Type Description
Response Array One row per item with only a Flowgear object (IsSuccess, Message and Request).

Usage Notes

  • Each item of Create, Update and Delete names its own record, so one Step can change many different records without a For Each. Templates show the record token under Items with a sample only, so fill it in from your data.
  • Fields mapped as null are ignored, so an Update changes only the fields you supply. You can't clear a field by setting it to null.
  • If the first item fails, the Step fails. After that, an item that Vantage rejects, or that lacks its record token or a required field such as title, returns a failed row and the next item still runs. Check Flowgear.IsSuccess before running work that depends on a successful write.
  • A rejected token, a plan that doesn't include the feature, a rate limit that can't be waited out, a Vantage server error, a timeout or a dropped connection stops the Step.
  • Writes are not retried after a timeout or server error. Check Vantage before you run a failed write again, so that you don't create duplicates.
  • Vantage allows 1,000 requests per hour per account, and 5 requests per 5 seconds on cost endpoints. The Node waits and retries short rate limits automatically. When the hourly limit is reached, the Step fails with the time the limit resets.
  • String lists, such as report_tokens and email_recipients, use comma-separated values in requests and responses. Enclose values that contain commas in double quotes. Empty text is an empty list.
  • Free-form Vantage fields, such as a resource's tags and metadata or a cost's usage, are not listed in templates, but rows include them as Vantage returns them.

Known Issues

  • Writes to workspaces, teams, users, dashboards, integrations, notifications, business metrics and billing are not available. Neither are data exports, CSV uploads or listing the resources of a resource report. You can still read a single resource with the getResource template.
  • Cost endpoints return a 402 error when your Vantage plan doesn't include the feature.
  • In an account that has no cost reports, getCosts returns 404 No default cost report found for this workspace. Create a cost report in Vantage first.

See also