Closed katzy687 closed 4 years ago
The code sample on this page shows how to start an api session from the sandbox object for orchestration scripts.
I think we should add a simple example for starting a session outside of orchestration scripts for performing admin tasks.
New customers are always asking for this simple example script, and it would be nicer to be able to link them to the dev guide.
something such as:
from cloudshell.api.cloudshell_api import CloudShellAPISession # add credentials user = "admin" password = "admin" server = "localhost" domain = "Global" # start session api = CloudShellAPISession(host=server, username=user, password=password, domain=domain) # find resources of target model res_details = api.FindResources(resourceModel="Putshell")
fixed on 12/12/2019
The code sample on this page shows how to start an api session from the sandbox object for orchestration scripts.
I think we should add a simple example for starting a session outside of orchestration scripts for performing admin tasks.
New customers are always asking for this simple example script, and it would be nicer to be able to link them to the dev guide.
something such as: