Created
August 16, 2018 09:39
-
-
Save colin-nolan/0aebb4f247731e014be9a9cb17bb8eb9 to your computer and use it in GitHub Desktop.
Gets the host IDs running OpenStack instances
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openstack server list -f json | jq -r '.[].ID' | xargs -I {} -P 8 openstack server show -f json {} | jq '{hostId,name}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment