cterasdk.client.host module¶
-
class
cterasdk.client.host.CTERAHost(host, port, https)¶ Bases:
cterasdk.client.host.NetworkHost-
add(path, param, use_file_url=False)¶ Add a schema object.
-
base_api_url¶
-
base_file_url¶
-
db(path, name, param, use_file_url=False)¶
-
delete(path, use_file_url=False)¶ Delete a schema object.
-
download_zip(path, form_data, use_file_url=False)¶
-
execute(path, name, param=None, use_file_url=False)¶ Execute a schema object method.
-
form_data(path, form_data, use_file_url=False)¶
-
get(path, params=None, use_file_url=False)¶ Retrieve a schema object as a Python object.
-
get_multi(path, paths, use_file_url=False)¶ Retrieve one or more schema objects as a Python object.
-
login(username, password)¶ Log in
Parameters: - username (str) – User name to log in
- password (str) – User password
-
logout()¶ Log out
-
mkcol(path, use_file_url=False)¶
-
openfile(path, params=None, use_file_url=False)¶
-
post(path, value, use_file_url=False)¶
-
put(path, value, use_file_url=False)¶ Update a schema object or attribute.
-
register_session(session)¶
-
session()¶
-
show(path, use_file_url=False)¶ Print a schema object as a JSON string.
-
show_multi(path, paths, use_file_url=False)¶ Print one or more schema objects as a JSON string.
-
upload(path, form_data, use_file_url=False)¶
-
whoami()¶ Return the name of the logged in user.
Return str: The name of the logged in user
-
-
class
cterasdk.client.host.NetworkHost(host, port, https)¶ Bases:
object-
baseurl()¶
-
host()¶
-
https()¶
-
port()¶
-
scheme()¶
-
test_conn()¶
-
-
cterasdk.client.host.authenticated(function)¶