{% extends "base.html" %} {% block title %} » DC Contracts » {{dc_contract.name}} » Properties » Edit {% endblock %} {% block nav %} DC Contracts » {{dc_contract.name}} » Properties » Edit {% endblock %} {% block content %}
For the SFTP protocol:
{
"enabled": true,
"protocol": "sftp",
"file_type": ".df2",
"hostname": "example.com",
"username": "username",
"password": "password", /* Remove if using private key */
"private_key": "private_key", /* Remove if using password */
"directories": ["downloads1", "downloads2"],
"mpan_map": { /* Optional */
"99 0993 2821 985": null, /* Ignore MPAN */
},
}
For the HTTPS protocol:
{% raw %}
{
"enabled": true,
"protocol": "https",
"download_days": 8,
"parser": "meniscus",
"url_template": "https://data.example.com/?from={{chunk_start.strftime('%d/%m/%Y')}}&to={{chunk_finish.strftime('%d/%m/%Y')}}",
"url_values": {
"99 4298 4729 917": {
"name1": val1,
"name2": val2,
}
}
"mpan_map": { \\ Optional
"99 0993 2821 985": null, \\ Ignore MPAN
},
}
{% endraw %}
{% endblock %}