Skip to content
Discussion options

You must be logged in to vote

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> …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Quali-Community
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Forums
Labels
8. 💠 Developers Category ❽ : Developers 2. 🙏 Forum Category ❷ : Forums API Blueprint L1 AHsubspace AH subspace AHDev AH Forums subspace: Developers
1 participant