Browse Source

spot price hard code

master
Jeff Moe 10 months ago
parent
commit
9c00fbc466
  1. 16
      eqx-market-spot-price

16
eqx-market-spot-price

@ -0,0 +1,16 @@
#!/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' | \
jq '.spot_market_prices.da11."m3.large.x86".price'
# jq '.spot_market_prices.da11."c3.small.x86".price'
Loading…
Cancel
Save