You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
349 B
14 lines
349 B
#!/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."c3.small.x86".price'
|
|
|