How to write a blueprint script that tells you who else is using the shared resources in your sandbox #176
Quali-Community
started this conversation in
Useful Tips & Guides
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A question I sometimes get on the road is "if I am using a shared resource in my sandbox, and I want to perform a command which affects users of the same resource in other sandboxes, how do I tell what is being used quickly and currently?". A good example is that someone needs to reload some firmware or power cycle a device. They do not want to go ahead without consulting or informing users in other sandboxes.
One answer is to write a blueprint script in Python which provides a command that uses the CloudShell automation API. The API calls can determine the answer and generate a simple textual list in the Output window of the current sandbox.
An example of the script output is shown below:
The Python code is show below and attached:
blueprintscriptshowusage.txt
Attachments:
Gary Wilson (Gary.W) - 11/22/2017 05:07 PM
· 2267 ·
Beta Was this translation helpful? Give feedback.
All reactions