curl --request GET \
--url https://api.archera.ai/v1/org/{org_id}/commitment-plans/{plan_id}/resource-matches \
--header 'x-api-key: <api-key>'[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"total_units": 123,
"before_uncovered_units": 123,
"after_covered_units": 123,
"after_uncovered_units": 123,
"ondemand_price": 123,
"if_all_ondemand_cost": 123,
"before_ondemand_cost": 123,
"after_ondemand_cost": 123,
"covered_ondemand_cost": 123,
"before_reserved_cost": 123,
"after_reserved_cost": 123,
"before_cost": 123,
"after_cost": 123,
"monthly_before_cost": 123,
"monthly_after_cost": 123,
"monthly_after_reserved_cost": 123,
"monthly_after_ondemand_cost": 123,
"average_savings": 123,
"average_monthly_savings": 123,
"usage_type": "running",
"coverage": 123,
"resource": {
"id": "<string>",
"resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider": "aws",
"provider_resource_id": "arn:aws:ec2:us-west-2:123456789012:instance/i-1234567890abcdef0",
"is_spot": true,
"usage_end": "2023-12-25",
"usage_start": "2023-12-25",
"tags": {},
"created_at": "2023-12-25",
"updated_at": "2023-12-25",
"management_account_id": "<string>",
"owner_account_id": "<string>",
"name": "<string>",
"resource_group": "<string>",
"instance_id": "<string>",
"sku_title": "<string>",
"sku_name": "<string>",
"availability_zone": "<string>",
"cache_engine": "<string>",
"database_engine": "<string>",
"description": "<string>",
"family": "<string>",
"full_region_name": "<string>",
"has_ondemand_terms": true,
"instance_type": "<string>",
"instance_type_family": "<string>",
"is_reservable": true,
"license_model": "<string>",
"location_type": "<string>",
"normalization_size_factor": "<string>",
"operating_system": "<string>",
"pre_installed_sw": "<string>",
"price_currency": "<string>",
"provider_service": "<string>",
"provider_sku_id": "<string>",
"publication_date": "<string>",
"region": "<string>",
"service": "<string>",
"tenancy": "<string>",
"usage_type": "<string>",
"version": "<string>",
"vpc_networking_support": true,
"ondemand_usage_unit": "<string>"
}
}
]Retrieves resource matches for a specific commitment plan, showing how cloud resources map to commitment purchases with cost and usage details.
curl --request GET \
--url https://api.archera.ai/v1/org/{org_id}/commitment-plans/{plan_id}/resource-matches \
--header 'x-api-key: <api-key>'[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"total_units": 123,
"before_uncovered_units": 123,
"after_covered_units": 123,
"after_uncovered_units": 123,
"ondemand_price": 123,
"if_all_ondemand_cost": 123,
"before_ondemand_cost": 123,
"after_ondemand_cost": 123,
"covered_ondemand_cost": 123,
"before_reserved_cost": 123,
"after_reserved_cost": 123,
"before_cost": 123,
"after_cost": 123,
"monthly_before_cost": 123,
"monthly_after_cost": 123,
"monthly_after_reserved_cost": 123,
"monthly_after_ondemand_cost": 123,
"average_savings": 123,
"average_monthly_savings": 123,
"usage_type": "running",
"coverage": 123,
"resource": {
"id": "<string>",
"resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider": "aws",
"provider_resource_id": "arn:aws:ec2:us-west-2:123456789012:instance/i-1234567890abcdef0",
"is_spot": true,
"usage_end": "2023-12-25",
"usage_start": "2023-12-25",
"tags": {},
"created_at": "2023-12-25",
"updated_at": "2023-12-25",
"management_account_id": "<string>",
"owner_account_id": "<string>",
"name": "<string>",
"resource_group": "<string>",
"instance_id": "<string>",
"sku_title": "<string>",
"sku_name": "<string>",
"availability_zone": "<string>",
"cache_engine": "<string>",
"database_engine": "<string>",
"description": "<string>",
"family": "<string>",
"full_region_name": "<string>",
"has_ondemand_terms": true,
"instance_type": "<string>",
"instance_type_family": "<string>",
"is_reservable": true,
"license_model": "<string>",
"location_type": "<string>",
"normalization_size_factor": "<string>",
"operating_system": "<string>",
"pre_installed_sw": "<string>",
"price_currency": "<string>",
"provider_service": "<string>",
"provider_sku_id": "<string>",
"publication_date": "<string>",
"region": "<string>",
"service": "<string>",
"tenancy": "<string>",
"usage_type": "<string>",
"version": "<string>",
"vpc_networking_support": true,
"ondemand_usage_unit": "<string>"
}
}
]API key for authentication. Get your key from User Settings > API Access in the Archera platform.
Field to order results by
id, unmatched_units, total_units, ondemand_price, reserved_cost, explanation_unmatched, coverage, ondemand_cost, covered_ondemand_cost, before_cost, after_cost, covered_units, average_savings, average_monthly_savings, monthly_after_cost, null Sort in descending order if true
Start date for resource usage data
"2024-01-01"
End date for resource usage data
"2024-01-31"
Filter by specific line item IDs
["550e8400-e29b-41d4-a716-446655440000"]x >= 11 <= x <= 100OK
Unique identifier for the resource match
Total resource usage units
Units not covered at the moment (before this plan)
Units that will be covered after the plan is applied
Units that will remain uncovered after the plan to avoid overcommit
Ondemand cost per unit-hour
Hourly cost if paying all the units with ondemand price
Current hourly ondemand cost for units not covered by existing commitments
Hourly ondemand cost remaining after applying this plan
Hourly ondemand cost for units that will be covered by this plan
Hourly cost from current/existing reservations for this resource
Hourly commitment/reserved cost after applying this plan
Total hourly cost before applying this plan (ondemand + reserved costs)
Total hourly cost after applying this plan
Total monthly cost before applying this plan
Total monthly cost after applying this plan
Monthly reserved/commitment cost portion after applying this plan
Monthly ondemand cost portion after applying this plan
Average hourly savings from this plan
Average monthly savings from this plan
Type of resource usage
running, resource, requests, gb_seconds, gb_hours, cpu_hours, cpu_utilization, os_hours, units_per_month, gb_per_month, provisioned_concurrency_gb_seconds, provisioned_duration_gb_seconds, unknown Percentage of total units that will be covered by commitments (0-1)
Detailed resource information including provider, service, and instance details etc
Show child attributes
Was this page helpful?