Actions159
- Related Items Actions
- Backup Actions
- Queries Actions
- Get Disk Drives
- Get Operating Systems
- Get RAID Controller Report
- Get Volumes
- Get Computer Systems
- Get Antivirus Status Report
- Get Device Health Report
- Get Custom Fields Report
- Get Installed Software Patches
- Get Custom Fields Detailed Report
- Get Installed OS Patches
- Get Pending Failed Rejected OS Patches
- Get RAID Drive Report
- Get Windows Services Report
- Get Antivirus Threats
- Get Device Usage
- Get Network Interfaces
- Get Processors
- Get Software
- Get Last Logged On Users Report
- Get Policy Overrides 1
- Get Scoped Custom Fields Report
- Get Pending Failed Rejected Software Patches
- Get Scoped Custom Fields Detailed Report
- System Actions
- Knowledge Base Articles Actions
- Get Knowledge Base Article Signed Urls
- Get Related Item Attachments Signed Urls
- Download Knowledge Base Article
- Get Knowledge Base Folder Path Content
- Upload Temp Attachments
- Get Knowledge Base Folder Content
- Get Client Knowledge Base Articles
- Upload Knowledge Base Articles
- Get Global Knowledge Base Articles
- Download Related Item Attachment
- Organization Documents Actions
- Document Templates Actions
- Checklist Templates Actions
- Organization Checklists Actions
- Location Actions
- Management Actions
- Get Custom Fields Policy Condition
- Delete Policy Condition
- Reset Alert
- Update Device
- Request Scripting Options
- Submit OS Patch Scan
- Get Installer For Location
- Get Windows Event Policy Conditions
- Create Organization
- Cancel Device Maintenance
- Reboot Devices
- Set Windows Service Configuration
- Create Location For Organization
- Update Node Role Policy Assignment For Organization
- Create Windows Event Policy Condition
- Node Approval Operation
- Control Windows Service
- Remove Device Owner
- Submit OS Patch Apply
- Get Installer
- Create Policy
- Get Windows Event Policy Condition
- Update Device Maintenance
- Reset Policy Overrides
- Set Device Owner
- Submit Software Patch Scan
- Update Location
- Reset Alert Set Activity Data
- Get Device Link
- Run Script On Device
- Submit Software Patch Apply
- Update Organization
- Create Custom Fields Policy Condition
- Get Custom Fields Policy Conditions
- Custom Fields Actions
- Ticketing Actions
- Organization Actions
- Devices Actions
- Get Device Active Jobs
- Get Device Installed Software Patches
- Get Device Processors
- Update Node Attribute Values
- Get Device Disk Drives
- Get Device Pending Failed Rejected OS Patches
- Get Device Volumes
- Get Device Alerts
- Get Device Network Interfaces
- Get Device Software
- Get Device Activities
- Get Device Last Logged On User
- Get Device Services
- Get Policy Overrides
- Get Device
- Get Device Installed OS Patches
- Get Device Pending Failed Rejected Software Patches
- Get Node Custom Fields
- Groups Actions
- Webhooks Actions
Overview
This node interacts with the AvantGuard NinjaOne API to retrieve signed URLs for attachments related to specific knowledge base articles. Specifically, the "Get Related Item Attachments Signed Urls" operation fetches secure, time-limited URLs that allow access to attachments linked to a given entity within the knowledge base system.
This functionality is useful when you want to programmatically access or share attachments associated with various entities such as organizations, documents, locations, nodes, checklists, or knowledge base documents without exposing direct file paths or requiring additional authentication.
Practical examples:
- Automatically generating download links for attachments related to a particular knowledge base document.
- Integrating attachment access into custom dashboards or portals where users can view or download files securely.
- Syncing attachments from the knowledge base to other systems by first obtaining their signed URLs.
Properties
| Name | Meaning |
|---|---|
| Entity Type | The type of entity whose related item attachments' signed URLs you want to retrieve. Options: ORGANIZATION, DOCUMENT, LOCATION, NODE, CHECKLIST, KB DOCUMENT |
| Entity Id | The unique numeric identifier of the entity specified in "Entity Type" for which to get attachments' signed URLs |
Output
The node outputs JSON data containing the signed URLs for the attachments related to the specified entity. Each item in the output typically includes metadata about the attachment along with a signed URL that grants temporary access to the file.
If the node supports binary data output (not explicitly shown here), it would represent the actual attachment content or file streams. However, based on the provided code and operation, the main output is JSON with signed URLs rather than raw binary data.
Dependencies
- Requires an API key credential for AvantGuard NinjaOne to authenticate requests.
- Needs the base URL of the AvantGuard NinjaOne API configured in the credentials.
- Depends on the
@avantguardllc/n8n-openapi-nodepackage for building properties and handling OpenAPI integration.
Troubleshooting
- Common issues:
- Invalid or missing API credentials will cause authentication failures.
- Providing an incorrect or non-existent Entity Id may result in empty results or errors.
- Selecting an unsupported Entity Type or mismatching Entity Id and Entity Type could lead to no data returned.
- Error messages:
- Authentication errors usually indicate invalid API keys or misconfigured credentials.
- "Not Found" or similar errors suggest the specified entity does not exist.
- Network or timeout errors may occur if the API endpoint is unreachable; verify network connectivity and base URL configuration.
Links and References
- AvantGuard NinjaOne API Documentation (generic link, replace with actual if available)
- n8n documentation on Creating Custom Nodes
- OpenAPI Specification Reference: https://swagger.io/specification/