Skip to main content
Version: 10 - Vanillekipferl

ConnectorTypeWEBDAV

class connector_types.connector_type_webdav.ConnectorTypeWEBDAV

Access a WebDAV service.

Input Schema

  • schema_version

    Type: string

  • authentication

    Type: anyOf

  • scheme

    The scheme to use.

    Type: anyOf

  • host

    The remote hostname or IP address.

    Type: string

  • port

    Type: anyOf

  • tls

    If to connect using TLS/SSL.

    Type: anyOf

  • path

    The path of the WebDAV server.

    Type: string

    Default: /

  • mode

    Type: anyOf

  • timeout

    Total timeout for the request in seconds.

    Type: integer

    Default: 30

  • proxy

    Use a proxy to connect to the server.

    Type: object

    Additional Properties: False

Output Schema

  • result

    Data

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')