curl --request GET \
--url https://api.vantage.sh/v2/virtual_tag_configs \
--header 'Authorization: Bearer <token>'{
"virtual_tag_configs": [
{
"token": "vtag_eabf584ca1fe7769",
"created_by_token": "usr_d2ad8c75f4fee21e",
"key": "Product Team",
"overridable": false,
"backfill_until": "2025-12-01",
"values": [
{
"filter": "(costs.provider = 'aws' AND costs.service = 'Amazon Elastic Compute Cloud' AND costs.account_id IN ('1234', '5678'))",
"name": "Growth"
},
{
"filter": "(costs.provider = 'aws' AND costs.account_id IN ('1234', '5678')) OR (costs.provider = 'gcp' AND costs.service = 'Google Compute Engine')",
"name": "API"
},
{
"filter": "(costs.provider = 'aws' AND costs.service = 'AmazonEC2')",
"business_metric_token": "bsnss_mtrc_60e1ffb95a9a00f0"
},
{
"filter": "(costs.provider = 'aws' AND costs.service != 'Amazon Elastic Compute Cloud')",
"cost_metric": {
"filter": "costs.provider = 'aws' AND costs.service = 'Amazon Elastic Compute Cloud'",
"aggregation": {
"tag": "aws:CreatedBy"
}
}
},
{
"filter": "(costs.provider = 'azure' AND costs.service = 'Azure Compute')",
"percentages": [
{
"value": "apples-a",
"pct": 50
},
{
"value": "apples-b",
"pct": 50
}
]
}
]
}
]
}Return all VirtualTagConfigs that the current API token has access to.
curl --request GET \
--url https://api.vantage.sh/v2/virtual_tag_configs \
--header 'Authorization: Bearer <token>'{
"virtual_tag_configs": [
{
"token": "vtag_eabf584ca1fe7769",
"created_by_token": "usr_d2ad8c75f4fee21e",
"key": "Product Team",
"overridable": false,
"backfill_until": "2025-12-01",
"values": [
{
"filter": "(costs.provider = 'aws' AND costs.service = 'Amazon Elastic Compute Cloud' AND costs.account_id IN ('1234', '5678'))",
"name": "Growth"
},
{
"filter": "(costs.provider = 'aws' AND costs.account_id IN ('1234', '5678')) OR (costs.provider = 'gcp' AND costs.service = 'Google Compute Engine')",
"name": "API"
},
{
"filter": "(costs.provider = 'aws' AND costs.service = 'AmazonEC2')",
"business_metric_token": "bsnss_mtrc_60e1ffb95a9a00f0"
},
{
"filter": "(costs.provider = 'aws' AND costs.service != 'Amazon Elastic Compute Cloud')",
"cost_metric": {
"filter": "costs.provider = 'aws' AND costs.service = 'Amazon Elastic Compute Cloud'",
"aggregation": {
"tag": "aws:CreatedBy"
}
}
},
{
"filter": "(costs.provider = 'azure' AND costs.service = 'Azure Compute')",
"percentages": [
{
"value": "apples-a",
"pct": 50
},
{
"value": "apples-b",
"pct": 50
}
]
}
]
}
]
}