Compare commits
5 Commits
03f14db641
...
ce3ed8324c
Author | SHA1 | Date |
---|---|---|
Jeff Moe | ce3ed8324c | 3 years ago |
Jeff Moe | edcccf4c97 | 3 years ago |
Jeff Moe | bb5fa70b9c | 3 years ago |
Jeff Moe | 4de6f9a351 | 3 years ago |
Jeff Moe | 9c00fbc466 | 3 years ago |
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Gets lowest spot price for device type hardcoded in script below
|
||||||
|
|
||||||
|
|
||||||
|
eqx-market-spot-prices | \
|
||||||
|
jq '.spot_market_prices | .[]."m3.large.x86".price' | \
|
||||||
|
sort -Vu | \
|
||||||
|
grep -v null
|
||||||
|
|
@ -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…
Reference in new issue