ConnectorTypeWEBDAV
class connector_types.connector_type_webdav.ConnectorTypeWEBDAV
Access a WebDAV service.
Input Schema
-
schema_version = '10.0'Type:
string -
authenticationType:
anyOfOptions: -
schemeThe scheme to use.
Type:
anyOfOptions: -
hostThe remote hostname or IP address.
Type:
string -
portType:
anyOfOptions: -
pathThe path of the WebDAV server.
Type:
stringDefault:
/ -
queryWill be urlencoded automatically
Type:
arrayItems: -
fragmentThe fragment of the URI.
Type:
string -
tlsIf to connect using TLS/SSL.
Type:
anyOfOptions: -
modeType:
anyOfOptions: -
timeoutTotal timeout for the request in seconds.
Type:
integerDefault:
30 -
proxyUse a proxy to connect to the server.
Type:
objectProperties:Additional Properties:
False
Output Schema
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',
authentication={
'authentication_method': 'username_password_basic',
'username': '...',
'password': '...',
},
host='...',
path='...',
mode={
'mode_name': 'download_text',
'source_path': '...',
'encoding': 'utf-8',
},
).get('output_value')['result']
this.log(file_content=file_content)
return this.success('all done')