ZosmfProfile

class core.zowe.core_for_zowe_sdk.ZosmfProfile(profile_name: str)

Class used to represent a Zowe z/OSMF profile.

This class is only used when there is already a Zowe z/OSMF profile created and the user opted to use the profile instead of passing the credentials directly in the object constructor.

Parameters:

profile_name (str) – Zowe z/OSMF profile name

load() ApiConnection

Load z/OSMF connection details from a z/OSMF profile.

Returns:

z/OSMF connection object

Return type:

ApiConnection

property profiles_dir: str

Return the os path for the Zowe z/OSMF profiles.

Returns:

the os path for the Zowe z/OSMF profiles

Return type:

str