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 >.
So I created a simple Python script to activate our L1 connections at reservation start and it was working fine but then someone did not like all our BluePrints showing up in Resource Manager at the root of the tree. We currently, only use, the Global domain. So we added a folder called Global Topologies and added this as the topology folder for the global domain and my L1 Python script ceased to work. It could no longer find the current BluePrint in the reservation even though it had the correct BluePrint/Sandbox name.
So it was failing in the call to ActivateTopology, yet it had the correct Blueprint name. As soon as we moved the Blueprint back to the root of the folder tree in Resource Manager, it started working again. It is as if the API could not see the Blueprints in the Global Topologies folder, even though that folder was set to be the Topology folder for the Global Domain.
This seems to be a problem to me. As long as the Blueprint name is unique why should the folder structure matter to the API? And if it should matter then why didn't the call to:
helpers.get_reservation_context_details().environment_name return the entire path?
thanks,
Marcus Porterfield
Answer by Yaniv Kalsky · Sep 26, 2017 at 06:54 PM
Hi @mporterf
The API documentation states that this should be the environment full path and not just the name.
You might want to open an idea to improve this behavior in the future.
Also, as of CloudShell 8.1, you also have a new property that returns the environment full path:
helpers.get_reservation_context_details().environment_path
Before 8.1, there is no simple way to do that, besides going over the active topologies and the full path from there:
from os.path import basename <br>blueprint_name = helpers.get_reservation_context_details().environment_name full_path = None<br>tp = self.api_session.GetActiveTopologyNames() for value in tp.Topologies: topo_name = basename(value) <br> if topo_name == blueprint_name: <br> full_path = value <br> break<br> if full_path: <br> blueprint_details = self.api_session.GetTopologyDetails(full_path)
I hope that it helps.
Yaniv
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 command to get resource connections? 3 Answers
Add Resource to Environment via API 1 Answer
How do I run commands of resources in a sandbox using the API? 1 Answer
Is there a way for a driver to obtain a blueprint's "Estimated setup duration" value? 4 Answers
How do I write a message to the sandbox output or console window using the API? 1 Answer