Skip to content

Commit

Permalink
Merge pull request #238 from Myrausman/main
Browse files Browse the repository at this point in the history
Specified the port in the Getting Started -> Basic Usage page in the documentation
  • Loading branch information
t1m0thyj authored Dec 1, 2023
2 parents 464a954 + a17bdb6 commit 8c8882f
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions docs/source/usage/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,23 @@ Create a dictionary to handle communication with the plug-in:
.. code-block:: python
from zowe.zos_console_for_zowe_sdk import Console
connection = {
"host_url": "'<host address>'",
profile = {
"host": "<host address>",
"port" : 443 , # Include the port if different from the default (443)
"user": "<user>",
"password": "<password>",
}
my_console = Console(connection)
my_console = Console(profile)
Alternatively you can use an existing Zowe CLI profile instead:

.. code-block:: python
from zowe.zos_console_for_zowe_sdk import Console
from zowe.zos_console_for_zowe_sdk import Console
from zowe.core_for_zowe_sdk import ProfileManager
connection = {
"plugin_profile": "<profile name>>"
}
# Load the profile using ProfileManager
profile = ProfileManager().load(profile_name="<profile name>")
my_console = Console(connection)
my_console = Console(profile)

0 comments on commit 8c8882f

Please sign in to comment.