ConnectorTypeWebDAV
class connector_types.connector_type_webdav.ConnectorTypeWebDAV
Inputs
Name | Type | Default | Description |
---|---|---|---|
args | list | [] | The arguments to pass to the method. |
cacert | str | None | Provide the certificate to be able to connect to servers with self-signed certificates. Alternatively TLS verification can be disabled with verify_ssl=False . |
kwargs | dict | {} | The keyword arguments to pass to the method. |
login | str | None | The name of the user. Mutually exclusive with token . If set password must also be set. |
method | str | The webdav method to call. The name of the method, as implemented in https://github.com/jorgeajimenezl/aiodav, only some are implemented to work with cloudomation. The following methods are implemented: - list - free - exists - create_directory - is_directory - info - unlink - delete - move - copy The following additonal methods are provided: - download_base64(path: typing.Union[str, "os.PathLike[str]"]) -> str """Returns the content of the file as base64 as string.""" - download_cloudomation(remote_path: typing.Union[str, "os.PathLike[str]"], cloudomation_path: typing.Union[str, "os.PathLike[str]"]) -> None """Stores the file in cloudomation.""" - upload_base64(path: typing.Union[str, "os.PathLike[str]"], bytes_: str, buffer_size: typing.Optional[int] = None, overwrite: bool = True) -> None """Store the base64 encoded bytes_ in path on the server.""" - upload_cloudomation(cloudomation_path: typing.Union[str, "os.PathLike[str]"], remote_path: typing.Union[str, "os.PathLike[str]"], buffer_size: typing.Optional[int] = None, overwrite: bool = True) -> None """Store the cloudomation file on the remote.""" | |
password | str | None | The password of the user. |
proxy_password | str | None | The password of the user trying to log into the proxy server. |
proxy_url | str | None | Route the traffic through this proxy server. |
proxy_user | str | None | Use this username to log into the proxy server. |
timeout | int | 30 | Timeout operations after this many seconds. |
token | str | None | The authentication token. Mutually exclusive with login . |
url | str | The URl where the WebDAV server is reachable. Scheme must be either http or https. May contain a path which is to be considered the root of the server. | |
verify_ssl | bool | True | Verify TLS certificates. Only takes effect when requesting over https. |
Outputs
Name | Type | Default | Description |
---|---|---|---|
execution_id | int | The ID of the connection execution | |
log | list | ||
message | str | The ended message for the connection. If the connection ended with an error, the message will contain information about what went wrong | |
result | object | ||
status | str | The ended status for the connection. Either "success" or "error". |
Constants
input_list = ['args', 'cacert', 'kwargs', 'login', 'method', 'password', 'proxy_password', 'proxy_url', 'proxy_user', 'timeout', 'token', 'url', 'verify_ssl'] output_list = ['log', 'result'] ssl_context_inputs = ['check_hostname', 'client_cert', 'client_key', 'server_ca'] version = 1Methods
execute ()
log (message)
one_of_inputs (options)
run ()