Aruba Central Next Gen icon

Aruba Central Next Gen

Consume Aruba Central Next Gen API

Actions408

Roles & Policy → Create Policy

AI-generated

Overview

This node operation creates a new policy within the Roles & Policy resource of the Aruba Central Next Gen API. It is useful for automating the management of network policies, such as defining access controls or configurations for devices and users in a network environment. For example, a network administrator can use this node to programmatically create security policies or configuration profiles to enforce consistent network behavior.

Use Case Examples

  1. Creating a new security policy to restrict access to certain network segments.
  2. Automating the creation of configuration policies for device groups in a large network deployment.

Properties

Name Meaning
Debug Mode Whether to enable detailed debug logs for troubleshooting.
Domain API domain to interact with, such as monitoring, configuration, interfaces, routing, network services, security, management, or system.
Name The name of the policy to be created.
Body The JSON body containing the policy details to be created.
Additional Fields Optional additional fields for the policy such as object type (local or shared), scope ID, and persona.

Output

JSON

  • id - The unique identifier of the created policy.
  • name - The name of the created policy.
  • status - The status of the policy creation operation.
  • details - Additional details or metadata about the created policy.

Dependencies

  • An API key credential for Aruba Central Next Gen OAuth2 authentication

Troubleshooting

  • Ensure the API credentials are correctly configured and have the necessary permissions to create policies.
  • Verify that the JSON body provided in the 'Body' field is correctly formatted and contains all required fields for the policy creation.
  • If debug mode is enabled, review the detailed logs to identify the exact cause of any errors.
  • Common error messages may include authentication failures, invalid input data, or insufficient permissions. Resolving these typically involves checking credentials, input validation, and user roles.

Discussion