rename spot scripts

master
Jeff Moe 4 years ago
parent c5efe3b056
commit f342951cb6

@ -1,11 +1,11 @@
#!/bin/bash
# eqx-market-convert-spot
# eqx-market-spot-convert
# Convert a "spot" server into "on demand" server
#
# Usage:
# eqx-market-convert-spot [device id]
# eqx-market-spot-convert [device id]
# Example:
# eqx-market-convert-spot 00000001-2000-3000-4000-500000000000
# eqx-market-spot-convert 00000001-2000-3000-4000-500000000000
EQXTOKEN=`cat ~/.packet-cli.json | jq ".token" --raw-output`
EQXDEVICEID="$1"
@ -30,7 +30,7 @@ generate_post_data()
EOF
}
echo "Is spot? `eqx-market-deviceid-spot $EQXDEVICEID`"
echo "Is spot? `eqx-market-spot-deviceid $EQXDEVICEID`"
echo "Converting to on demand..."
@ -42,5 +42,5 @@ curl \
"https://api.equinix.com/metal/v1/devices/$EQXDEVICEID" \
--data "$(generate_post_data)" 1>/dev/null 2>/dev/null
echo "Is spot? `eqx-market-deviceid-spot $EQXDEVICEID`"
echo "Is spot? `eqx-market-spot-deviceid $EQXDEVICEID`"

@ -1,11 +1,11 @@
#!/bin/bash
# eqx-market-convert-spot-project
# eqx-market-spot-convert-project
# Convert all the devices in a project from spot to on demand pricing.
#
# Usage:
# eqx-market-convert-spot-project [project name]
# eqx-market-spot-convert-project [project name]
# Example:
# eqx-market-convert-spot-project fooproject
# eqx-market-spot-convert-project fooproject
EQXPROJECT="$1"
@ -32,6 +32,6 @@ EQXDEVICEIDS=`packet \
for i in $EQXDEVICEIDS
do \
echo "Converting $i ..."
eqx-market-convert-spot $i
eqx-market-spot-convert $i
done
Loading…
Cancel
Save