These forums are a place for learning, helping and sharing experiences with others about any of our products. Feel free to ask a question and get answers from our community and our most advanced users.
Note that these are public forums - anyone can view the discussions here.
VISIT OUR DIFFERENT FORUMS:
Announcements > | |
CloudShell > | TestShell > |
Developers > | BI (Business Inteligence) > |
This is where you can suggest your ideas to help and improve the product for everyone.
Please make sure to read the following article before posting a new idea, to get more information about the required information and ideas lifecycle.
Feel free to vote and comment on other ideas to promote them.
Thanks for everyone who suggested the ideas and voted for them.
Find, download and share integrations that can extend and enhance the CloudShell experience.
Integrations have several levels:
Certified - Officially tested and supported by Quali.
Preview - Provides a sneak peek to what the Quali team is developing. Officially supported by Quali. Feel free to experiment and comment, but please take into consideration that it is not yet tested and released.
Community - Integrations shared by community users. Feel free to look into what other users have contributed, please take into consideration that these integrations are not tested by Quali.
To learn more about creating Shells and integrating with CloudShell, use the following links:
CloudShell's Dev Guide > | Configuration Management > |
Getting started with Shells > | Extending CloudShell with Cloud Providers > |
Getting started with Orchestration > | API Guide > |
To share your integration, follow the instructions in this guide >.
Jim Pfleger suggested an idea (#1657) · Jun 12, 2017 at 02:46 PM · cloudshellinventoryapi
As discussed in this forum post, FindResources only returns resources that are not excluded. There should be an option to FindResources so that it returns only excluded resources, both included and excluded resources, and only included resources (the current behavior, and what should remain the default behavior).
Dan Michlin commented · Jun 14, 2017 at 07:19 AM
Hi Jim, can you please elaborate on the use case of finding excluded resources via the API ? Do you have an automated process that needs to find excluded resources ? What do you do with them?
We're in the process of importing all our inventory and connectivity, which are stored across multiple spreadsheets. At a high level I have a Python script that reads a spreadsheet of devices, adds them to CS, performs a discovery, and then potentially marks the device as excluded based on a field in the spreadsheet.
Then there's a second script that imports a different spreadsheet that just contains connectivity (left device and interface names, and right device and interface names). Making a connection requires the full path to each interface (including chassis and module), which the script does by finding the device and all its interfaces. It cannot do this for excluded devices.
(Sorry I missed this question when it was first posted.)Thanks @jim.pfleger.vz
If you have the resource name, why don't you use the GetResourceDetails to get the resource information? this should get you the sub-resources as well, even if the resource is excluded.
BTW, your project sounds similar to something we previously developed, we updated the repository today with the latest changes, and it might continue to update, but you should take a look and see if it helps with your tasks.
https://github.com/QualiSystemsLab/Inventory-Utilities/tree/development
Yaniv
Thank you for the suggestions. I've replaced all our uses of FindResources() with GetResourceDetails(), which lets us work with excluded devices. This solves our immediate issue, but I still think that both methods should have an option to search all resources or only included resource. If not an option, then FindResources() should be changed so its behavior is consistent with GetResourceDetails().
I've been watching the Inventory Utilities project for ideas, but we're continuing to develop our version. One feature we implemented was to allow for incomplete information. For example, users can specify connections using just device and interface names, without knowing anything about the chassis/module/submodule structure and the tool will search the device for matching interfaces.
Also, we're setting boolean attributes on some devices based on what they're connected to, so these attributes can be used in abstract resources (e.g. an abstract resource for a router with a T1 connection).
Alona Getzler commented · Jun 26, 2017 at 05:07 AM
Hi, thank you Jim for posting this idea and thanks Yaniv for the workaround. We will definitely consider this addition.
Gregory Sloan commented · Jul 20, 2017 at 10:01 PM
I've had use cases where, for maintenance reasons, I have scripts that exclude multiple resources at once, then later include them. The workflow I expected to be able to follow was:
* FindResources(), filtering based on family/model/other factors to get all of the reosurces I want to exclude
* Exclude resources based on the results of FindResources()
* Perform maintenance tasks (not part of the scripts)
* Some time later, use the same FindResources() to get the same list of resources
* Include those resources.
Because FindResources() doesn't return excluded resources, I can't find them to include them. Instead as part of the Exclude steps, I have to save off the list to a text file, then read it back in. It's a doable but not efficient.
Alona Getzler commented · Feb 08, 2018 at 09:45 AM
I'm happy to update that this idea is planned for the next CloudShell release (8.3). We will have an optional parameter that if set to True will return also excluded resources.
Steven Geller commented · Feb 21, 2019 at 01:24 PM
Hi,
The param is called includeExcludedResources. You can find it here: https://help.quali.com/Online%20Help/8.3/Python-API/cloudshell.api.html?highlight=findresources#cloudshell.api.cloudshell_api.CloudShellAPISession.FindResources
These forums are a place for learning, helping and sharing experiences with others about any of our products. Feel free to ask a question and get answers from our community and our most advanced users.
Note that these are public forums - anyone can view the discussions here.
Announcements | |
CloudShell | TestShell |
Developers | BI (Business Inteligence) |
This is where you can suggest your ideas to help and improve the product for everyone.
Please make sure to read the following article before posting a new idea, to get more information about the required information and ideas lifecycle.
Feel free to vote and comment on other ideas to promote them.
Thanks for everyone who suggested the ideas and voted for them.
Find, download and share integrations that can extend and enhance the CloudShell experience.
Integrations have several levels:
Certified - Officially tested and supported by Quali.
Preview - Provides a sneak peek to what the Quali team is developing. Officially supported by Quali. Feel free to experiment and comment, but please take into consideration that it is not yet tested and released.
Community - Integrations shared by community users. Feel free to look into what other users have contributed, please take into consideration that these integrations are not tested by Quali.
To learn more about creating Shells and integrating with CloudShell, use the following links:
CloudShell's Dev Guide | Configuration Management |
Getting started with Shells | Extending CloudShell with Cloud Providers |
Getting started with Orchestration | API Guide |
To share your integration, follow the instructions in this guide.
Help us make things better. Share your great idea or vote for other people's.
API call to open (raise) the output window in the Web Portal
API call to get "Estimated setup duration" value from a Blueprint's Properties
Automation API method to obtain APP / Service categories
'Check Blueprint' as an API command
vCenter cloud provider: Enable saving VM memory in Save Snapshot command
API method to get Cloudshell DB version
AWS Save Current State of AMI.
Read-only property status of attribute returned with GetResourceDetails API call