Cost Management

Calculate AWS pricing for compute and storage resources

Changed on

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

get/api/cost_management/pricing

Request

  • The document declares no server URL.
  • Auth
    socaAuth (a scheme the document does not define) and socaToken (a scheme the document does not define)

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

SOCA username for authentication

X-EDH-TOKENstring required

SOCA authentication token

Response

Pricing calculation successful

successboolean required

Example response

{
  "success": true,
  "message": {
    "compute": {
      "ondemand": 0.096,
      "reserved": 0.058,
      "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"
  }
}

Changes

    • breaking

      response property message/compute_pct list-of-types was widened by adding types integer to media type application/json of response 200

    • breaking

      response property message/storage_pct list-of-types was widened by adding types integer to media type application/json of response 200

    • info

      the endpoint scheme security socaAuth AND socaToken was added to the API

    • info

      the endpoint scheme security edhAuth AND edhToken was removed from the API

    • info

      the response property // became required for the status

    • info

      added the required property // to the response with the status

    • info

      added the required property // to the response with the status

    • info

      the endpoint scheme security edhAuth AND edhToken was added to the API

    • info

      the endpoint scheme security socaAuth AND socaToken was removed from the API