SdkApi

class core.zowe.core_for_zowe_sdk.SdkApi(profile: dict[str, Any], default_url: str, logger_name: str = 'core.zowe.core_for_zowe_sdk.sdk_api', log: bool = True)

Abstract class used to represent the base SDK API.

Parameters:
  • profile (dict[str, Any]) – Profile information in json (dict) format

  • default_url (str) – Default url used for session

  • logger_name (str) – Name of the logger (same as the filename by default)

  • log (bool) – Flag to disable logger

__enter__() SdkApi

Return the SdkApi instance.

__exit__(exc_type: Type[BaseException] | None, exception: BaseException | None, traceback: object | None) None

Delete the request handler before exit.