diff --git a/docs/source/usage/examples.rst b/docs/source/usage/examples.rst index d9371c60..98642640 100644 --- a/docs/source/usage/examples.rst +++ b/docs/source/usage/examples.rst @@ -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": "''", + profile = { + "host": "", + "port" : 443 , # Include the port if different from the default (443) "user": "", "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": ">" - } + # Load the profile using ProfileManager + profile = ProfileManager().load(profile_name="") - my_console = Console(connection) + my_console = Console(profile)