v1

latestOpenAPI 3.1.0Apache 2.02026-07-17870411.0 KB
Cost Management

Calculate AWS pricing for compute and storage resources

Estimates the cost of running a job with specified compute and storage requirements

get/api/cost_management/pricing

Query parameters

instance_typestring required

EC2 instance type

wall_timestring

Job duration in HH:MM:SS format

vcpusinteger

Number of vCPUs to allocate

scratch_sizeinteger

Scratch storage size in GB

root_sizeinteger

Root disk size in GB

fsx_capacityinteger

FSx storage capacity in GB

fsx_type'SCRATCH_1' | 'SCRATCH_2' | 'PERSISTENT_1' | 'PERSISTENT_2'

FSx storage type

Headers

X-EDH-USERstring required

EDH username for authentication

X-EDH-TOKENstring required

EDH authentication token

Response

Pricing calculation successful

successboolean required

Example response

{
  "success": true,
  "message": {
    "compute": {
      "on_demand_hourly_rate": 0.096,
      "reserved_hourly_rate": 0.058,
      "estimated_on_demand_cost": 0.192,
      "estimated_reserved_cost": 0.116,
      "nodes": 1,
      "walltime": 2.5,
      "instance_type": "m5.large",
      "vcpus": 4
    },
    "estimated_total_cost": 0.205,
    "estimated_hourly_cost": 0.103,
    "estimated_storage_cost": 0.013,
    "scratch_size": "0.007",
    "root_size": "0.003",
    "fsx_capacity": "0.003",
    "storage_pct": 6.34,
    "compute_pct": "93.66"
  }
}