Browse Source

spots & hosts

master
Jeff Moe 10 months ago
parent
commit
bb5fa70b9c
  1. 4
      eqx-get-deviceid-hostname
  2. 16
      eqx-market-spot-prices

4
eqx-get-deviceid-hostname

@ -7,7 +7,9 @@ EQXDEVICEID="$1"
if [[ $1 == "" ]]
then \
echo -e "Need device name"
echo -e "Need device ID"
echo -e "To get device IDs in a project, run:"
echo -e "eqx-get-project-devices [project name]"
echo
exit
fi

16
eqx-market-spot-prices

@ -1,16 +0,0 @@
#!/bin/bash
# eqx-market-spot-prices
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