Exemplo n.º 1
0
	def init_direct_session(host, port, protocol, auth):
		return certSession(
			endpoint="{protocol}://{hostname}:{port}/wsman".format(
				protocol=protocol,
				hostname=host,
				port=port),
			auth=auth)
Exemplo n.º 2
0
 def init_jump_session(jump_host, jump_port, jump_protocol, jump_auth, target_host, target_auth):
     return certSession(
         endpoint="{protocol}://{hostname}:{port}/wsman".format(
             protocol=jump_protocol, hostname=jump_host, port=jump_port
         ),
         certificate=jump_auth,
         target=target_host,
         target_auth=target_auth,
     )
Exemplo n.º 3
0
	def init_jump_session(jump_host, jump_port, jump_protocol,
						  jump_auth, target_host, target_auth):
		return certSession(
			endpoint="{protocol}://{hostname}:{port}/wsman".format(
				protocol = jump_protocol,
				hostname = jump_host,
				port=jump_port),
			certificate=jump_auth,
			target=target_host,
			target_auth=target_auth)
Exemplo n.º 4
0
 def init_direct_session(host, port, protocol, auth):
     return certSession(
         endpoint="{protocol}://{hostname}:{port}/wsman".format(protocol=protocol, hostname=host, port=port),
         auth=auth,
     )