NetApp ONTAP Security icon

NetApp ONTAP Security

Manage NetApp ONTAP security settings, users, roles, and certificates

Role → Create

AI-generated

Summary

Create a new security role on a specified NetApp ONTAP cluster with a unique role name and ownership designation.

Inputs

  • Cluster Host (required) — The hostname or IP address of the ONTAP cluster management LIF to connect to.
  • Port — The HTTPS port number used to access the ONTAP REST API (default is 443).
  • Role Name (required) — The unique name to assign to the new role being created.
  • Owner (required) — The UUID name of the cluster or SVM that owns this role, specified by name mode.
  • Options — Optional additional parameters such as specifying a comma-separated list of fields to include in the response (use '*' for all fields).

Output shape

a single record containing the API response to the role creation request

The operation sends a POST request to '/security/roles' with the role name and owner UUID in the request body. It returns the created role information and handles asynchronous job completion if applicable.

Examples

Example 1: Create a role named 'DataManager' owned by a cluster with UUID '1234-abcd'

Set 'Cluster Host' to the cluster's management IP, leave 'Port' as default 443, set 'Role Name' to 'DataManager', set 'Owner' to '1234-abcd', and optionally adjust 'Options' to include specific fields in the response.

Links

Discussion