Skip to content

Commit

Permalink
Update examples of basic usage
Browse files Browse the repository at this point in the history
Signed-off-by: Maira Usman <[email protected]>
  • Loading branch information
Myrausman authored Nov 29, 2023
1 parent 5ea200a commit 9f154a0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/source/usage/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +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.zos_core_for_zowe_sdk import ProfileManager
connection = {
"plugin_profile": "<profile name>>"
}
# Load the profile using ProfileManager
profile = ProfileManager().load(profile_type="<profile name>")
my_console = Console(connection)
my_console = Console(profile)

0 comments on commit 9f154a0

Please sign in to comment.