ConnectorTypeWEBDAV
class connector_types.connector_type_webdav.ConnectorTypeWEBDAV
Access a WebDAV service.
Input Schema
-
urlThe 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.
Type:
string -
authThe authentication method to use. One of
token,basic,digestor None (unauthenticated)Type:
stringDefault:
token -
loginThe name of the user. Mutually exclusive with
token. If setpasswordmust also be set.Type:
anyOfOptions: -
passwordThe password of the user.
Type:
anyOfOptions: -
tokenThe authentication token. Mutually exclusive with
login.Type:
anyOfOptions: -
timeoutTimeout operations after this many seconds.
Type:
integerDefault:
30 -
proxy_urlRoute the traffic through this proxy server.
Type:
anyOfOptions: -
proxy_userUse this username to log into the proxy server.
Type:
anyOfOptions: -
proxy_passwordThe password of the user trying to log into the proxy server.
Type:
anyOfOptions: -
verify_sslVerify TLS certificates. Only takes effect when requesting over https.
Type:
booleanDefault:
True -
cacertProvide the certificate to be able to connect to servers with self-signed certificates. Alternatively TLS verification can be disabled with
verify_ssl=False.Type:
anyOfOptions: -
methodThe webdav method to call. One of
content_language
-
content_length -
content_type -
copy -
created -
download_base64 -
download_cloudomation -
download_text -
etag -
exists -
get_property -
info -
isdir -
isfile -
ls -
mkdir -
modified -
move -
options -
remove -
upload_bas64 -
upload_cloudomation -
upload_text.Type:
string-
pathA path on the WebDAV server. Used with the methods
content_language,content_length,content_type,copy,created,download_base64,download_cloudomation,download_text,etag,exists,get_property,info,isdir,isfile,ls,mkdir,modified,move,options,remove,upload_bas64,upload_cloudomation, andupload_text.Type:
string -
cloudomation_pathA path of a Cloudomation Engine file. Used with the methods
download_cloudomationandupload_cloudomation.Type:
string -
to_pathA destination path on the WebDAV server. Used with the methods
copyandmove.Type:
string -
overwriteIf set, existing resources on the WebDAV server are overwritten.
Type:
boolean -
detailIf set, additional information is returned from method
ls.Type:
booleanDefault:
True -
property_nameA property name. Used with the
get_propertymethod.Type:
string -
property_namespaceA property namespace. Used with the
get_propertymethod.Type:
string -
base64A base64 string. Used with method
upload_base64.Type:
string -
textA string. Used with method
upload_text.Type:
string
-
Output Schema
-
resultData
Constants
ssl_context_inputs = ['check_hostname', 'client_cert', 'client_key', 'server_ca']Example
Fetch a text file from a WebDAV server
import flow_api
def handler(system: flow_api.System, this: flow_api.Execution, inputs: dict):
file_content = this.connect(
connector_type='WEBDAV',
url='https://my-webdav-server/path',
auth='basic',
login='kevin',
password='secret',
method='download_text',
kwargs={
'path': 'file.txt',
},
).get('output_value')['result']
this.log(file_content=file_content)
return this.success('all done')