2022-08-11 11:37:07 -04:00
|
|
|
# Export Templates
|
|
|
|
|
|
2022-08-11 16:14:06 -04:00
|
|
|
## Fields
|
2022-08-11 11:37:07 -04:00
|
|
|
|
2022-08-11 16:14:06 -04:00
|
|
|
### Name
|
2022-08-11 11:37:07 -04:00
|
|
|
|
2022-08-11 16:14:06 -04:00
|
|
|
The name of the export template. This will appear in the "export" dropdown list in the NetBox UI.
|
2022-08-11 11:37:07 -04:00
|
|
|
|
2022-08-11 16:14:06 -04:00
|
|
|
### Content Type
|
2022-08-11 11:37:07 -04:00
|
|
|
|
2022-08-11 16:14:06 -04:00
|
|
|
The type of NetBox object to which the export template applies.
|
2022-08-11 11:37:07 -04:00
|
|
|
|
2022-08-11 16:14:06 -04:00
|
|
|
### Template Code
|
2022-08-11 11:37:07 -04:00
|
|
|
|
2022-08-11 16:14:06 -04:00
|
|
|
Jinja2 template code for rendering the exported data.
|
2022-08-11 11:37:07 -04:00
|
|
|
|
2022-08-11 16:14:06 -04:00
|
|
|
### MIME Type
|
2022-08-11 11:37:07 -04:00
|
|
|
|
2022-08-11 16:14:06 -04:00
|
|
|
The MIME type to indicate in the response when rendering the export template (optional). Defaults to `text/plain`.
|
2022-08-11 11:37:07 -04:00
|
|
|
|
2022-08-11 16:14:06 -04:00
|
|
|
### File Extension
|
2022-08-11 11:37:07 -04:00
|
|
|
|
2022-08-11 16:14:06 -04:00
|
|
|
The file extension to append to the file name in the response (optional).
|
2022-08-11 11:37:07 -04:00
|
|
|
|
2022-08-11 16:14:06 -04:00
|
|
|
### As Attachment
|
2022-08-11 11:37:07 -04:00
|
|
|
|
2022-08-11 16:14:06 -04:00
|
|
|
If selected, the rendered content will be returned as a file attachment, rather than displayed directly in-browser (where supported).
|