Console

class zos_console.zowe.zos_console_for_zowe_sdk.Console(connection)

Class used to represent the base z/OSMF Console API.

connection

Connection object

get_response(response_key, console=None)

Collect outstanding synchronous z/OS Console response messages.

Parameters:
  • response_key – The command response key from the Issue Command request.

  • console – The console that should be used to get the command response.

Returns:

A JSON containing the response to the command

Return type:

json

issue_command(command, console=None)

Issues a command on z/OS Console.

Parameters:
  • command – The z/OS command to be executed

  • console – The console that should be used to execute the command (default is None)

Returns:

A JSON containing the response from the console command

Return type:

json