fetch_url
Downloads an HTTP(S) file into a chosen Gopan folder in the background without routing bytes through the agent; returns a job to poll until the file is ready.
Instructions
Offline download: the Gopan server fetches an http(s) link into a folder in the background, so the bytes never pass through the agent. Returns a job; poll get_job (wait=true) until status is done, then result_node_id is the file. Private/internal addresses are refused. Not idempotent: check list_jobs before retrying. Requires files:upload.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | http or https link to a file | |
| parent_id | No | folder to save into; default is the root (or the credential's directory) | |
| parent_path | No | folder path, alternative to parent_id |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | No | ||
| kind | Yes | fetch_url or extract_archive | |
| title | Yes | file name once known, otherwise the link's host; archive name for extraction | |
| status | Yes | queued, running, done, failed or canceled | |
| parent_id | No | target folder; omitted means the root | |
| bytes_done | Yes | ||
| created_at | Yes | ||
| error_code | No | why it failed; on success GOT_HTML means the server returned a web page instead of a file | |
| files_done | No | ||
| bytes_total | No | ||
| files_total | No | ||
| finished_at | No | ||
| error_message | No | ||
| files_skipped | No | archive entries skipped: unsafe paths, links or invalid names | |
| result_node_id | No | the downloaded file, or the folder files were extracted into |