execute_rest_call
Execute REST API calls to Teradata cloud services with custom authentication, Socks5 proxy, and multipart file uploads.
Instructions
Execute a REST API call with support for custom auth, Socks5 proxy, and multipart uploads. Use get_service_config to see available base URLs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL to the REST endpoint | |
| auth | No | Authentication config. Omit to use session auth if set. Example: {"type": "bearer", "token": "..."} or {"type": "basic", "username": "...", "password": "..."} | |
| body | No | Request body (JSON object or string) | |
| files | No | Files to upload (multipart). Key is field name, value is {"path": "/path/to/file"} | |
| proxy | No | Proxy config. Example: {"type": "socks5", "host": "localhost", "port": 1080} | |
| method | Yes | HTTP method | |
| headers | No | Custom HTTP headers (e.g., {"X-API-Key": "value"}) | |
| timeout | No | Request timeout in milliseconds (default: 30000) | |
| formData | No | Form fields as key-value pairs (string, number, or boolean values) | |
| filePattern | No | Glob pattern to match files (e.g., /tmp/*.pdf, ~/docs/**/*.csv). Alternative to explicit files. | |
| validateStatus | No | If true, non-2xx responses throw error. If false (default), all responses succeed. |