コード例 #1
0
def create_host(workspace_name, host):
    """Take a workspace_name and a host object and save it to the sever.

    Return the server's json response as a dictionary.
    """
    host_properties = get_host_properties(host)
    return server.create_host(workspace_name, **host_properties)
コード例 #2
0
ファイル: models.py プロジェクト: Sliim/faraday
def create_host(workspace_name, host):
    """Take a workspace_name and a host object and save it to the sever.

    Return the server's json response as a dictionary.
    """
    host_properties = get_host_properties(host)
    return server.create_host(workspace_name, **host_properties)
コード例 #3
0
def update_host(workspace_name, host):
    host_properties = get_host_properties(host)
    return server.update_host(workspace_name, **host_properties)
コード例 #4
0
ファイル: models.py プロジェクト: Sliim/faraday
def update_host(workspace_name, host):
    host_properties = get_host_properties(host)
    return server.update_host(workspace_name, **host_properties)