28 lines
408 B
28 lines
408 B
#!/bin/bash
|
|
# eqx-get-project-devices
|
|
#
|
|
# Usage:
|
|
# eqx-get-project-devices [project name]
|
|
# Example:
|
|
# eqx-get-project-devices fooproject
|
|
|
|
EQXPROJECT="$1"
|
|
|
|
if [[ $1 == "" ]]
|
|
then \
|
|
echo -e "Need project name, such as:\n"
|
|
eqx-get-project-names
|
|
echo
|
|
exit
|
|
fi
|
|
|
|
EQXPROJECTID=`eqx-get-project-uuid $EQXPROJECT`
|
|
|
|
packet \
|
|
device \
|
|
get \
|
|
--project-id \
|
|
$EQXPROJECTID \
|
|
2>/dev/null
|
|
|