Skip to content

Retrieve a list of your instances mapped to their current status (Running, Stopped, etc...)

Notifications You must be signed in to change notification settings

uthm4n/retrieve-instances-mapped-to-current-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

retrieve-instances-mapped-to-current-status

Retrieve a list of your instances mapped to their current status (Running, Stopped, etc...)

How it works:

  1. Sends an API call to Get All Instances
  2. Filters through the JSON response and finds .instances.hostName and maps that to .instances.status
  3. You now have a list of your instances mapped to their current status ("Running", "Stopped", etc...)

Example Usage + Output:

screenshot

Note: similar to polling the health API, you can wrap the code in a try-except block + take input for the appliance URL + API key (hardcoding these is never a good practice for security). You can also copy the polling logic from the repo linked ^

About

Retrieve a list of your instances mapped to their current status (Running, Stopped, etc...)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages