Actions28
Resource → Create
AI-generatedOverview
This node interacts with the Twingate GraphQL API to manage resources within a Twingate network. Specifically, the 'Create' operation for the 'Resource' resource allows users to create a new resource by specifying its name, address (IP, hostname, or CIDR), and the ID of the remote network it belongs to. This is useful for automating the addition of network resources in Twingate, such as servers or services, enabling seamless network management and integration within workflows.
Use Case Examples
- Creating a new resource in Twingate by providing its name, address, and associated remote network ID to automate network configuration.
- Automating resource management in Twingate by integrating this node into workflows that provision new network resources dynamically.
Properties
| Name | Meaning |
|---|---|
| Name | Name of the resource to be created. |
| Address | Address of the resource, which can be an IP address, hostname, or CIDR. |
| Remote Network ID | The ID of the remote network to which this resource belongs. |
Output
JSON
id- Unique identifier of the created resource.name- Name of the created resource.addresstype- Type of the address (e.g., IP, hostname, CIDR).value- Value of the address provided for the resource.
Dependencies
- Twingate GraphQL API
Troubleshooting
- Ensure that the API credentials (network name and API token) are correctly configured and valid.
- Verify that the 'Remote Network ID' provided exists and is accessible in the Twingate environment.
- Check for proper formatting of the 'Address' field (valid IP, hostname, or CIDR).
- Common errors include GraphQL errors returned by the API, which may indicate invalid input or permission issues. The node throws detailed error messages including GraphQL error messages or HTTP status codes to help diagnose issues.
Links
- Twingate GraphQL API Documentation - Official documentation for the Twingate GraphQL API used by this node.