Ajax icon

Ajax

Consume Ajax API (v.0.1.2)

Actions242

Overview

This node, named "Ajax," is designed to interact with an Ajax API (version indicated in the code). It supports multiple resources and operations, including managing hubs. Specifically, for the resource "Hub" and operation "Set Groups Mode On or Off For Hub," it allows users to enable or disable the groups mode on a specified hub for a given user.

Common scenarios include:

  • Managing access control settings on physical or virtual hubs.
  • Enabling or disabling group-based permissions or modes on hubs dynamically.
  • Automating configuration changes across multiple hubs in a security or IoT environment.

Practical example:

  • A security administrator wants to turn on groups mode on a specific hub to allow group-based access control for employees.
  • An automation workflow disables groups mode on a hub during maintenance windows.

Properties

Name Meaning
User Id The identifier of the user performing or associated with the groups mode change.
Hub Id The identifier of the hub on which to set the groups mode.
Groups Mode The desired state of groups mode on the hub; options are "ON" to enable or "OFF" to disable.

Output

The node outputs JSON data representing the result of the operation performed on the hub. This typically includes confirmation of the groups mode being set, status messages, or any relevant metadata returned by the Ajax API.

If the node supports binary data output, it would relate to any files or media returned by the API, but based on the provided code and properties, the primary output is JSON structured data confirming the operation's success or failure.

Dependencies

  • Requires an API key credential for authenticating with the Ajax API.
  • Depends on the external Ajax API service to perform operations on hubs.
  • Uses internal helper classes for HTTP communication, state management, and operation resolution/execution.
  • No additional environment variables are explicitly required beyond the API authentication.

Troubleshooting

  • Common issues:

    • Invalid or missing User Id or Hub Id parameters will likely cause the API call to fail.
    • Incorrect API credentials or expired tokens will result in authentication errors.
    • Network connectivity problems can prevent successful communication with the Ajax API.
    • Setting an unsupported value for Groups Mode (anything other than "ON" or "OFF") may cause validation errors.
  • Error messages:

    • Authentication failures: Ensure the API key credential is correctly configured and valid.
    • Resource not found: Verify that the provided Hub Id exists and is accessible by the user.
    • Validation errors: Confirm all required fields are filled and have valid values.
    • API timeouts or network errors: Check network connectivity and retry.

Links and References

Discussion