From edcccf4c974e72baf27226229b7ae46ac1a5e6cd Mon Sep 17 00:00:00 2001 From: Jeff Moe Date: Wed, 10 Feb 2021 11:57:08 -0700 Subject: [PATCH] grab all spot prices --- eqx-market-spot-prices | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 eqx-market-spot-prices diff --git a/eqx-market-spot-prices b/eqx-market-spot-prices new file mode 100755 index 0000000..01817aa --- /dev/null +++ b/eqx-market-spot-prices @@ -0,0 +1,12 @@ +#!/bin/bash +# eqx-market-spot-price + +EQXTOKEN=`cat ~/.packet-cli.json | jq ".token" --raw-output` + +curl \ + --silent \ + -X GET \ + --header 'Accept: application/json' \ + --header "X-Auth-Token: ${EQXTOKEN}" \ + 'https://api.equinix.com/metal/v1/market/spot/prices' +