ConnectorTypeWEBDAV
class connector_types.connector_type_webdav.ConnectorTypeWEBDAV
Access a WebDAV service.
Input Schema
-
schema_version
Type:
string
-
authentication
Type:
anyOf
Options: -
scheme
The scheme to use.
Type:
anyOf
Options: -
host
The remote hostname or IP address.
Type:
string
-
port
Type:
anyOf
Options: -
tls
If to connect using TLS/SSL.
Type:
anyOf
Options: -
path
The path of the WebDAV server.
Type:
string
Default:
/
-
mode
Type:
anyOf
Options: -
timeout
Total timeout for the request in seconds.
Type:
integer
Default:
30
-
proxy
Use a proxy to connect to the server.
Type:
object
Properties: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')