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 >.
In the CloudShell 7.1 Python API, cloudshell.api.cloudshell_api.FindResources() does not return excluded resources, even when they're specified by exact name. Is there some flag to get FindResources to return excluded resources, or some other method I should use?
Here's some example code that creates a device, then shows it can only be found when not excluded.
import cloudshell.api.cloudshell_api as cloudshell_api import cloudshell.api.common_cloudshell_api as common_cloudshell_api import re FOLDER = 'temp' RESOURCE_NAME = 'test_resource' api = cloudshell_api.CloudShellAPISession('pscloud-dev.vzbi.com', 'admin', 'admin', 'Global') api.CreateFolder(FOLDER) try: api.CreateResource( resourceFamily='Router', resourceModel='Cisco IOS Router', resourceName=RESOURCE_NAME, resourceAddress='NA', folderFullPath=FOLDER ) except common_cloudshell_api.CloudShellAPIError as e: if e.code != '114': # Resource exists raise e finally: api.IncludeResource(resourceFullPath=RESOURCE_NAME) result = api.FindResources(resourceFullName=RESOURCE_NAME, exactName=True, includeSubResources=False) assert len(result.Resources) == 1 assert result.Resources[0].Name == RESOURCE_NAME result = api.ExcludeResource(resourceFullPath=RESOURCE_NAME) assert re.search(r'Success="true"', result) result = api.FindResources(resourceFullName=RESOURCE_NAME, exactName=True, includeSubResources=False) assert len(result.Resources) == 1 assert result.Resources[0].Name is None
Answer by Yaniv Kalsky · Jun 08, 2017 at 12:08 AM
There is no way to get it from FindResources, you can ask support if it's a bug or not (since it does return for each resource an "excluded" boolean which is currently always false).
If you use the GetDomainDetails, you'll get the list of resources there - including the excluded resources, but you can't query for a specific list as with FindResources, so you'll have to loop through the results and find the relevant resources that you need.
Yaniv
Thanks for the quick and honest reply. I'll take this bug up with Support.
Answer by Jim Pfleger · Jun 12, 2017 at 02:52 PM
Support tells me this is not a bug, but rather that finding excluded resources is a new feature to be voted on. I disagree, but I've opened an idea anyway, and I hope others will vote on it.
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.
API Call for Historical Reservation Information 1 Answer
Dynamic List Option on Python Resource Driver 1 Answer
Get details of all executed suites in a suite 1 Answer
API command to get resource connections? 3 Answers
API Documentation Not Found 3 Answers