예제 #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)
예제 #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,
     )
예제 #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)
예제 #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,
     )